WorkManager and Process Classes

WorkManager and process classes provide additional methods that you can use when working with work items, processes and organization models in your scripts. For example, you could set process priority, set work item attributes and so on.

workManager and process classes are wrapped in a bpm object.

Example 1
var theOfferSet = bpm.workManager.getWorkItem().getWorkItemOffers();
Example 2
var myActivityLoopIndex = bpm.process.getActivityLoopIndex();

For a list of the attributes and methods provided, see Process Manager and Work Manager Scripting.