Examples of AssignmentHandler


Examples of com.founder.fix.fixflow.core.action.AssignmentHandler

    return taskDefinitionImpl;
  }


  public AssignmentHandler createAssignmentHandler(String className) {
    AssignmentHandler assignmentHandler = (AssignmentHandler) ReflectUtil.instantiate(className);
    return assignmentHandler;
  }
View Full Code Here

Examples of com.founder.fix.fixflow.core.action.AssignmentHandler

        throw new FixFlowException("任务的分配策略没有实现类,请检查!");
      } else {
        String classImpl = assignPolicy.getClassImpl();
       
   
        AssignmentHandler assignmentHandler = ProcessObjectFactory.FACTORYINSTANCE.createAssignmentHandler(classImpl);
        assignmentHandler.assign(assignable, executionContext);
      }

    }

  }
View Full Code Here

Examples of org.jbpm.api.task.AssignmentHandler

        String candidateGroup = tokenizer.nextToken();
        assignable.addCandidateGroup(candidateGroup);
      }
    }
   
    AssignmentHandler assignmentHandler = assignableDefinition.getAssignmentHandler();
    if (assignmentHandler!=null) {
      try {
        assignmentHandler.assign(assignable, this);
      } catch (Exception e) {
        throw new JbpmException("assignment handler threw exception: " + e, e);
      }
    }
  }
View Full Code Here

Examples of org.jbpm.api.task.AssignmentHandler

    }
 
    Element assignmentHandlerElement = XmlUtil.element(element, "assignment-handler");
    if (assignmentHandlerElement!=null) {
      ObjectDescriptor objectDescriptor = parseObjectDescriptor(assignmentHandlerElement, parse);
      AssignmentHandler assignmentHandler = (AssignmentHandler) WireContext.create(objectDescriptor);
      assignableDefinition.setAssignmentHandler(assignmentHandler);
    }
 
    String assigneeExpression = XmlUtil.attribute(element, "assignee");
    assignableDefinition.setAssigneeExpression(assigneeExpression);
View Full Code Here

Examples of org.jbpm.api.task.AssignmentHandler

      }
    }
   
    UserCodeReference assignmentHandlerReference = assignableDefinition.getAssignmentHandlerReference();
    if (assignmentHandlerReference!=null) {
      AssignmentHandler assignmentHandler = (AssignmentHandler) assignmentHandlerReference.getObject(processDefinition);
      if (assignmentHandler!=null) {
        try {
          assignmentHandler.assign(assignable, this);
        } catch (Exception e) {
          throw new JbpmException("assignment handler threw exception: " + e, e);
        }
      }
    }
View Full Code Here

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

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

Examples of org.jbpm.taskmgmt.def.AssignmentHandler

    {
      // 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

Examples of org.jbpm.taskmgmt.def.AssignmentHandler

    }
  }

  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

Examples of org.jbpm.taskmgmt.def.AssignmentHandler

    }
  }

  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
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.