Package org.activiti.bpmn.model

Examples of org.activiti.bpmn.model.EndEvent


  }

  @Override
  protected EndEvent createProcessArtifact(AlfrescoEndProcessStepDefinition stepDefinition,
      WorkflowDefinitionConversion conversion) {
    EndEvent endEvent = new EndEvent();
    endEvent.setId(conversion.getUniqueNumberedId(ConversionConstants.EVENT_ID_PREFIX));
   
    addFlowElement(conversion, endEvent, true);
    return endEvent;
  }
View Full Code Here


    userTask.setName("The Task");
    userTask.setId("theTask");
    userTask.setAssignee("kermit");
    process.addFlowElement(userTask);
   
    EndEvent endEvent = new EndEvent();
    endEvent.setId("theEnd");
    process.addFlowElement(endEvent);
   
    process.addFlowElement(new SequenceFlow("start", "theTask"));
    process.addFlowElement(new SequenceFlow("theTask", "theEnd"));
   
View Full Code Here

    userTask2.setName("The Second Task");
    userTask2.setId("task2");
    userTask2.setAssignee("kermit");
    process.addFlowElement(userTask2);
   
    EndEvent endEvent = new EndEvent();
    endEvent.setId("theEnd");
    process.addFlowElement(endEvent);
   
    process.addFlowElement(new SequenceFlow("start", "task1"));
    process.addFlowElement(new SequenceFlow("start", "task2"));
    process.addFlowElement(new SequenceFlow("task1", "theEnd"));
View Full Code Here

    SequenceFlow flow1 = new SequenceFlow();
    flow1.setId("flow1");
    flow1.setSourceRef("startEvent1");
    flow1.setTargetRef("reviewTask");
    process.addFlowElement(flow1);
    EndEvent endEvent = new EndEvent();
    endEvent.setId("endEvent1");
    process.addFlowElement(endEvent);
   
    byte[] xml = new BpmnXMLConverter().convertToXML(bpmnModel);
   
    new BpmnXMLConverter().validateModel(new InputStreamSource(new ByteArrayInputStream(xml)));
View Full Code Here

      if (bo == null)
        return;
     
      String errorCode = null;
      if(bo instanceof EndEvent) {
        EndEvent endEvent = (EndEvent) bo;
        if(endEvent.getEventDefinitions().get(0) != null) {
          ErrorEventDefinition errorDefinition = (ErrorEventDefinition) endEvent.getEventDefinitions().get(0);
          if(errorDefinition.getErrorCode() != null) {
            errorCode = errorDefinition.getErrorCode();
          }
        }
      }
View Full Code Here

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

  public Object[] create(ICreateContext context) {
    EndEvent endEvent = new EndEvent();
    addObjectToContainer(context, endEvent, "End");

    // return newly created business object(s)
    return new Object[] { endEvent };
  }
View Full Code Here

    // set name and description of the creation feature
    super(fp, "ErrorEndEvent", "Add error end event");
  }

  public Object[] create(ICreateContext context) {
    EndEvent endEvent = new EndEvent();
    ErrorEventDefinition eventDef = new ErrorEventDefinition();
    endEvent.getEventDefinitions().add(eventDef);
    addObjectToContainer(context, endEvent, "ErrorEnd");

    // return newly created business object(s)
    return new Object[] { endEvent };
  }
View Full Code Here

          result = Activator.getImage(PluginImage.IMG_STARTEVENT_NONE);
        }
      }
     
    } else if (context instanceof EndEvent) {
      EndEvent endEvent = (EndEvent) context;
      for (EventDefinition eventDefinition : endEvent.getEventDefinitions()) {
        if (eventDefinition instanceof ErrorEventDefinition) {
          result = Activator.getImage(PluginImage.IMG_ENDEVENT_ERROR);
        } else if (eventDefinition instanceof TerminateEventDefinition) {
          result = Activator.getImage(PluginImage.IMG_ENDEVENT_TERMINATE);
        }
View Full Code Here

 
  @Override
  protected boolean accept(PictogramElement pe) {
    Object bo = getBusinessObject(pe);
    if(bo instanceof EndEvent) {
      EndEvent endEvent = (EndEvent) bo;
      if(endEvent.getEventDefinitions() != null) {
        for(EventDefinition eventDefinition : endEvent.getEventDefinitions()) {
          if(eventDefinition instanceof ErrorEventDefinition) {
            return true;
          }
        }
      }
View Full Code Here

    // set name and description of the creation feature
    super(fp, "TerminateEndEvent", "Add terminate end event");
  }

  public Object[] create(ICreateContext context) {
    EndEvent endEvent = new EndEvent();
    TerminateEventDefinition eventDef = new TerminateEventDefinition();
    endEvent.getEventDefinitions().add(eventDef);
    addObjectToContainer(context, endEvent, "TerminateEndEvent");

    // return newly created business object(s)
    return new Object[] { endEvent };
  }
View Full Code Here

TOP

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

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.