String preprocessingData = req.getParameter("ppdata");
DroolsFactoryImpl.init();
BpsimFactoryImpl.init();
Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();
Definitions def = ((Definitions) unmarshaller.unmarshall(json, preprocessingData).getContents().get(0));
List<String> outgoingInfo= new ArrayList<String>();
List<RootElement> rootElements = def.getRootElements();
for(RootElement root : rootElements) {
if(root instanceof Process) {
getAllOutgoing((Process) root, def, outgoingInfo, gatewayId);