sequential


Executes it's children in a sequence. The sequence will only continue to be executed if each child completes. If a child is incomplete, or flags an exception then execution will terminate and this job's state will reflect that of the failed child.

If the failed job is later run manually and completes this Job will reflect the new state. As such it is useful as a trigger point for the completion of a sequence of jobs.


Property Summary

independent Whether the child jobs are independent or not.
jobs The child jobs.
name A name, can be any text.

Example Summary

Example 1 A simple sequence of two jobs.

Property Detail

independent

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredDefault is dependent child jobs.

Whether the child jobs are independent or not.

jobs

Configured ByELEMENT
AccessWRITE_ONLY
RequiredNo, but pointless if missing.

The child jobs.

name

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo.

A name, can be any text.


Examples

Example 1

A simple sequence of two jobs.

<oddjob>
    <job>
        <sequential name="A sequence of two jobs">
            <jobs>
                <echo>This runs first.</echo>
                <echo>This runs after.</echo>
            </jobs>
        </sequential>
    </job>
</oddjob>


(c) Rob Gordon 2005 - 2011