communicating between process
Thanks for reading and at least trying to help
I have some difficulties to work with two process.
The first has a task which 'lock' the process while 'things' are not done in the second.
The second do some validation things and then I try to :
- update business data in the first process
- end the 'waiting' task
- make the first process continue to next task regarding the validation done by the second
I try to do this with Apiaccessor in a groovy script
I've already though about it but that will not fit to my needs.
To avoid having a part of the first process waiting for a signal, Process 2 need to directly acces data in Process 1.
I managed to drive the state of a task but changing process data variable stay unsuccessful.
I tried with :
apiAccessor.getProcessAPI().updateProcessDataInstance("", myProcessInstanceID, "");
Have you looked at using signal events? Process 1 can include an intermediate catch signal event, so it waits until it receives the signal. Process 2 can throw the signal when it's done.
It's easy to define in the Studio, but I don't know abou the APIs.