Create a new instance of the type WorkItem. This constructor is used by the library's code and should not be used by API users.
Context information of the call. In most of the cases you can build the context using the request object.
ProtectedclassProtected OptionalcodeProtectedcontextProtected OptionalendProtectedfieldsProtectedfieldsProtectedisProtectedlistsProtectednumberProtectedoidProtectedprocessProtected OptionalrequesterProtected OptionalstartProtected OptionalstatusStaticClassStaticClassStaticTokenMetadata key for the TokenExecution type, used to represent the execution of a process task.
The new content for the field Code.
Get the end date and time of the finished or canceled work item
Get the number of the work item
Get the identifier of the work item
Get the identifier of the process
Get the identifier of the requester
Set the identifier of the requester
The new content for the field RequesterOid.
Get the start date and time of the work item
Add a row to the record list.
Name of the record list.
A dictionary containing all the fields of the row.
A promise to retrieve the content of the new object added to the record list.
ProtectedGetRetrieve all rows from a record list field.
Name of the record list.
A promise to retrieve the content record list.
ProtectedGetProtectedLogWrite a log of type Error you can list inside the process editor. (click the button 'Log and Execution data' at the right side in the Actions tab)
Error message.
OptionaldetailLink: stringLink to show more details on the error.
Save all pending changes of a record list.
Context information of the call. In most of the cases you can build the context using the request object.
Name or alias of the record list. (click the script icon in the edition dialog)
Update a row in a record list.
Name of the record list.
A list of identifiers for the rows in the record list.
A dictionary containing all the fields of the row.
StaticEvaluateBRAsyncEvaluate a Business Rule on a specific work item.
Context information of the call. In most of the cases you can build the context using the request object.
Identifier of thw work item.
Unique code of Business Rule. (check the network of Developer Tools)
StaticFindFind a work item by an identifier
Context information of the call. In most of the cases you can build the context using the request object.
Identifier of the instance.
Promise to get the object instance of the work item.
StaticFindContext information of the call. In most of the cases you can build the context using the request object.
Unique code of the process. (click the script icon above the field Name inside the process editor and tab Properties)
Code of the instance.
Promise to get the array of work items that meet the criteria.
StaticFindFind all work items based on a specific process and a search text on a custom field
Context information of the call. In most of the cases you can build the context using the request object.
Unique code of the process. (click the script icon above the field Name inside the process editor and tab Properties)
Name or alias of the field. (click the script icon in the edition dialog)
Text criteria to find the instances.
Promise to get the array of work items that meet the criteria.
StaticForceForce the execution of a boundary event on a work item
Context information of the call. In most of the cases you can build the context using the request object.
Identifier of thw work item.
Unique code of the boundary event. (click the script icon above the field Text inside the process editor and tab Properties)
StaticParseLoad the object's content from JSON data.
Context information of the call. In most of the cases you can build the context using the request object.
An array of key-value pairs (JSON data).
Object instance initialized.
StaticRestartCancel all taks and tokens and restart the instance from the same start event.
Context information of the call. In most of the cases you can build the context using the request object.
Identifier of thw work item.
A WorkItem represents an instance of an automated business process. It also represents a request made by an individual and encompasses all the associated data.