Examples of suspendProcessInstanceById()


Examples of org.activiti.engine.RuntimeService.suspendProcessInstanceById()

     */
    @RequestMapping("console-suspendProcessInstance")
    public String suspendProcessInstance(
            @RequestParam("processInstanceId") String processInstanceId) {
        RuntimeService runtimeService = processEngine.getRuntimeService();
        runtimeService.suspendProcessInstanceById(processInstanceId);

        return "redirect:/bpm/console-listProcessInstances.do";
    }

    /**
 
View Full Code Here

Examples of org.activiti.engine.RuntimeService.suspendProcessInstanceById()

    ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("gateway", variableMap);
    assertNotNull(processInstance.getId());
    System.out.println("id " + processInstance.getId() + " " + processInstance.getProcessDefinitionId());

    // suspend process instance
    runtimeService.suspendProcessInstanceById(processInstance.getId());

    // verify suspended process instance
    List<ProcessInstance> list = runtimeService.createProcessInstanceQuery().active().list();
    assertEquals(0, list.size());
View Full Code Here

Examples of org.camunda.bpm.engine.RuntimeService.suspendProcessInstanceById()

    RuntimeService runtimeService = engine.getRuntimeService();

    if (processInstanceId != null) {
      // activate/suspend process instance by id
      if (getSuspended()) {
        runtimeService.suspendProcessInstanceById(processInstanceId);
      } else {
        runtimeService.activateProcessInstanceById(processInstanceId);
      }
    } else
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.