Examples of suspendProcessDefinitionById()


Examples of org.activiti.engine.RepositoryService.suspendProcessDefinitionById()

    @RequestMapping("console-suspendProcessDefinition")
    public String suspendProcessDefinition(
            @RequestParam("processDefinitionId") String processDefinitionId) {
        RepositoryService repositoryService = processEngine
                .getRepositoryService();
        repositoryService.suspendProcessDefinitionById(processDefinitionId,
                true, null);

        return "redirect:/bpm/console-listProcessDefinitions.do";
    }
View Full Code Here

Examples of org.activiti.engine.RepositoryService.suspendProcessDefinitionById()

      public void buttonClick(ClickEvent event) {
        RepositoryService repositoryService = ProcessEngines.getDefaultProcessEngine().getRepositoryService();
        boolean includeProcessInstances = (Boolean) includeProcessInstancesCheckBox.getValue();
               
        if (suspend) {
          repositoryService.suspendProcessDefinitionById(processDefinitionId,
                includeProcessInstances, (Date) dateField.getValue());
        } else {
          repositoryService.activateProcessDefinitionById(processDefinitionId,
                  includeProcessInstances, (Date) dateField.getValue());
        }
View Full Code Here

Examples of org.camunda.bpm.engine.RepositoryService.suspendProcessDefinitionById()

    }

    if (processDefinitionId != null) {
      // activate/suspend process definition by id
      if (getSuspended()) {
        repositoryService.suspendProcessDefinitionById(processDefinitionId, includeProcessInstances, delayedExecutionDate);
      } else {
        repositoryService.activateProcessDefinitionById(processDefinitionId, includeProcessInstances, delayedExecutionDate);
      }
    } 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.