Factory class for {@TaskProcessor} instances
Constructor and description |
---|
protected ProcessFactory
() |
ProcessFactory
(BaseScript ownerScript, Session session) |
Type Params | Return Type | Name and description |
---|---|---|
|
TaskProcessor |
createProcessor(java.lang.String name, groovy.lang.Closure<BodyDef> body) Create a task processor |
|
protected TaskProcessor |
newTaskProcessor(java.lang.String name, Executor executor, ProcessConfig config, BodyDef taskBody) Create a new task processor and initialise with the given parameters |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a task processor
name
- The name of the process as defined in the scriptbody
- The process declarations provided by the useroptions
- A map representing the named parameter specified after the process name eg:
`process foo(bar: 'x') { }`
(not used)Processor
instanceCreate a new task processor and initialise with the given parameters
name
- The processor nameexecutor
- The executor objectsession
- The session objectscript
- The owner scriptconfig
- The process configurationtaskBody
- The process task body