private static void adaptExclusiveGateway(WithGatewaysBean pBean, ExclusiveGateway eg) { ExclusiveGatewayBean egb = new ExclusiveGatewayBean(eg.getId()); egb.setName(eg.getName()); setDocumentationAndExtensions(egb, eg); if(eg.getDefault()!=null){ defaultFlows.put(eg.getDefault().getId(), egb); } pBean.addGateway(egb); elements.put(egb.getId(), egb); }
private static void adaptSimpleTask(WithFlowElementsBean pBean, Task t, TaskBean tb, DefinitionsBean defs) { tb.setName(t.getName()); setDocumentationAndExtensions(tb, t); addDataAssociations(tb, t); tb.setIoSpecification(adaptIOSpecifications(t.getIoSpecification(), defs)); if(t.hasDefault()) { defaultFlows.put(t.getDefault().getId(), tb); } pBean.addTask(tb); elements.put(tb.getId(), tb); }
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); } }