![JAR search and dependency download from the Maven repository](/logo.png)
org.jbpm.command.SuspendProcessInstanceCommand Maven / Gradle / Ivy
package org.jbpm.command;
import org.jbpm.graph.def.ProcessDefinition;
import org.jbpm.graph.exe.ProcessInstance;
/**
* Suspend the specified {@link ProcessInstance}(s). See {@link AbstractProcessInstanceBaseCommand}
* to check possibilities to specify {@link ProcessInstance}(s). With filter to all
* {@link ProcessDefinition}s this can be used like an emergency shutdown for
* {@link ProcessDefinition}s.
*
* @author [email protected]
*/
public class SuspendProcessInstanceCommand extends AbstractProcessInstanceBaseCommand {
private static final long serialVersionUID = 1L;
public ProcessInstance execute(ProcessInstance processInstance) {
processInstance.suspend();
return processInstance;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy