Examples of TaskService


Examples of org.camunda.bpm.engine.TaskService

  public void testGetVariableLocal()
  {
    BusinessProcess businessProcess = getBeanInstance(BusinessProcess.class);
    ProcessInstance processInstance = businessProcess.startProcessByKey("businessProcessBeanTest");

    TaskService taskService = getBeanInstance(TaskService.class);
    Task task = taskService.createTaskQuery().processInstanceId(processInstance.getId()).singleResult();

    assertNotNull(task);

    businessProcess.startTask(task.getId());
View Full Code Here

Examples of org.camunda.bpm.engine.TaskService

    identityServiceMock = mock(IdentityServiceImpl.class);

    when(processEngine.getAuthorizationService()).thenReturn(authorizationServiceMock);
    when(processEngine.getIdentityService()).thenReturn(identityServiceMock);

    TaskService taskService = processEngine.getTaskService();
    when(taskService.createTaskQuery()).thenReturn(new TaskQueryImpl());

    variableInstanceQueryMock = mock(VariableInstanceQuery.class);
    when(processEngine.getRuntimeService().createVariableInstanceQuery())
      .thenReturn(variableInstanceQueryMock);
    when(variableInstanceQueryMock.variableScopeIdIn((String) anyVararg()))
View Full Code Here

Examples of org.drools.task.service.TaskService

    SendIcal.initInstance(conf);

    // Use persistence.xml configuration
    emf = Persistence.createEntityManagerFactory("org.drools.task");

    taskService = new TaskService(emf, SystemEventListenerFactory.getSystemEventListener());
    taskSession = taskService.createSession();
    MockUserInfo userInfo = new MockUserInfo();
    taskService.setUserinfo(userInfo);
    Map<String, Object> vars = new HashedMap();
View Full Code Here

Examples of org.eclipse.orion.internal.server.core.tasks.TaskService

  }

  private void registerServices() {
    try {
      IPath taskLocation = getTaskLocation();
      taskService = new TaskService(taskLocation);
      taskServiceRegistration = bundleContext.registerService(ITaskService.class, taskService, null);
    } catch (IOException e) {
      LogHelper.log(new Status(IStatus.ERROR, ServerConstants.PI_SERVER_CORE, "Failed to initialize task service", e)); //$NON-NLS-1$
    }
  }
View Full Code Here

Examples of org.jbpm.api.TaskService

  {
    Environment env = ((EnvironmentFactory)processEngine).openEnvironment();

    try
    {
      TaskService taskService = this.processEngine.get(TaskService.class);
      List<TaskRef> results = new ArrayList<TaskRef>();

      List<Task> assignedTasks = taskService.findPersonalTasks(idRef);
      adoptTasks(assignedTasks, results);

      return results;
    }
    finally
View Full Code Here

Examples of org.jbpm.api.TaskService

  {
    Environment env = ((EnvironmentFactory)processEngine).openEnvironment();

    try
    {
      TaskService taskService = this.processEngine.get(TaskService.class);
      List<TaskRef> results = new ArrayList<TaskRef>();

      if(null==participationType || participationType.equals(Participation.CANDIDATE))
      {
        List<Task> groupTasks = taskService.findGroupTasks(idRef);
        adoptTasks(groupTasks, results);
      }
      else
      {
        throw new IllegalArgumentException("Unknown participation type: " +participationType);
View Full Code Here

Examples of org.jbpm.api.TaskService

  {
    Environment env = ((EnvironmentFactory)processEngine).openEnvironment();

    try
    {
      TaskService taskService = this.processEngine.get(TaskService.class);
      Task t0 = taskService.getTask(Long.toString(taskId));
      return ModelAdaptor.adoptTask(t0);
    }
    finally{
      env.close();
    }
View Full Code Here

Examples of org.jbpm.api.TaskService

  {
    Environment env = ((EnvironmentFactory)processEngine).openEnvironment();

    try
    {
      TaskService taskService = this.processEngine.get(TaskService.class);
      taskService.assignTask(Long.toString(taskId), idRef);
    }
    finally{
      env.close();
    }
  }
View Full Code Here

Examples of org.jbpm.api.TaskService

  {
    Environment env = ((EnvironmentFactory)processEngine).openEnvironment();

    try
    {
      TaskService taskService = this.processEngine.get(TaskService.class);
      taskService.assignTask(Long.toString(taskId), null);
    }
    finally{
      env.close();
    }
  }
View Full Code Here

Examples of org.jbpm.api.TaskService

  {
    Environment env = ((EnvironmentFactory)processEngine).openEnvironment();

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