-
1. Re: How to use an instantiated variable into all the script tasks in a single jbpm process?
salaboy21 Aug 22, 2014 5:08 AM (in response to catherinesjy)1 of 1 people found this helpfulHi Catherine,
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.
Regards
-
2. Re: How to use an instantiated variable into all the script tasks in a single jbpm process?
catherinesjy Sep 4, 2014 6:51 PM (in response to salaboy21)Hi Mauricio,
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!
Regards,
Catherine
-
3. Re: How to use an instantiated variable into all the script tasks in a single jbpm process?
catherinesjy Sep 9, 2014 9:50 AM (in response to salaboy21)Hi Mauricio,
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!
Regards,
Catherine