Class ExecWorkItemHandler

  • All Implemented Interfaces:
    org.kie.api.runtime.process.WorkItemHandler

    @Wid(widfile="ExecDefinitions.wid",name="Exec",displayName="Exec",defaultHandler="mvel: new org.jbpm.process.workitem.exec.ExecWorkItemHandler()",documentation="exec-workitem/index.html",category="exec-workitem",icon="Exec.png",parameters={@WidParameter(name="Command",required=true),@WidParameter(name="Arguments",runtimeType="java.util.List"),@WidParameter(name="TimeoutInMillis",runtimeType="java.lang.String")},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,comand",action=@WidAction(title="Execute a command"),authinfo=@WidAuth))
    public class ExecWorkItemHandler
    extends org.jbpm.process.workitem.core.AbstractLogOrThrowWorkItemHandler
    • Constructor Detail

      • ExecWorkItemHandler

        public ExecWorkItemHandler()
    • Method Detail

      • executeWorkItem

        public void executeWorkItem​(org.kie.api.runtime.process.WorkItem workItem,
                                    org.kie.api.runtime.process.WorkItemManager manager)
      • parseTimeout

        protected long parseTimeout​(String durationStr)
      • abortWorkItem

        public void abortWorkItem​(org.kie.api.runtime.process.WorkItem workItem,
                                  org.kie.api.runtime.process.WorkItemManager manager)
      • setDefaultTimeout

        public void setDefaultTimeout​(long defaultTimeout)
      • getParsedCommandStr

        public String getParsedCommandStr()