lBean.addGateway((GatewayBean)elements.get(fn.getId()));
@Override public void addFlowElement(IFlowElementBean flowElement) { if (flowElement instanceof IEndEventBean){ addEndEvent((IEndEventBean) flowElement); }else if (flowElement instanceof ITaskBean){ addTask((ITaskBean) flowElement); }else if (flowElement instanceof IStartEventBean){ addStartEvent((IStartEventBean) flowElement); }else if (flowElement instanceof IGatewayBean){ addGateway((IGatewayBean) flowElement); }else if (flowElement instanceof IIntermediateCatchEventBean){ addIntermediateCatchEvent((IIntermediateCatchEventBean) flowElement); }else if (flowElement instanceof IIntermediateThrowEventBean){ addIntermediateThrowEvent((IIntermediateThrowEventBean) flowElement); }else if (flowElement instanceof IDataObjectBean){ addDataObject((IDataObjectBean) flowElement); }else if (flowElement instanceof ICallActivityBean){ addCallActivity((ICallActivityBean) flowElement); } }
laneBean.addGateway((IGatewayBean) el.getModelElement());
result.addGateway(gateway); process.addGateway(gateway);
ParallelGatewayBean gateway1 = new ParallelGatewayBean(UPPER_LANE_EL_3_ID); gateway1.setName("Work Distribution"); result.addGateway(gateway1); process.addGateway(gateway1); ParallelGatewayBean gateway2 = new ParallelGatewayBean(UPPER_LANE_EL_6_ID); gateway2.setName("Work Aggregation"); result.addGateway(gateway2); process.addGateway(gateway2);
ExclusiveGatewayBean gateway = new ExclusiveGatewayBean(LOWER_LANE_EL_5_ID); process.addGateway(gateway); result.addGateway(gateway);
ExclusiveGatewayBean exclusiveGw1 = new ExclusiveGatewayBean(PROCESS1_EL4_ID); lane.addGateway(exclusiveGw1); process.addGateway(exclusiveGw1); ParallelGatewayBean pgwt1 = new ParallelGatewayBean(PROCESS1_EL6_ID); lane.addGateway(pgwt1); process.addGateway(pgwt1); ParallelGatewayBean pgwt2 = new ParallelGatewayBean(PROCESS1_EL9_ID); lane.addGateway(pgwt2); process.addGateway(pgwt2);
ExclusiveGatewayBean gateway = new ExclusiveGatewayBean(UPPER_LANE_EL_7_ID); process.addGateway(gateway); result.addGateway(gateway);
result.addGateway(gateway); process.addGateway(gateway);
result.addGateway(gateway); process.addGateway(gateway);