/** * Cascades the deletion of the process definition to the process instances. * Skips the custom listeners if the flag was set to true. * * @param processDefinitionId the process definition id * @param skipCustomListeners true if the custom listeners should be skipped at process instance deletion * @param skipIoMappings specifies whether input/output mappings for tasks should be invoked */ protected void cascadeDeleteProcessInstancesForProcessDefinition(String processDefinitionId, boolean skipCustomListeners, boolean skipIoMappings) { getProcessInstanceManager() .deleteProcessInstancesByProcessDefinition(processDefinitionId, "deleted process definition", true, skipCustomListeners, skipIoMappings); }
/** * Cascades the deletion of the process definition to the process instances. * Skips the custom listeners if the flag was set to true. * * @param processDefinitionId the process definition id * @param skipCustomListeners true if the custom listeners should be skipped at process instance deletion * @param skipIoMappings specifies whether input/output mappings for tasks should be invoked */ protected void cascadeDeleteProcessInstancesForProcessDefinition(String processDefinitionId, boolean skipCustomListeners, boolean skipIoMappings) { getProcessInstanceManager() .deleteProcessInstancesByProcessDefinition(processDefinitionId, "deleted process definition", true, skipCustomListeners, skipIoMappings); }
/** * Cascades the deletion of the process definition to the process instances. * Skips the custom listeners if the flag was set to true. * * @param processDefinitionId the process definition id * @param skipCustomListeners true if the custom listeners should be skipped at process instance deletion * @param skipIoMappings specifies whether input/output mappings for tasks should be invoked */ protected void cascadeDeleteProcessInstancesForProcessDefinition(String processDefinitionId, boolean skipCustomListeners, boolean skipIoMappings) { getProcessInstanceManager() .deleteProcessInstancesByProcessDefinition(processDefinitionId, "deleted process definition", true, skipCustomListeners, skipIoMappings); }
String processDefinitionId = processDefinition.getId(); getProcessInstanceManager() .deleteProcessInstancesByProcessDefinition(processDefinitionId, "deleted deployment", true, skipCustomListeners, skipIoMappings);
String processDefinitionId = processDefinition.getId(); getProcessInstanceManager() .deleteProcessInstancesByProcessDefinition(processDefinitionId, "deleted deployment", true, skipCustomListeners, skipIoMappings);
String processDefinitionId = processDefinition.getId(); getProcessInstanceManager() .deleteProcessInstancesByProcessDefinition(processDefinitionId, "deleted deployment", true, skipCustomListeners, skipIoMappings);