Examples of completeTask()


Examples of org.camunda.bpm.engine.cdi.BusinessProcess.completeTask()

    businessProcess.startTask(taskService.createTaskQuery().singleResult().getId());  
   
    // assert that now the 'taskId'-bean can be looked up
    assertNotNull(getBeanInstance("taskId"));
   
    businessProcess.completeTask();
  }
 
}
View Full Code Here

Examples of org.camunda.bpm.engine.cdi.BusinessProcess.completeTask()

    businessProcess.startTask(taskService.createTaskQuery().singleResult().getId());
   
    InjectProcessVariable injectProcessVariables = getBeanInstance(InjectProcessVariable.class);
    assertEquals("testValue", injectProcessVariables.testKeyString);

    businessProcess.completeTask();
  }

}
View Full Code Here

Examples of org.camunda.bpm.engine.cdi.BusinessProcess.completeTask()

    businessProcess.setVariable("key", value);
    assertEquals(value, businessProcess.getVariable("key"));

    // complete the task
    assertEquals(task.getId(), businessProcess.startTask(task.getId()).getId());
    businessProcess.completeTask();

    // assert the task is completed
    assertNull(processEngine.getTaskService().createTaskQuery().singleResult());

    // assert that the process is ended:
View Full Code Here

Examples of org.jboss.bpm.console.server.integration.TaskManagement.completeTask()

    // trigger execution
    TaskManagement tm = getTaskManagement();
   
    if(null==outcome)
      tm.completeTask(taskId, processVars);
    else
      tm.completeTask(taskId, outcome, processVars);


    return Response.ok("Successfully processed task UI").build();
View Full Code Here

Examples of org.jboss.bpm.console.server.integration.TaskManagement.completeTask()

    TaskManagement tm = getTaskManagement();
   
    if(null==outcome)
      tm.completeTask(taskId, processVars);
    else
      tm.completeTask(taskId, outcome, processVars);


    return Response.ok("Successfully processed task UI").build();
  }
}
View Full Code Here

Examples of org.jbpm.api.TaskService.completeTask()

    {
      TaskService taskService = this.processEngine.get(TaskService.class);
      if(data!=null)
        taskService.setVariables(Long.toString(taskId), data);

      taskService.completeTask(Long.toString(taskId));
    }
    finally{
      env.close();
    }
  }
View Full Code Here

Examples of org.jbpm.api.TaskService.completeTask()

    {
      TaskService taskService = this.processEngine.get(TaskService.class);
      if(data!=null)
        taskService.setVariables(Long.toString(taskId), data);

      taskService.completeTask(Long.toString(taskId), outcome);
    }
    finally
    {
      env.close();
    }
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.