After reviewing how CMMN handles the businessStatus
property, which can be assigned to stages and is automatically updated while the workflow is running. I am trying to achieve a similar behavior in BPMN.
Specifically, I am using Task and Execution Listeners on Human Tasks to update the property as soon as the task is activated. However, I have not been successful so far. I attempted to use ${runtimeService.updateBusinessStatus(root.id, 'newRequest')}
, but runtimeService
is not defined.
Has anyone managed to update the businessStatus
dynamically in BPMN workflows? What would be the correct approach to achieve this?
Thank a lot!