Search in sources :

Example 6 with ExclusiveGateway

use of org.eclipse.bpmn2.ExclusiveGateway in project kie-wb-common by kiegroup.

the class Bpmn2JsonMarshaller method marshallExclusiveGateway.

protected void marshallExclusiveGateway(ExclusiveGateway gateway, BPMNPlane plane, JsonGenerator generator, float xOffset, float yOffset, Map<String, Object> flowElementProperties) throws JsonGenerationException, IOException {
    if (gateway.getDefault() != null) {
        SequenceFlow defsf = gateway.getDefault();
        String defGatewayStr = defsf.getId();
        flowElementProperties.put("defaultgate", defGatewayStr);
    }
    marshallNode(gateway, flowElementProperties, "Exclusive_Databased_Gateway", plane, generator, xOffset, yOffset);
}
Also used : SequenceFlow(org.eclipse.bpmn2.SequenceFlow)

Aggregations

ExclusiveGateway (org.eclipse.bpmn2.ExclusiveGateway)3 FlowElement (org.eclipse.bpmn2.FlowElement)3 InclusiveGateway (org.eclipse.bpmn2.InclusiveGateway)3 SequenceFlow (org.eclipse.bpmn2.SequenceFlow)3 ItemAwareElement (org.eclipse.bpmn2.ItemAwareElement)2 RootElement (org.eclipse.bpmn2.RootElement)2 SimpleFeatureMapEntry (org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.SimpleFeatureMapEntry)2 Test (org.junit.Test)2 ExclusiveGateway (org.kie.workbench.common.stunner.bpmn.definition.ExclusiveGateway)2 SequenceFlow (org.kie.workbench.common.stunner.bpmn.definition.SequenceFlow)2 Metadata (org.kie.workbench.common.stunner.core.diagram.Metadata)2 Edge (org.kie.workbench.common.stunner.core.graph.Edge)2 Element (org.kie.workbench.common.stunner.core.graph.Element)2 Graph (org.kie.workbench.common.stunner.core.graph.Graph)2 View (org.kie.workbench.common.stunner.core.graph.content.view.View)2 NodeImpl (org.kie.workbench.common.stunner.core.graph.impl.NodeImpl)2 ArrayList (java.util.ArrayList)1 Entry (java.util.Map.Entry)1 FlowElementsContainer (org.eclipse.bpmn2.FlowElementsContainer)1 FormalExpression (org.eclipse.bpmn2.FormalExpression)1