Examples of ExclusiveGateway


Examples of org.activiti.bpmn.model.ExclusiveGateway

   * @param original
   *          the object to clone
   * @return a clone of the original object
   */
  private static final ExclusiveGateway clone(final ExclusiveGateway original, final Diagram diagram) {
    ExclusiveGateway result = new ExclusiveGateway();
    result.setId(ActivitiUiUtil.getNextId(result.getClass(), CreateExclusiveGatewayFeature.FEATURE_ID_KEY, diagram));
    return result;

  }
View Full Code Here

Examples of org.activiti.bpmn.model.ExclusiveGateway

    return ELEMENT_GATEWAY_EXCLUSIVE;
  }
 
  @Override
  protected BaseElement convertXMLToElement(XMLStreamReader xtr) throws Exception {
    ExclusiveGateway gateway = new ExclusiveGateway();
    return gateway;
  }
View Full Code Here

Examples of org.activiti.bpmn.model.ExclusiveGateway

 
  protected void convertElementToJson(ObjectNode propertiesNode, FlowElement flowElement) {
  }
 
  protected FlowElement convertJsonToElement(JsonNode elementNode, JsonNode modelNode, Map<String, JsonNode> shapeMap) {
    ExclusiveGateway gateway = new ExclusiveGateway();
    return gateway;
  }
View Full Code Here

Examples of org.eclipse.bpmn2.ExclusiveGateway

    public void testGatewayUnmarshalling() throws Exception {
        Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();
        Definitions definitions = ((Definitions) unmarshaller.unmarshall(getTestJsonFile("gateway.json"), "").getContents().get(0));
        assertTrue(definitions.getRootElements().size() == 1);
        Process process = getRootProcess(definitions);
        ExclusiveGateway g = (ExclusiveGateway) process.getFlowElements().get(0);
        assertEquals("xor gateway", g.getName());
        definitions.eResource().save(System.out, Collections.emptyMap());
    }
View Full Code Here

Examples of org.eclipse.bpmn2.ExclusiveGateway

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.EXCLUSIVE_GATEWAY: {
            ExclusiveGateway exclusiveGateway = (ExclusiveGateway) theEObject;
            T result = caseExclusiveGateway(exclusiveGateway);
            if (result == null)
                result = caseGateway(exclusiveGateway);
            if (result == null)
                result = caseFlowNode(exclusiveGateway);
View Full Code Here

Examples of org.eclipse.bpmn2.ExclusiveGateway

          line.setLineType(LineType.DefaultFlow);
        }
        // ExclusiveGateway //InclusiveGateway
      }
      if (sequenceFlow.getTargetRef() instanceof ExclusiveGateway) {
        ExclusiveGateway exclusiveGateway = (ExclusiveGateway) sequenceFlow.getTargetRef();
        if (exclusiveGateway.getDefault() != null && exclusiveGateway.getDefault().equals(sequenceFlow)) {
          line.setLineType(LineType.DefaultFlow);
        }
        // ExclusiveGateway //InclusiveGateway
      }
      if (sequenceFlow.getTargetRef() instanceof InclusiveGateway) {
View Full Code Here

Examples of org.eclipse.bpmn2.ExclusiveGateway

 
  protected void convertElementToJson(ObjectNode propertiesNode, FlowElement flowElement) {
  }
 
  protected FlowElement convertJsonToElement(JsonNode elementNode, JsonNode modelNode, Map<String, JsonNode> shapeMap) {
    ExclusiveGateway gateway = Bpmn2Factory.eINSTANCE.createExclusiveGateway();// ExclusiveGateway();
    return gateway;
  }
View Full Code Here

Examples of org.eclipse.bpmn2.ExclusiveGateway

  }

  @Override
  public String getInitialValue(IDirectEditingContext context) {
    PictogramElement pe = context.getPictogramElement();
    ExclusiveGateway eClass = (ExclusiveGateway) getBusinessObjectForPictogramElement(pe);
    return eClass.getName();
  }
View Full Code Here

Examples of org.eclipse.bpmn2.ExclusiveGateway

  @Override
  public void setValue(String value, IDirectEditingContext context) {
    PictogramElement pe = context.getPictogramElement();

    ExclusiveGateway gateway = (ExclusiveGateway) getBusinessObjectForPictogramElement(pe);
    gateway.setName(value);

    updatePictogramElement(((Shape) pe).getContainer());
  }
View Full Code Here

Examples of org.eclipse.bpmn2.ExclusiveGateway

    public void testGatewayUnmarshalling() throws Exception {
        Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();
        Definitions definitions = unmarshaller.unmarshall(getTestJsonFile("gateway.json"));
        assertTrue(definitions.getRootElements().size() == 1);
        Process process = (Process) definitions.getRootElements().get(0);
        ExclusiveGateway g = (ExclusiveGateway) process.getFlowElements().get(0);
        assertEquals("xor gateway", g.getName());
        definitions.eResource().save(System.out, Collections.emptyMap());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.