<< Click to Display Table of Contents >> CHelper Functions |
Overview
The CHelper is an object that contains a group of functions used to perform operations or get information about non-contextualized information. Non-contextualized means that these functions are not necessarily related to the case or BPMN element where the rule is executed. So you can operate two numbers, or get information from other elements in the project.
See our Bizagi Business Rules API
The following table contains the different functions you can find within the CHelper object.
FUNCTION |
DESCRIPTION |
SYNTAX |
---|---|---|
Cancel cases and those related to them (sibling, child and parent cases). |
CHelper.abortProcess(Me, CaseId, AbortOption, AbortReason) |
|
Concatenates documents from a files array into a PDF document or a Word document according to the selected function. |
CHelper.ConcatDocumentsFromFilesArrayToPDF(filesArray)
Word CHelper.ConcatDocumentsFromFilesArrayToWord(filesArray) |
|
Concatenates documents from two different XPaths into a PDF document or a Word document according to the selected function. |
CHelper.ConcatDocumentsFromTwoXpathsToPDF(Me, Xpath1, Xpath2)
Word CHelper.ConcatDocumentsFromTwoXpathsToWord(Me, Xpath1, Xpath2) |
|
Concatenates documents from an XPath into a PDF document or a Word document according to the selected function. |
CHelper.ConcatDocumentsFromXpathFileToPDF(Me, XPath)
Word CHelper.ConcatDocumentsFromXpathFileToWord(Me, XPath) |
|
Returns a date time attribute converted from a user time zone, for example UTC - 5, to the server time zone where the project runs for example UTC. |
ConvertUserTimetoServerTime(UserId,Date); |
|
Counts the number of elements of an Entity. |
CHelper.entityListCount(String entityName, String filter) |
|
This function takes the id of the asynchronous activity you wish to enable as a parameter and enables it. |
CHelper.EnableAsynchExecution(WorkitemId) |
|
This function takes the id of the scheduled job you wish to enable as a parameter and enables it. |
CHelper.EnableWaitJob(WaitJobId) |
|
This function will retrieve all the blocked asynchronous activities. |
CHelper.GetAllStuckAsyncWorkitems() |
|
This function will retrieve all the blocked scheduled jobs. |
CHelper.GetAllStuckWaitJobs() |
|
Returns all the WorkItems that have an active allocation to a given user. |
CHelper.getAssignedWorkItems(Me, CaseId, CurrentAsigneeId, IncludeSubProcesses) |
|
Returns the value of a given attribute of a specific record in an entity. |
CHelper.getAttrib(sEntityName, oEntityKey, sAttribName) |
|
Returns true if the parameter equals 1 or true, false otherwise. |
CHelper.getBoolean(value) |
|
Returns the case object without the need of context. |
CHelper.getCaseById(CaseId) |
|
Obtains the users that have worked on a case. |
CHelper.getCaseUsers(CaseNumber) |
|
Obtains the current user's time. |
CHelper.GetCurrentTimeForUser(idUser) |
|
Returns the time difference, in minutes, considering only working days. |
CHelper.getEffectiveDuration(Me, Start, End) |
|
Returns the time difference, in minutes, considering only working days for the specified user. |
CHelper.getEffectiveDurationForUser(idUser, Start, End) |
|
Obtains a value from an Entity not related to the Data Model. |
CHelper.getEntityAttrib(Entity, ValueToReturn, filter, filterParameters) |
|
Returns a date given an initial date and a period of time, considering the Working Time Schema. |
CHelper.getEstimatedDate(Me, dtFromDate, iDuration) |
|
Returns a date given user id, a start date and a number of minutes. |
CHelper.getEstimatedDateForUser(idUser, dtFromDate, iDuration) |
|
Calculates a date considering the time schema and user timezone. |
CHelper.getEstimatedDateFromUserDateTime(UserId,iDuration) |
|
Returns the value of a localized entity attribute using the current user's language. |
CHelper.GetLocalizedValue(EntityName, AttribName, SurrogateKeyValue) |
|
Obtains the next value of a sequence. |
CHelper.GetNextSeqValueStr("SequenceName") |
|
Obtains the value of a custom parameter. |
CHelper.getParameterValue(parameterName) |
|
Retrieves the parent identifier of a child process, without the need of context. |
CHelper.getParentProcessId(caseId, wfclassName) |
|
Obtains the identifiers of the sibling Processes (Sub-Processes with the same parent Process) of a specific Process. |
CHelper.getSiblingProcessesId(Me, WfClassName) |
|
Returns a date given an initial date and a period of time, considering the Working Time Schema and holidays. |
CHelper.getSolutionDate(Me, dtFromDate, iDuration) |
|
Returns a date given user id, a start date and a number of minutes, it considers the user's Working Time Schema and holidays. |
CHelper.getSolutionDateForUser(idUser, dtFromDate, iDuration) |
|
Retrieves the value stored in an Extended object. |
CHelper.GetStringExtended("ExtendedObjectName", Default value, Culture) |
|
Obtains the identifier of all child processes. |
CHelper.getSubProcessesId(Me) |
|
Obtains the identifier of all the given child processes. |
CHelper.getSubProcessesId(Me, WfClassName) |
|
Obtains a list of the users who hold a certain Position within the organization. |
CHelper.getUsersForPosition(posName) |
|
Obtains a list of the active users who hold a certain Position within the organization, if the "filterActive" parameter is true. |
CHelper.getUsersForPosition(posName, filterActive) |
|
Obtains a list of the users who hold a certain Role within the organization. |
CHelper.getUsersForRole(roleName) |
|
Obtains a list of the active users who hold a certain Role within the organization, if the parameter is true. |
CHelper.getUsersForRole(roleName, filterActive) |
|
Obtains a list of the users who have a certain Skill within the organization. |
CHelper.getUsersForSkill(skillName) |
|
Obtains a list of the active users who have a certain Skill within the organization, if the parameter is true. |
CHelper.getUsersForSkill(skillName, filterActive) |
|
Obtains all users given a Persona. |
CHelper.GetUsersForPersona("PersonaName") |
|
Obtains all the Personas of a given user |
GetPersonasForUser("User Id") GetPersonasForUser("User Id","PersonaName") |
|
Obtains a predefined schema for any entity, as configured in Bizagi Studio. |
CHelper.getXSD(entityName, xsdName) |
|
Obtains a predefined transformation file that you registered for any entity, as configured in Bizagi Studio. |
CHelper.getXSL(entityName, xslName) |
|
Grants the given user, access to the given case. |
CHelper.GrantCaseAccess(idCase, idUser) |
|
Returns true if the object specified as parameter is empty; otherwise, returns false. |
CHelper.IsEmpty(Variable) |
|
Returns true if the object specified as parameter is null; otherwise, returns false. |
CHelper.IsNull(Variable) |
|
Verifies if a Date is a Working day. |
CHelper.IsWorkingDay(Me,Date) |
|
Verifies if a Date is a Working day for a specific user. |
CHelper.IsWorkingDayForUser(idUser, Date) |
|
Returns true if a specific date falls under the organization's working time schema; otherwise, it returns false. |
CHelper.IsWorkingMinute(Me, Date) |
|
Returns true if a specific date falls under the given user's working time schema; otherwise, it returns false. |
CHelper.IsWorkingMinuteForUser(idUser, Date) |
|
Returns the id of the next user available for assignment by load. |
CHelper.LoadAssig(AssigneeList, Me) |
|
Creates a new case with the creator user defined. |
CHelper.NewCase(idUser,WFClassName) |
|
Creates a new case based on the information provided in the input parameter (string XML). |
CHelper.NewCase(XML) |
|
Executes an activity, it's the equivalent of pressing the NEXT button. |
CHelper.PerformActivity(XML_ActivityInfo) |
|
Raises a cancellation and adds a cancellation log file. |
CHelper.RaiseCancelIntermediateEvent(message) |
|
Interrupts the current activity and deviates the normal path towards the error path. This function will add an error log file. |
CHelper.RaiseErrorIntermediateEvent(message) |
|
Interrupts the transactional Sub-Process and deviates the normal path towards the cancel path. |
CHelper.RaiseCancelEndEvent(message) |
|
Interrupts the transactional Sub-Process and deviates the normal path towards the error path. |
CHelper.RaiseErrorEndEvent(message) |
|
Obtains the value stored in a specific Vocabulary. |
CHelper.resolveVocabulary(Me, VocabularyName) |
|
Returns the id of the next user available for assignment by sequence. |
CHelper.SecuentialAssig(AssigneeList, Me) |
|
Modifies specific attribute values from specific records of an entity. If you use CHelper.setAttrib, read the information in this link carefully, as using this function has important considerations. |
CHelper.setAttrib(sEntityName, oEntityKey, sAttribName, oAttribValue) |
|
Executes an available intermediate Event in Bizagi, which has no specific type defined. |
CHelper.setEvent(Me, Caseid, eventName, null)
CHelper.setEvent(xml) |
|
Evaluates if cases are open for a specific case creation number. |
CHelper.thereAreOpenProcesses(CaseNumber) |
|
Evaluates if cases are open for a specific case creation number and WfClassName. |
CHelper.thereAreOpenProcesses(caseNumber, wfclassName) |
|
Displays an error message on the Work Portal. |
CHelper.ThrowValidationError(message) |
|
Displays a customized alert message on the Work Portal. |
CHelper.ThrowValidationAlert(message) |
|
Converts files to base64. |
CHelper.ToBase64(data) |
|
Converts a string to Integer. |
CHelper.ToInt(sText) |
|
Logs the user-defined traces which are manually included in Business Rules. |
CHelper.trace(sFileName, sText) |
|
Maps business information into a document to be stored at the ECM. |
CHelper.UpdateECMMetadata(Me, data, XPath) |
|
Forces Bizagi to include attributes that are not included in a deployment. |
CHelper.usingXPath(xpath) CHelper.usingXPath(EntityName, xpath) |
Last Updated 5/15/2024 9:56:39 AM