Examples of FlowNode


Examples of org.eclipse.bpmn2.FlowNode

  private java.lang.String opinion;

  public void execute(ExecutionContext executionContext) throws Exception {
   
    FlowNode flowNode=executionContext.getTimeOutNode();
    if(flowNode==null){
      flowNode=executionContext.getToken().getFlowNode();
    }else{
      executeOld(executionContext);
      return;
View Full Code Here

Examples of org.eclipse.bpmn2.FlowNode

   
  }
 
  public void executeOld(ExecutionContext executionContext) throws Exception {
   
    FlowNode flowNode=executionContext.getTimeOutNode();

    UserTaskBehavior userTask=null;
    TokenEntity token=executionContext.getToken();
    if(flowNode instanceof UserTask){
      userTask=(UserTaskBehavior)flowNode;
View Full Code Here

Examples of org.eclipse.bpmn2.FlowNode

    if (isLocked) {
      throw new FixFlowException("令牌已经锁定!");
    }

    try {
      FlowNode signalNode = this.getFlowNode();
 
      signalNode.leave(executionContext);

    } finally {

    }
  }
View Full Code Here

Examples of org.eclipse.bpmn2.FlowNode

   
    flowElementNode.put(EDITOR_SHAPE_PROPERTIES, propertiesNode);
    ArrayNode outgoingArrayNode = objectMapper.createArrayNode();
   
    if (flowElement instanceof FlowNode) {
      FlowNode flowNode = (FlowNode) flowElement;
      for (SequenceFlow sequenceFlow : flowNode.getOutgoing()) {
        outgoingArrayNode.add(BpmnJsonConverterUtil.createResourceNode(sequenceFlow.getId()));
      }
    }
   
    if (flowElement instanceof Activity) {
View Full Code Here

Examples of org.eclipse.bpmn2.FlowNode

          createEndEventTask(executionContext);
        }
      }
      // createEndEventTask(executionContext);
      if (this.getParentProcessInstanceTokenId() != null && this.getParentProcessInstanceToken() != null) {
        FlowNode flowNode = this.getParentProcessInstanceToken().getFlowNode();
        if (flowNode instanceof CallActivity) {
          CallActivityBehavior callActivityBehavior = (CallActivityBehavior) flowNode;
          startParentProcessInstance(this.getParentProcessInstanceToken(), callActivityBehavior);
        }
      }
View Full Code Here

Examples of org.eclipse.bpmn2.FlowNode

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetSourceRef(FlowNode newSourceRef, NotificationChain msgs) {
        FlowNode oldSourceRef = sourceRef;
        sourceRef = newSourceRef;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
                    Bpmn2Package.SEQUENCE_FLOW__SOURCE_REF, oldSourceRef, newSourceRef);
            if (msgs == null)
View Full Code Here

Examples of org.eclipse.bpmn2.FlowNode

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetTargetRef(FlowNode newTargetRef, NotificationChain msgs) {
        FlowNode oldTargetRef = targetRef;
        targetRef = newTargetRef;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
                    Bpmn2Package.SEQUENCE_FLOW__TARGET_REF, oldTargetRef, newTargetRef);
            if (msgs == null)
View Full Code Here

Examples of org.eclipse.bpmn2.FlowNode

     
      //发现上下文中有直接跳转节点,则流程引擎不走正常处理直接跳转到指定借点。
     
     
      //获取跳转节点
      FlowNode toFlowNode=executionContext.getToFlowNode();
     
      LOG.debug("==执行跳转机制,跳转目标: {}({}),离开节点: {}({}),令牌号: {}({}).",toFlowNode.getName(),toFlowNode.getId(), this.getName(),this.getId(),token.getName(),token.getId());
     
     
      toFlowNode.enter(executionContext);
      return;
    }
   
   
    //定义可通过线条集合
View Full Code Here

Examples of org.eclipse.bpmn2.FlowNode

        if (incoming == null) {
            return false;
        }

        for (SequenceFlow sq : incoming) {
            FlowNode source = sq.getSourceRef();
            if (source instanceof ExclusiveGateway || source instanceof InclusiveGateway) {
                  if (((Gateway) source).getGatewayDirection().equals(GatewayDirection.DIVERGING)) {
                      return true;
                  }
            }
            boolean found = findSplitActivity(source.getIncoming());
            if (found) {
                return found;
            }
        }
View Full Code Here

Examples of org.jenkinsci.plugins.workflow.graph.FlowNode

                        if (p == null) {
                            throw new IllegalStateException(node + " is offline");
                        }
                        WorkspaceList.Lease lease = computer.getWorkspaceList().allocate(p);
                        FilePath workspace = lease.path;
                        FlowNode flowNode = context.get(FlowNode.class);
                        flowNode.addAction(new WorkspaceActionImpl(workspace, flowNode));
                        listener.getLogger().println("Running on " + computer.getDisplayName() + " in " + workspace); // TODO hyperlink
                        context.invokeBodyLater(exec, computer, env, workspace).addCallback(new Callback(cookie, lease));
                        LOGGER.log(Level.FINE, "started {0}", cookie);
                    } else {
                        // just rescheduled after a restart; wait for task to complete
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.