Examples of claim()


Examples of org.fireflow.engine.IWorkItem.claim()

              ITaskInstanceManager taskInstanceMgr = runtimeContext.getTaskInstanceManager();
                for (int k = 0; k < workItemList.size(); k++) {
                    IWorkItem completedWorkItem = workItemList.get(k);

                    IWorkItem newFromWorkItem = taskInstanceMgr.createWorkItem(currentSession,processInstance,taskInstance, completedWorkItem.getActorId());
                    newFromWorkItem.claim(); //并自动签收
                }
            } else {
                IBeanFactory beanFactory = runtimeContext.getBeanFactory();
                //从spring中获取到对应任务的Performer,创建工单
                IAssignmentHandler assignmentHandler = (IAssignmentHandler) beanFactory.getBean(part.getAssignmentHandler());
View Full Code Here

Examples of org.fireflow.engine.IWorkItem.claim()

        if (!needClaim){
          if (FormTask.ALL.equals(taskInst.getAssignmentStrategy()) ||
              (FormTask.ANY.equals(taskInst.getAssignmentStrategy()) && actorIdsList.size()==1)){
            for (int i=0;i<workItems.size();i++){
              IWorkItem wi = workItems.get(i);
              wi.claim();
            }
          }
        }
         
    }
View Full Code Here

Examples of org.fireflow.engine.IWorkItem.claim()

    IAssignmentHandler {

    public static final String ACTOR_ID = "Fireflow JUnit Tester";
    public void assign(IAssignable asignable, String performerName) throws EngineException, KernelException {
        IWorkItem wi = asignable.assignToActor(ACTOR_ID);
        wi.claim();
        wi.complete();
    }


}
View Full Code Here

Examples of org.fireflow.engine.IWorkItem.claim()

      IWorkflowSession workflowSession = ((IWorkflowSessionAware)taskInstance).getCurrentWorkflowSession();
     
      System.out.println("+++++++++++++Current Workflow Session is "+workflowSession.hashCode());
      System.out.println("+++++++++++ x in current workflow session is "+workflowSession.getAttribute("x"));
        IWorkItem wi = asignable.assignToActor(ACTOR_ID);
        wi.claim();
    }

}
View Full Code Here

Examples of org.fireflow.engine.IWorkItem.claim()

                   
                    //选择第一个workitem进行操作
                    if (myWorkItemsList!=null && myWorkItemsList.size()>0){
                      IWorkItem wi = (IWorkItem)myWorkItemsList.get(0);
                      //1、首先签收
                      wi.claim();
                     
                      //2、然后设置流程变量
                      //在实际业务中,申请人应该需要填写一个表单,在这个简单的测试中就省略了……
                      IProcessInstance processInstance =
                        ((TaskInstance)wi.getTaskInstance()).getAliveProcessInstance();
View Full Code Here

Examples of org.fireflow.engine.IWorkItem.claim()

                   
                    //选择第一个workitem进行操作
                    if (myWorkItemsList!=null && myWorkItemsList.size()>0){
                      IWorkItem wi = (IWorkItem)myWorkItemsList.get(0);
                      //1、首先签收
                      wi.claim();
                     
                      //2、然后设置流程变量
                      //在实际业务中,审批人应该需要填写一个表单,在这个简单的测试中就省略了……
                      IProcessInstance processInstance =
                        ((TaskInstance)wi.getTaskInstance()).getAliveProcessInstance();
View Full Code Here

Examples of org.intalio.tempo.workflow.tms.client.TempoClient.claim()

                        + task.getFormURLAsString() + "\nIt is in the following state:" + task.getState() + "\nIt has the following input:\n"
                        + task.getInputAsXmlString() + "\nIt can be assigned to the following roles:" + task.getRoleOwners()
                        + "\nIt can be assigned to the following users:" + task.getUserOwners());

        _log.info("Let's claim the task: no one else can access this task apart from user:" + user);
        tempoClient.claim(id, user);
        _log.info("Let's revoke the task:every one can access this task again");
        tempoClient.revoke(id);
        _log.info("Call setoutput from TMS Client");
        tempoClient.setOutput(id, tempoClient.createMessageAsDocument(complete, "abr_output.ftl"));
        _log.info("Check the output we've just set");
View Full Code Here

Examples of org.intalio.tempo.workflow.tms.client.TempoClient.claim()

        Thread.sleep(SLEEP_TIME);
        String id = tempoClient.getAvailableTasks("PATask", "T._description like '%Approval%' ORDER BY T._creationDate DESC")[0].getID();
        SecureRandom r = new SecureRandom();
        for (int i = 0; i < 10; i++) {
            if (r.nextBoolean()) {
              tempoClient.claim(id, paramUser);
            } else {
              tempoClient.revoke(id);
            }
        }
    }
View Full Code Here

Examples of org.jbpm.task.service.TaskClient.claim()

        if (taskSummary == null) {
            return;
        }

        BlockingTaskOperationResponseHandler responseHandler = new BlockingTaskOperationResponseHandler();
        client.claim(taskSummary.getId(), userId, responseHandler);
        responseHandler.waitTillDone(3000);
        refresh();
    }

    public void start() {
View Full Code Here

Examples of org.kie.api.task.TaskService.claim()

    // john from HR
    tasks = taskService.getTasksAssignedAsPotentialOwner("john", "en-UK");
    task = tasks.get(0);
    System.out.println("'john' completing task " + task.getName() + ": " + task.getDescription());
    taskService.claim(task.getId(), "john");
    taskService.start(task.getId(), "john");
    results = new HashMap<String, Object>();
    results.put("performance", "acceptable");
    taskService.complete(task.getId(), "john", results);
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.