How to update the businessStatus property dynamically in BPMN workflows

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!

Hey @antonio.pascual,

When using the Open Source Flowable Spring Boot integration the bean is named runtimeServiceBean, so try using that instead of runtimeService.

Please keep in mind that using root.id is not supported in Open Source. Accessing to root is part of the Flowable Enterprise offering.

Cheers,
Filip

1 Like

Great @filiphr, thanks a lot for your help.