hamsterdancer [
http://community.jboss.org/people/hamsterdancer] created the discussion
"Re: Accessing the current state in Script or User Tasks"
To view the discussion, visit:
http://community.jboss.org/message/616169#616169
--------------------------------------------------------------
Ok, 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/Proce...
http://docs.jboss.org/jbpm/v5.1/javadocs/org/drools/runtime/process/Proce...
As you can see, you can get all the information about the process instances, node
instances including all the variables.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/616169#616169]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]