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?