# How to update the businessStatus property dynamically in BPMN workflows

**URL:** <https://forum.flowable.org/t/how-to-update-the-businessstatus-property-dynamically-in-bpmn-workflows/12225>\
**Category:** Flowable Engine\
**Created:** [April 28, 2025, 7:36am UTC](https://forum.flowable.org/t/how-to-update-the-businessstatus-property-dynamically-in-bpmn-workflows/12225 "2025-04-28T07:36:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![antonio.pascual](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@antonio.pascual](https://forum.flowable.org/u/antonio.pascual)\
**Post date:** [April 28, 2025, 7:36am UTC](https://forum.flowable.org/t/how-to-update-the-businessstatus-property-dynamically-in-bpmn-workflows/12225/1 "2025-04-28T07:36:29Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [April 29, 2025, 7:32am UTC](https://forum.flowable.org/t/how-to-update-the-businessstatus-property-dynamically-in-bpmn-workflows/12225/2 "2025-04-29T07:32:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![antonio.pascual](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@antonio.pascual](https://forum.flowable.org/u/antonio.pascual)\
**Post date:** [April 29, 2025, 12:28pm UTC](https://forum.flowable.org/t/how-to-update-the-businessstatus-property-dynamically-in-bpmn-workflows/12225/3 "2025-04-29T12:28:16Z")

</div>

Great @filiphr, thanks a lot for your help.
