Map<String,WorkItemHandler> workItemHandlers = new HashMap<String, WorkItemHandler>();
workItemHandlers.put("Human Task", humanActivitiesSimHandler);
workItemHandlers.put("VehicleTrackingSystem", trackingSystemHandler);
//ProcessManager creation: feel free to switch between implementations.
this.processManager = new InMemoryProcessManager(this.createKBase(), this.createEnvironment(), workItemHandlers, "com.wordpress.salaboy.bpmn2.SimpleEmergencyService");
//this.processManager = new PersistentProcessManager(this.createKBase(), this.createEnvironment(), workItemHandlers, "com.wordpress.salaboy.bpmn2.SimpleEmergencyService");
//Work Items Handlers configuration
humanActivitiesSimHandler.setProcessManager(processManager);
ActiveWorkItemService.getInstance().setProcessManager(processManager);