state:cascade


A job which triggers the next job after the previous one completes. This job differs from a sequential task in that the latter follows the thread of execution, and only checks state to ensure it can continue. This job's thread of execution passes onwards after the cascade has been set up. This job will complete asynchronously once all it's children have completed.


Property Summary

jobs  
name A name, can be any text.

Example Summary

Example 1 A cascade of two jobs.

Property Detail

jobs

Configured ByELEMENT
AccessWRITE_ONLY

name

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo.

A name, can be any text.


Examples

Example 1

A cascade of two jobs.

<oddjob>
    <job>
        <state:cascade xmlns:state="http://rgordon.co.uk/oddjob/state">
            <jobs>
                <echo>This runs first.</echo>
                <echo>Then this.</echo>
            </jobs>
        </state:cascade>
    </job>
</oddjob>


(c) Rob Gordon 2005 - 2011