Package org.jbpm.graph.exe

Examples of org.jbpm.graph.exe.Token.addLog()


      }

      // log this creation
      // WARNING: The events create and assign are fired in the right order, but
      // the logs are still not ordered properly.
      token.addLog(new TaskCreateLog(taskInstance, taskInstance.getActorId()));

    }
    else
    {
      taskInstance.create();
View Full Code Here


    // remove the subprocess reference
    superProcessToken.setSubProcessInstance(null);

    // We replaced the normal log generation of super.leave() by creating the log here
    // and overriding the addNodeLog method with an empty version
    superProcessToken.addLog(new ProcessStateLog(this, superProcessToken.getNodeEnter(), Clock.getCurrentTime(), subProcessInstance));

    // call the subProcessEndAction
    super.leave(executionContext, getDefaultLeavingTransition());
  }
View Full Code Here

    // fire the leave-node event for this node
    fireEvent(Event.EVENTTYPE_NODE_LEAVE, executionContext);
   
    // log this node
    if (token.getNodeEnter()!=null) {
      token.addLog(new NodeLog(this, token.getNodeEnter(), new Date()));
    }

    // update the runtime information for taking the transition
    // the transitionSource is used to calculate events on superstates
    executionContext.setTransitionSource(this);
View Full Code Here

        executionContext.setTaskInstance(null);
        executionContext.setEventSource(null);
      }
     
      // log this creation
      token.addLog(new TaskCreateLog(taskInstance, taskInstance.getActorId()));

    } else {
      taskInstance.create();
    }
View Full Code Here

        executionContext.setTaskInstance(null);
        executionContext.setEventSource(null);
      }
     
      // log this creation
      token.addLog(new TaskCreateLog(taskInstance, taskInstance.getActorId()));

    } else {
      taskInstance.create();
    }
View Full Code Here

    // remove the subprocess reference
    superProcessToken.setSubProcessInstance(null);
   
    // We replaced the normal log generation of super.leave() by creating the log here
    // and overriding the addNodeLog method with an empty version
    superProcessToken.addLog(new ProcessStateLog(this, superProcessToken.getNodeEnter(), new Date(), subProcessInstance));

    // call the subProcessEndAction
    super.leave(executionContext, getDefaultLeavingTransition());
  }
View Full Code Here

      }
     
      // log this creation
      // WARNING: The events create and assign are fired in the right order, but
      // the logs are still not ordered properly.
      token.addLog(new TaskCreateLog(taskInstance, taskInstance.getActorId()));

    } else {
      taskInstance.create();
    }
View Full Code Here

    // remove the subprocess reference
    superProcessToken.setSubProcessInstance(null);
   
    // We replaced the normal log generation of super.leave() by creating the log here
    // and overriding the addNodeLog method with an empty version
    superProcessToken.addLog(new ProcessStateLog(this, superProcessToken.getNodeEnter(), Clock.getCurrentTime(), subProcessInstance));

    // call the subProcessEndAction
    super.leave(executionContext, getDefaultLeavingTransition());
  }
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.