Package org.jbpm.process.workitem.exec
Class ExecShellScriptWorkItemHandler
- java.lang.Object
-
- org.jbpm.process.workitem.core.AbstractLogOrThrowWorkItemHandler
-
- org.jbpm.process.workitem.exec.ExecShellScriptWorkItemHandler
-
- All Implemented Interfaces:
org.kie.api.runtime.process.WorkItemHandler
@Wid(widfile="ExecShellScriptDefinitions.wid",name="ExecShellScript",displayName="ExecShellScript",defaultHandler="mvel: new org.jbpm.process.workitem.exec.ExecShellScriptWorkItemHandler()",documentation="exec-workitem/index.html",category="exec-workitem",icon="ExecShellScript.png",parameters={@WidParameter(name="ShellScriptLocation",required=true),@WidParameter(name="TimeoutInMillis"),@WidParameter(name="AddEnvironmentVariable",runtimeType="java.util.Map"),@WidParameter(name="RemoveEnvironmentVariable",runtimeType="java.util.List")},results=@WidResult(name="Output"),mavenDepends=@WidMavenDepends(group="org.jbpm.contrib",artifact="exec-workitem",version="7.73.0.Final"),serviceInfo=@WidService(category="Exec",description="Execute a command",keywords="execute,shell script",action=@WidAction(title="Execute a shell script"),authinfo=@WidAuth)) public class ExecShellScriptWorkItemHandler extends org.jbpm.process.workitem.core.AbstractLogOrThrowWorkItemHandlerWorkItemHandler that is capable of executing shell script file- ShellScriptLocation - Absolute or relative path of shell script file - mandatory
- TimeoutInMillis - Timeout in Milliseconds for execution. Default value is 1000 MilliSeconds
- AddEnvironmentVariable - A Map of environment variable to be added
- RemoveEnvironmentVariable -A List of environment variable to be removed
-
-
Constructor Summary
Constructors Constructor Description ExecShellScriptWorkItemHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabortWorkItem(org.kie.api.runtime.process.WorkItem workItem, org.kie.api.runtime.process.WorkItemManager manager)voidexecuteWorkItem(org.kie.api.runtime.process.WorkItem workItem, org.kie.api.runtime.process.WorkItemManager manager)
-
-
-
Field Detail
-
RESULT
public static final String RESULT
- See Also:
- Constant Field Values
-
-