1 of 1 people found this helpful
Why are you using Script Tasks?
You can use process variables and WorkItemHandlers for that and it will be way better for the maintainance point of view.
So something like:
Map <String, Object> params....
params.put("processClass", new ProcessClass());
startProcess(<your process id>, params)
From inside the workItem handler you will be able to access to the processClass process variable and execute the methods that you need.
Thank you so much for your suggestion! I finally find the solution to my question using process variable with WorkItemHandler.
Really thanks a lot for help!
Sorry to trouble you but I have a new problem with the same case. I posted it on the How to apply process variable to custom java class?.
Could you help me with that? Thanks a lot!