[Index]

task-service


Provide a very simple task execution service.

The task to be executed is defined by the nested jobs which may use the properties. which will be defined when executing the tasks.

This implementation only supports the single execution of a task at one time. If the task is running additional requests to execute the task will be ignored.

Future version will support multiple parallel executions of tasks.


Property Summary

arooaSession  
job The job to pass resets on to.
name A name, can be any text.
parameterInfo  
properties  
requests  
reset  
response  

Example Summary

Example 1 A Task Service that greets people by name.

Property Detail

arooaSession

Configured ByELEMENT
AccessWRITE_ONLY

job

Configured ByELEMENT
AccessWRITE_ONLY
RequiredYes.

The job to pass resets on to.

name

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo.

A name, can be any text.

parameterInfo

AccessREAD_ONLY

properties

AccessREAD_ONLY

requests

Configured ByELEMENT
AccessREAD_WRITE

reset

Configured ByATTRIBUTE
AccessREAD_WRITE

response

Configured ByATTRIBUTE
AccessREAD_WRITE


Examples

Example 1

A Task Service that greets people by name. Three task-requests call the 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