Package org.openbp.core.model.item.process

Examples of org.openbp.core.model.item.process.WorkflowNode


   */
  protected WorkflowTask createWorkflowTask(NodeSocket entrySocket, TokenContext context)
  {
    TokenContextService contextService = getEngine().getTokenContextService();

    WorkflowNode node = (WorkflowNode) entrySocket.getNode();

    // Create a new workflow task
    WorkflowTask workflowTask = contextService.createWorkflowTask(context);

    // Update the current task from the entry socket and the prototype
    WorkflowTaskDescriptor prototype = node.getWorkflowTaskDescriptor();
    updateWorkflowTaskFromPrototype(workflowTask, entrySocket, context, prototype);

    // Update the creating user and creation date if not present already
    if (workflowTask.getCreatingUserId() == null)
    {
View Full Code Here


    TokenContext context = workflowTask.getTokenContext();

    context = workflowTask.getTokenContext();

    NodeSocket workflowEntrySocket = context.getCurrentSocket();
    WorkflowNode workflowNode = (WorkflowNode) workflowEntrySocket.getNode();

    NodeSocket nextSocket = resolveSocketRef(socketName, workflowEntrySocket, context, true);
    context.setCurrentSocket(nextSocket);
    context.setLifecycleRequest(LifecycleRequest.RESUME);
    tokenContextService.saveContext(context);

    if (workflowNode != null)
    {
      if (workflowNode.isAssignToCurrentUser())
      {
        workflowTask.setRoleId(null);
        workflowTask.setUserId(currentUserId);
      }
    }
View Full Code Here

TOP

Related Classes of org.openbp.core.model.item.process.WorkflowNode

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.