Package org.jbpm.taskmgmt.def

Examples of org.jbpm.taskmgmt.def.AssignmentHandler


  /**
   * @see org.jbpm.taskmgmt.def.AssignmentHandler#assign(org.jbpm.taskmgmt.exe.Assignable, org.jbpm.graph.exe.ExecutionContext)
   */
  public void assign(Assignable assignable, ExecutionContext executionContext) throws Exception {
    AssignmentHandler handler = (AssignmentHandler) lookupBean(AssignmentHandler.class);
    if (logger.isDebugEnabled())
      logger.debug("using Spring-managed assignmentHandler=" + handler);

    handler.assign(assignable, executionContext);
  }
View Full Code Here


  /**
   * @see org.jbpm.taskmgmt.def.AssignmentHandler#assign(org.jbpm.taskmgmt.exe.Assignable,
   * org.jbpm.graph.exe.ExecutionContext)
   */
  public void assign(Assignable assignable, ExecutionContext executionContext) throws Exception {
    AssignmentHandler handler = (AssignmentHandler) lookupBean(AssignmentHandler.class);
    if (logger.isDebugEnabled())
      logger.debug("using Spring-managed assignmentHandler=" + handler);

    handler.assign(assignable, executionContext);
  }
View Full Code Here

    {
      // set context class loader correctly for delegation class (https://jira.jboss.org/jira/browse/JBPM-1448)
      Thread.currentThread().setContextClassLoader(JbpmConfiguration.getProcessClassLoader(executionContext.getProcessDefinition()));

      // instantiate the assignment handler
      AssignmentHandler assignmentHandler = (AssignmentHandler)assignmentDelegation.instantiate();
      // invoke the assignment handler
      if (UserCodeInterceptorConfig.userCodeInterceptor != null)
      {
        UserCodeInterceptorConfig.userCodeInterceptor.executeAssignment(assignmentHandler, assignable, executionContext);
      }
      else
      {
        assignmentHandler.assign(assignable, executionContext);
      }

    }
    finally
    {
View Full Code Here

    }
  }

  void performAssignmentDelegation(Delegation assignmentDelegation, Assignable assignable, ExecutionContext executionContext) throws Exception {
    // instantiate the assignment handler
    AssignmentHandler assignmentHandler = (AssignmentHandler) assignmentDelegation.instantiate();
    // invoke the assignment handler
    assignmentHandler.assign(assignable, executionContext);
  }
View Full Code Here

    }
  }

  void performAssignmentDelegation(Delegation assignmentDelegation, Assignable assignable, ExecutionContext executionContext) throws Exception {
    // instantiate the assignment handler
    AssignmentHandler assignmentHandler = (AssignmentHandler) assignmentDelegation.instantiate();
    // invoke the assignment handler
    assignmentHandler.assign(assignable, executionContext);
  }
View Full Code Here

    }
  }

  void performAssignmentDelegation(Delegation assignmentDelegation, Assignable assignable, ExecutionContext executionContext) throws Exception {
    // instantiate the assignment handler
    AssignmentHandler assignmentHandler = (AssignmentHandler) assignmentDelegation.instantiate();
    // invoke the assignment handler
    if (UserCodeInterceptorConfig.userCodeInterceptor!=null) {
      UserCodeInterceptorConfig.userCodeInterceptor.executeAssignment(assignmentHandler, assignable, executionContext);
    } else {
      assignmentHandler.assign(assignable, executionContext);
    }
  }
View Full Code Here

TOP

Related Classes of org.jbpm.taskmgmt.def.AssignmentHandler

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.