Hi people !
It has already solved. The logic, methods and proramming are fine.
We are testing the scenario in Debug mode insteade in execution mode via "play button of studio" or via "workplace".
- In "debug" mode, CP4BA does not create an instanceId / instance number.
- As We are using an object that clains for instance (tw.system.processInstance....), it causes the failure/error.
When We tested in execution, mode the instance is created and there is no failure/error.
So, whenever in your scripts you uses an objected tied to "instance" , test your code or coach of flow using execution mode.
Regards, M