[Index]

task-request


This job requests a task be performed with optional properties.

Property Summary

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

Example 1 Greeting people by name.

Property Detail

name

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo.

A name, can be any text.

properties

Configured ByELEMENT
AccessREAD_WRITE
RequiredNo.

Properties to execute the task with.

response

AccessREAD_ONLY

stop

AccessREAD_ONLY
RequiredRead Only.

This flag is set by the stop method and should be examined by any Stoppable jobs in their processing loops.

taskExecutor

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredYes.

The job to start


Examples

Example 1

Greeting people by name. Three Task Requests call the TaskService 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