Share business object

1
0
-1

Hello here is my workflow:
1 user creates a demand, in a process

2 In another process validators needs to validate this demand

How can I send this demand to validation process as we only have instantiate option available, and we need to edit this demand to validate or refuse it

I can't use a single process as validation will be sent within an email, so it need validation and task id if in the same process but; as I read in documentation, task need to be created to have an id, and we need this id to interact with it with the Bonita API;

So Is it possible to create a demand and validate it, and how can we share it between processes as we don't need to recreate a new demand just update the validate field

Thanks

Regards

1 answer

1
0
-1

Hi,

You can use the Demand persistenceId between the creation process and the validation. The creation process can send the persistenceId to the validation using a message event by example. Or you use a Call Activity to call the Validation process inside the creation, depending on your need.

In the Validation process instantiation contract, add demandId input and initialize it using a BDM query findByPersistenceId.

HTH
Romain

Notifications