-
1. Re: Accessing the current state in Script or User Tasks
hamsterdancer Jul 19, 2011 11:34 AM (in response to hamsterdancer)1 of 1 people found this helpfulOk, I found a solution for the "optional" point. I'm now able to get additional information about the current process like the name, instance and the node itself with all its variables. But I need still the current user of the jBPM console. Any idea?
To whom it may concern:
With the kcontext variable which you can also access in scripts, you are an object of the class using org.drools.spi.ProcessContext which implements the following interface:
http://docs.jboss.org/jbpm/v5.1/javadocs/org/drools/runtime/process/ProcessContext.html
As you can see, you can get all the information about the process instances, node instances including all the variables.
-
2. Re: Accessing the current state in Script or User Tasks
jolara May 3, 2012 5:19 AM (in response to hamsterdancer)Hi hamsterdancer and all,
I also need to have access to the current user of the jBPM console in a script task. Do you have a solution for this in the meantime? Can someone else help me here otherwise?
Many thanks in advance.
-
3. Re: Accessing the current state in Script or User Tasks
hamsterdancer May 3, 2012 9:03 AM (in response to jolara)No, I'm sorry. It seems now there is no way. The console only controls and manages processe and is used for more than only jBPM. So it is afaik not possible.