Examples of ChoreographyTask


Examples of org.eclipse.bpmn2.ChoreographyTask

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.CHOREOGRAPHY_TASK: {
            ChoreographyTask choreographyTask = (ChoreographyTask) theEObject;
            T result = caseChoreographyTask(choreographyTask);
            if (result == null)
                result = caseChoreographyActivity(choreographyTask);
            if (result == null)
                result = caseFlowNode(choreographyTask);
View Full Code Here

Examples of org.eclipse.bpmn2.ChoreographyTask

      super(fp, "Choreography Task", "Represents interactions between two participants");
    }

    @Override
    protected ChoreographyTask createFlowElement(ICreateContext context) {
      ChoreographyTask task = ModelHandler.FACTORY.createChoreographyTask();
      task.setName("Choreography Task");
      task.setLoopType(ChoreographyLoopType.NONE);
      return task;
    }
View Full Code Here

Examples of org.eclipse.bpmn2.ChoreographyTask

  }

  public static void drawMessageLinks(ContainerShape choreographyContainer) {

    List<MessageFlow> messageFlows = new ArrayList<MessageFlow>();
    ChoreographyTask choreography = BusinessObjectUtil.getFirstElementOfType(choreographyContainer,
        ChoreographyTask.class);
    if (choreography != null) {
      messageFlows.addAll(choreography.getMessageFlowRef());
    }

    List<ContainerShape> bandContainers = getParticipantBandContainerShapes(choreographyContainer);
    Tuple<List<ContainerShape>, List<ContainerShape>> topAndBottom = getTopAndBottomBands(bandContainers);
    List<ContainerShape> shapesWithVisileMessages = new ArrayList<ContainerShape>();
View Full Code Here

Examples of org.eclipse.bpmn2.ChoreographyTask

  public IReason updateNeeded(IUpdateContext context) {
    if (!BusinessObjectUtil.containsElementOfType(context.getPictogramElement(), ChoreographyTask.class)) {
      return Reason.createFalseReason();
    }

    ChoreographyTask choreography = BusinessObjectUtil.getFirstElementOfType(context.getPictogramElement(),
        ChoreographyTask.class);

    String ids = peService.getPropertyValue(context.getPictogramElement(), MESSAGE_REF_IDS);
    String choreoIds = ChoreographyUtil.getMessageRefIds(choreography);
View Full Code Here

Examples of org.eclipse.bpmn2.ChoreographyTask

  @Override
  public boolean update(IUpdateContext context) {
    ContainerShape choreographyContainer = (ContainerShape) context.getPictogramElement();

    ChoreographyTask choreography = BusinessObjectUtil.getFirstElementOfType(choreographyContainer,
        ChoreographyTask.class);

    List<InteractionNode> sources = new ArrayList<InteractionNode>();
    for (MessageFlow message : choreography.getMessageFlowRef()) {
      sources.add(message.getSourceRef());
    }

    for (ContainerShape band : ChoreographyUtil.getParticipantBandContainerShapes(choreographyContainer)) {
      Participant participant = BusinessObjectUtil.getFirstElementOfType(band, Participant.class);
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.