Process Instance Attributes and Methods
This section provides additional information (that is not available in content assist) about some of the attributes and methods that are available for accessing information about process instances using the
bpm.process class.
| Attribute/Method | Example | Description |
|---|---|---|
| Datetimetz getActivityStartTime() | startTime = bpm.process.getActivityStartTime() | Returns the time the current task was started. |
| Datetimetz getActivityDeadline() | deadlineTime = bpm.process.getActivityDeadline() | Returns the current task deadline time. |
| getActivityLoopIndex() : Number | index = bpm.process. getActivityLoopIndex() |
|
| getActivityAttribute(String, String) : String | workItemId = bpm.process.getActivityAttribute('UserTask2','WorkItemId');
completer = bpm.process.getActivityAttribute('UserTask2','Completer'); |
Returns value of attribute, for example,
430Only WorkItemId and Completer are supported as attribute names. |
| Priority : Number | priority = bpm.process.priority; | Once a process instance has been created, it can change its own priority.
The default value is 200. Valid entries are 100, 200, 300 and 400. |
| auditLog (String message) | bpm.process.auditLog ("Unknown Cargo Type " + cargoType.name) ; |
Adds a simple text entry to the audit log (process-instance related event log entry). Use of the bpm.process.auditLog() method is not supported for in-memory process instances (service processes, pageflow processes or business services). If the bpm.process.auditLog() method is used on one of these processes (whether started from within a parent business process or independently), no audit entries are generated. |
| Long getWorkItemId() | workitemID = bpm.process.getWorkItemId() | Returns the work item for the current user task. Returns null if not called from a user task Complete script. |
| String getWorkItemCompleter() | WICompleter = bpm.process.getWorkItemCompleter() | Returns the GUID of the user that completed the work item. Returns null if not called from a user task Complete script. |
| List<String> getWorkItemParticipants() | participants = bpm.process.getWorkItemParticipants() | Returns an array of GUIDs for the participants for the work item. Returns null if not called from a user task Complete, Cancel, or Timeout script. |