Examples of InclusiveGateway


Examples of org.activiti.bpmn.model.InclusiveGateway

    return ELEMENT_GATEWAY_INCLUSIVE;
  }
 
  @Override
  protected BaseElement convertXMLToElement(XMLStreamReader xtr, BpmnModel model) throws Exception {
    InclusiveGateway gateway = new InclusiveGateway();
    BpmnXMLUtil.addXMLLocation(gateway, xtr);
    parseChildElements(getXMLElementName(), gateway, model, xtr);
    return gateway;
  }
View Full Code Here

Examples of org.activiti.bpmn.model.InclusiveGateway

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

Examples of org.activiti.bpmn.model.InclusiveGateway

    // set name and description of the creation feature
    super(fp, "InclusiveGateway", "Add inclusive gateway");
  }

  public Object[] create(ICreateContext context) {
    InclusiveGateway inclusiveGateway = new InclusiveGateway();
    addObjectToContainer(context, inclusiveGateway, "Inclusive Gateway");

    return new Object[] { inclusiveGateway };
  }
View Full Code Here

Examples of org.activiti.bpmn.model.InclusiveGateway

    super(fp);
  }

  @Override
  public PictogramElement add(IAddContext context) {
    final InclusiveGateway addedGateway = (InclusiveGateway) context.getNewObject();
    final ContainerShape parent = context.getTargetContainer();
   
    // CONTAINER SHAPE WITH CIRCLE
    final IPeCreateService peCreateService = Graphiti.getPeCreateService();
    final ContainerShape containerShape = peCreateService.createContainerShape(parent, true);
View Full Code Here

Examples of org.activiti.bpmn.model.InclusiveGateway

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

Examples of org.activiti.bpmn.model.InclusiveGateway

   * @param original
   *          the object to clone
   * @return a clone of the original object
   */
  private static final InclusiveGateway clone(final InclusiveGateway original, final Diagram diagram) {
    InclusiveGateway result = new InclusiveGateway();
    result.setId(ActivitiUiUtil.getNextId(result.getClass(), CreateInclusiveGatewayFeature.FEATURE_ID_KEY, diagram));
    return result;
  }
View Full Code Here

Examples of org.activiti.bpmn.model.InclusiveGateway

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

Examples of org.eclipse.bpmn2.InclusiveGateway

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

Examples of org.eclipse.bpmn2.InclusiveGateway

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.INCLUSIVE_GATEWAY: {
            InclusiveGateway inclusiveGateway = (InclusiveGateway) theEObject;
            T result = caseInclusiveGateway(inclusiveGateway);
            if (result == null)
                result = caseGateway(inclusiveGateway);
            if (result == null)
                result = caseFlowNode(inclusiveGateway);
View Full Code Here

Examples of org.eclipse.bpmn2.InclusiveGateway

          line.setLineType(LineType.DefaultFlow);
        }
        // ExclusiveGateway //InclusiveGateway
      }
      if (sequenceFlow.getTargetRef() instanceof InclusiveGateway) {
        InclusiveGateway inclusiveGateway = (InclusiveGateway) sequenceFlow.getTargetRef();
        if (inclusiveGateway.getDefault() != null && inclusiveGateway.getDefault().equals(sequenceFlow)) {
          line.setLineType(LineType.DefaultFlow);
        }
        // ExclusiveGateway //InclusiveGateway
      }
    }
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.