Package org.eclipse.bpmn2

Examples of org.eclipse.bpmn2.FlowElement


                } else if (def instanceof ErrorEventDefinition) {
                    key = ((ErrorEventDefinition) def)
                            .getErrorRef().getId();
                }

                FlowElement catchEvent = manager.getCatchingEvents().get(key);
                if (catchEvent != null && hasPathToCatchEvent(catchEvent)) {
                    PathContext context = manager.getContextFromStack();
                    boolean canBeFinished = context.isCanBeFinished();
                    context.setCanBeFinishedNoIncrement(false);
                    super.handle(catchEvent, manager);
View Full Code Here


        for (PathContext contextAtThisNode : contextsAtThisNode) {

            for (SequenceFlow seqFlow : outgoing) {

                FlowElement target = seqFlow.getTargetRef();
                if (!contextAtThisNode.getVisitedSplitPoint().contains(seqFlow)) {
                    PathContext separatePath = manager.cloneGiven(contextAtThisNode);
                    separatePath.addVisitedSplitPoint(seqFlow);
                    manager.addToPath(seqFlow, separatePath);
                    super.handle(target, manager);
View Full Code Here

        context.setCanBeFinished(false);
        manager.addAllToPath(outgoing, context);
        int counter = 0;
        for (SequenceFlow seqFlow : outgoing) {
            counter++;
            FlowElement target = seqFlow.getTargetRef();

            if (counter == outgoing.size()) {
                if (manager.getPaths().size() == 1) {
                    context.setCanBeFinished(canBeFinished);
View Full Code Here

    protected void handleSeparatePaths(List<SequenceFlow> outgoing, PathContextManager manager, BoundaryEvent bEvent) {
        List<PathContext> locked = new ArrayList<PathContext>();
        PathContext context = manager.getContextFromStack();
        for (SequenceFlow seqFlow : outgoing) {

            FlowElement target = seqFlow.getTargetRef();

            PathContext separatePath = manager.cloneGiven(context);
            // replace boundary event with a wrapper if sequence flow does not go out if it
            if (!seqFlow.getSourceRef().equals(bEvent)) {
                separatePath.removePathElement(bEvent);
View Full Code Here

        PathContext context = manager.getContextFromStack();
        context.setCanBeFinished(false);
        int counter = 0;
        for (SequenceFlow seqFlow : outgoing) {
            counter++;
            FlowElement target = seqFlow.getTargetRef();

            if (counter == outgoing.size()) {
                context.setCanBeFinished(true);
            }
            manager.addToPath(seqFlow, context);
View Full Code Here

          if(scenario.getElementParameters() != null) {
            for(ElementParameters eleType : scenario.getElementParameters()) {
              if(eleType.getElementRef().equals(nodeId)) {
                if(eleType.getControlParameters() != null && eleType.getControlParameters().getProbability() != null) {

                            FlowElement element = null;
                            for (RootElement root : def.getRootElements()) {
                                if (root instanceof Process) {
                                    element = findElementInContainer((FlowElementsContainer) root, nodeId);
                                    if (element != null && element instanceof SequenceFlow) {
                                        element = ((SequenceFlow)element).getSourceRef();
View Full Code Here

       
        for (FlowElement fElement : currentContainerElems) {
            if (fElement.getId().equals(id) ) {
                return fElement;
            } else if (fElement instanceof FlowElementsContainer) {
                FlowElement fe = findElementInContainer((FlowElementsContainer) fElement, id);
                if (fe != null) {
                    return fe;
                }
            }
        }
View Full Code Here

    }

    public Map<String, Object> getProcessDataForNode(Node node) {

        Map<String, Object> nodeProperties = new HashMap<String, Object>();
        FlowElement flowElement = null;
                List<RootElement> rootElements = def.getRootElements();
        for (RootElement root : rootElements) {
            if (root instanceof Process) {
                flowElement = findElementInContainer((FlowElementsContainer) root, (String) node.getMetaData().get("UniqueId"));
                break;
View Full Code Here

  }

  public static String getBusinessValue(IPictogramElementContext context) {
    Object o = BusinessObjectUtil.getFirstElementOfType(context.getPictogramElement(), BaseElement.class);
    if (o instanceof FlowElement) {
      FlowElement e = (FlowElement) o;
      return e.getName();
    } else if (o instanceof TextAnnotation) {
      TextAnnotation a = (TextAnnotation) o;
      return a.getText();
    } else if (o instanceof Participant) {
      Participant p = (Participant) o;
View Full Code Here

  }

  public TreeObject(final BaseElement f) {
    this.f = f;
    if (f instanceof FlowElement) {
      FlowElement flowElem = (FlowElement) f;
      name = flowElem.getName() == null ? "" : flowElem.getName();
      name += " (" + f.eClass().getName() + ")";
    } else {
      name = f.eClass().getName();
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.bpmn2.FlowElement

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.