Package org.activiti.bpmn.model

Examples of org.activiti.bpmn.model.EventGateway


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


  private void validateModel(BpmnModel model) {
    FlowElement flowElement = model.getMainProcess().getFlowElement("eventBasedGateway");
    assertNotNull(flowElement);
    assertTrue(flowElement instanceof EventGateway);
   
    EventGateway gateway = (EventGateway) flowElement;
    List<ActivitiListener> listeners = gateway.getExecutionListeners();
    assertEquals(1, listeners.size());
    ActivitiListener listener = listeners.get(0);
    assertTrue(ImplementationType.IMPLEMENTATION_TYPE_CLASS.equals(listener.getImplementationType()));
    assertEquals("org.test.TestClass", listener.getImplementation());
    assertEquals("start", listener.getEvent());
View Full Code Here

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

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

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

  public Object[] create(ICreateContext context) {
    EventGateway eventGateway = new EventGateway();
    addObjectToContainer(context, eventGateway, "Event Gateway");

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

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

TOP

Related Classes of org.activiti.bpmn.model.EventGateway

Copyright © 2018 www.massapicom. 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.