private static void adaptSequenceFlow(SequenceFlow sf, WithSequenceFlowsBean wfe, DefinitionsBean def){ SequenceFlowBean sfb = new SequenceFlowBean(sf.getId()); setDocumentationAndExtensions(sfb, sf); sfb.setName(sf.getName()); if(sf.getConditionExpression()!=null){ sfb.setExpression(adaptExpression(sf.getConditionExpression())); } sfb.setSourceNode((IFlowElementBean) elements.get(sf.getSourceRef().getId())); sfb.setTargetNode((IFlowElementBean) elements.get(sf.getTargetRef().getId())); wfe.addSequenceFlow(sfb); elements.put(sfb.getId(), sfb); if(defaultFlows.containsKey(sfb.getId())){ defaultFlows.get(sfb.getId()).setDefaultSequenceFlow(sfb); } }
SequenceFlowBean sf0 = new SequenceFlowBean(LOWER_LANE_EL_10_ID); sf0.setSourceNode(seb); sf0.setTargetNode(task1); SequenceFlowBean sf1 = new SequenceFlowBean(LOWER_LANE_EL_11_ID); sf1.setSourceNode(task1); sf1.setTargetNode(task2); SequenceFlowBean sf2 = new SequenceFlowBean(LOWER_LANE_EL_12_ID); sf2.setSourceNode(task2); sf2.setTargetNode(task3); SequenceFlowBean sf3 = new SequenceFlowBean(LOWER_LANE_EL_13_ID); sf3.setSourceNode(task3); sf3.setTargetNode(gateway); SequenceFlowBean sf4 = new SequenceFlowBean(LOWER_LANE_EL_14_ID); sf4.setSourceNode(gateway); sf4.setTargetNode(task4); SequenceFlowBean sf5 = new SequenceFlowBean(LOWER_LANE_EL_15_ID); sf5.setSourceNode(gateway); sf5.setTargetNode(task5); SequenceFlowBean sf6 = new SequenceFlowBean(LOWER_LANE_EL_16_ID); sf6.setSourceNode(task4); sf6.setTargetNode(task6); SequenceFlowBean sf7 = new SequenceFlowBean(LOWER_LANE_EL_17_ID);
SequenceFlowBean sf1 = new SequenceFlowBean(UPPER_LANE_EL_12_ID); sf1.setSourceNode(startEvent); sf1.setTargetNode(task1); SequenceFlowBean sf2 = new SequenceFlowBean(UPPER_LANE_EL_13_ID); sf2.setSourceNode(task1); sf2.setTargetNode(task2); SequenceFlowBean sf3 = new SequenceFlowBean(UPPER_LANE_EL_14_ID); sf3.setSourceNode(task2); sf3.setTargetNode(task3); SequenceFlowBean sf4 = new SequenceFlowBean(UPPER_LANE_EL_15_ID); sf4.setSourceNode(task3); sf4.setTargetNode(task4); SequenceFlowBean sf5 = new SequenceFlowBean(UPPER_LANE_EL_16_ID); sf5.setSourceNode(task4); sf5.setTargetNode(task5); SequenceFlowBean sf6 = new SequenceFlowBean(UPPER_LANE_EL_17_ID); sf6.setSourceNode(task5); sf6.setTargetNode(gateway); SequenceFlowBean sf7 = new SequenceFlowBean(UPPER_LANE_EL_18_ID); sf7.setSourceNode(gateway); sf7.setTargetNode(task6); SequenceFlowBean sf8 = new SequenceFlowBean(UPPER_LANE_EL_19_ID);
SequenceFlowBean sf = new SequenceFlowBean(LOWER_LANE_SF_0_ID); sf.setSourceNode(startEvent); sf.setTargetNode(task1); SequenceFlowBean sf1 = new SequenceFlowBean(LOWER_LANE_SF_1_ID); sf1.setSourceNode(task1); sf1.setTargetNode(task2); SequenceFlowBean sf2 = new SequenceFlowBean(LOWER_LANE_SF_2_ID); sf2.setSourceNode(task2); sf2.setTargetNode(gateway); SequenceFlowBean sf3 = new SequenceFlowBean(LOWER_LANE_SF_3_ID); sf3.setSourceNode(gateway); SequenceFlowBean sf4 = new SequenceFlowBean(LOWER_LANE_SF_4_ID); sf4.setSourceNode(gateway); sf4.setTargetNode(task4); SequenceFlowBean sf5 = new SequenceFlowBean(LOWER_LANE_SF_5_ID); SequenceFlowBean sf6 = new SequenceFlowBean(LOWER_LANE_SF_6_ID); sf6.setSourceNode(task4); sf6.setTargetNode(endEvent1);
SequenceFlowBean sf1 = new SequenceFlowBean(UPPER_LANE_SF_1_ID); sf1.setSourceNode(startEvent); sf1.setTargetNode(task1); SequenceFlowBean sf2 = new SequenceFlowBean(UPPER_LANE_SF_2_ID); sf2.setSourceNode(task1); sf2.setTargetNode(gateway1); SequenceFlowBean sf3 = new SequenceFlowBean(UPPER_LANE_SF_3_ID); sf3.setSourceNode(gateway1); sf3.setTargetNode(task2); SequenceFlowBean sf4 = new SequenceFlowBean(UPPER_LANE_SF_4_ID); sf4.setSourceNode(gateway1); sf4.setTargetNode(task3); SequenceFlowBean sf5 = new SequenceFlowBean(UPPER_LANE_SF_5_ID); sf5.setSourceNode(task2); sf5.setTargetNode(gateway2); SequenceFlowBean sf6 = new SequenceFlowBean(UPPER_LANE_SF_6_ID); sf6.setSourceNode(task3); sf6.setTargetNode(gateway2); SequenceFlowBean sf7 = new SequenceFlowBean(UPPER_LANE_SF_7_ID); sf7.setSourceNode(gateway2); sf7.setTargetNode(task4); SequenceFlowBean sf8 = new SequenceFlowBean(UPPER_LANE_SF_8_ID);
SequenceFlowBean sf = new SequenceFlowBean(LOWER_LANE_SF_0_ID); sf.setSourceNode(startEvent); sf.setTargetNode(task1); SequenceFlowBean sf1 = new SequenceFlowBean(LOWER_LANE_SF_1_ID); sf1.setSourceNode(task1); sf1.setTargetNode(task2); SequenceFlowBean sf2 = new SequenceFlowBean(LOWER_LANE_SF_2_ID); sf2.setSourceNode(task2); sf2.setTargetNode(gateway); SequenceFlowBean sf3 = new SequenceFlowBean(LOWER_LANE_SF_3_ID); sf3.setSourceNode(gateway); sf3.setTargetNode(task3); SequenceFlowBean sf4 = new SequenceFlowBean(LOWER_LANE_SF_4_ID); sf4.setSourceNode(gateway); sf4.setTargetNode(task4); SequenceFlowBean sf5 = new SequenceFlowBean(LOWER_LANE_SF_5_ID); sf5.setSourceNode(task3); sf5.setTargetNode(endEvent1); SequenceFlowBean sf6 = new SequenceFlowBean(LOWER_LANE_SF_6_ID); sf6.setSourceNode(task4); sf6.setTargetNode(endEvent2);
SequenceFlowBean sf1 = new SequenceFlowBean(UPPER_LANE_SF_1_ID); sf1.setSourceNode(startEvent); sf1.setTargetNode(task1); SequenceFlowBean sf2 = new SequenceFlowBean(UPPER_LANE_SF_2_ID); sf2.setSourceNode(task1); sf2.setTargetNode(task2); SequenceFlowBean sf3 = new SequenceFlowBean(UPPER_LANE_SF_3_ID); sf3.setSourceNode(task2); sf3.setTargetNode(task3); SequenceFlowBean sf4 = new SequenceFlowBean(UPPER_LANE_SF_4_ID); sf4.setSourceNode(task3); sf4.setTargetNode(task4); SequenceFlowBean sf5 = new SequenceFlowBean(UPPER_LANE_SF_5_ID); sf5.setSourceNode(task4); sf5.setTargetNode(gateway); SequenceFlowBean sf6 = new SequenceFlowBean(UPPER_LANE_SF_6_ID); sf6.setSourceNode(gateway); sf6.setTargetNode(task); SequenceFlowBean sf7 = new SequenceFlowBean(UPPER_LANE_SF_7_ID); sf7.setSourceNode(gateway); sf7.setTargetNode(task5); SequenceFlowBean sf8 = new SequenceFlowBean(UPPER_LANE_SF_8_ID);
SequenceFlowBean sf1 = new SequenceFlowBean(PROCESS1_EL12_ID); sf1.setSourceNode(startEvent); sf1.setTargetNode(task1); SequenceFlowBean sf2 = new SequenceFlowBean(PROCESS1_EL13_ID); sf2.setSourceNode(task1); sf2.setTargetNode(task2); SequenceFlowBean sf3 = new SequenceFlowBean(PROCESS1_EL14_ID); sf3.setSourceNode(task2); sf3.setTargetNode(exclusiveGw1); SequenceFlowBean sf4 = new SequenceFlowBean(PROCESS1_EL15_ID); ExpressionBean expSF4 = new ExpressionBean(IdGenerator.createUniqueId()); expSF4.setContent("Rejected"); SequenceFlowBean sf5 = new SequenceFlowBean(PROCESS1_EL16_ID); ExpressionBean expSF5 = new ExpressionBean(IdGenerator.createUniqueId()); expSF5.setContent("Approved"); SequenceFlowBean sf6 = new SequenceFlowBean(PROCESS1_EL17_ID); sf6.setSourceNode(pgwt1); sf6.setTargetNode(task3); SequenceFlowBean sf7 = new SequenceFlowBean(PROCESS1_EL18_ID); sf7.setSourceNode(pgwt1); sf7.setTargetNode(task4); SequenceFlowBean sf8 = new SequenceFlowBean(PROCESS1_EL19_ID);