[Index]
task-request
This job requests a task be performed
with optional properties.
Property Summary
join |
Wait for the target job to finish executing. |
name |
A name, can be any text. |
properties |
Properties to execute the task with. |
response |
|
stop |
This flag is set by the stop method and should
be examined by any Stoppable jobs in their processing loops. |
taskExecutor |
The job to start |
Example Summary
Property Detail
join
Configured By | ATTRIBUTE |
Access | READ_WRITE |
Required | No, defaults to false. |
Wait for the target job to finish executing.
name
Configured By | ATTRIBUTE |
Access | READ_WRITE |
Required | No. |
A name, can be any text.
properties
Configured By | ELEMENT |
Access | READ_WRITE |
Required | No. |
Properties to execute the task with.
response
stop
Access | READ_ONLY |
Required | Read Only. |
This flag is set by the stop method and should
be examined by any Stoppable jobs in their processing loops.
taskExecutor
Configured By | ATTRIBUTE |
Access | READ_WRITE |
Required | Yes. |
The job to start
Examples
Example 1
Greeting people by name. Three Task Requests call the
task-service with different names.
<oddjob>
<job>
<sequential>
<jobs>
<task-service id="hello-service">
<requests>
<input-text prompt="Name" property="some.name"/>
</requests>
<job>
<echo>Hello ${some.name}.</echo>
</job>
</task-service>
<task-request taskExecutor="${hello-service}">
<properties>
<properties>
<values>
<value key="some.name" value="Rod"/>
</values>
</properties>
</properties>
</task-request>
<task-request taskExecutor="${hello-service}">
<properties>
<properties>
<values>
<value key="some.name" value="Jane"/>
</values>
</properties>
</properties>
</task-request>
<task-request taskExecutor="${hello-service}">
<properties>
<properties>
<values>
<value key="some.name" value="Freddy"/>
</values>
</properties>
</properties>
</task-request>
</jobs>
</sequential>
</job>
</oddjob>
(c) R Gordon Ltd 2005 - Present