I have a code, where I am inserting some parameters within the process(Jbpm) and then starting the process and also I am adding an EventListener(which extends DefaultProcessEventListener) to the knowledge session
KnowledgeBase kbase = readKnowledgeBase();
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
Map<String, Object> input = new HashMap<String, Object>();
input.put("payload", payloadObject);
input.put("caseNo", caseNoString);
EventListner listner = new EventListner();
ksession.addEventListener(listner);
ksession.startProcess(strategyName,input);
Now I want the input map within the Listner class
public class EventListner extends DefaultProcessEventListener{
@Override
public void afterProcessStarted(ProcessStartedEvent startEvent) {
//NEEDED HERE
}
@Override
public void afterProcessCompleted(ProcessCompletedEvent arg0) {
//NEEDED HERE
}
How...??? Need help