[jboss-user] [jBPM] - Passing variables to signalEvent

Donald Walters do-not-reply at jboss.com
Fri Sep 9 13:17:19 EDT 2011


Donald Walters [http://community.jboss.org/people/dondragon2] created the discussion

"Passing variables to signalEvent"

To view the discussion, visit: http://community.jboss.org/message/625804#625804

--------------------------------------------------------------
I am using the following to trigger and event in my process:

StatefulKnowledgeSession ksession = JPAKnowledgeService.newStatefulKnowledgeSession(kbase, null, env);
ksession.signalEvent("wait4_signal_event", parameters);

parameters is a Map<String,Object> that is created elsewhere.

<intermediateCatchEvent id="wait4_signal" name="wait4_signal">
<signalEventDefinition signalRef="wait4_signal_event"/>
</intermediateCatchEvent>

I realize that the parameters that is executed after the signal is sent is not what i passed int he signalEvent. It keeps using the values before the process reached the intermediateCatchEvent  in the flow. I saw from some examples that I can use dataOutput to pass a variable. but how can I do this for multiple variables. like those contain in the Map? Or, a different way to pass the variables instead of in a map?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/625804#625804]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110909/3c9984da/attachment.html 


More information about the jboss-user mailing list