[Index]

state:and


A job who's return state is a logical AND of the child states.


Property Summary

executorService The ExecutorService to use.
jobs The child jobs.
join  
name A name, can be any text.
stop Read only view of the internal stop flag.

Example Summary

Example 1 COMPLETE if both files exist, INCOMPLETE otherwise.

Property Detail

executorService

Configured ByELEMENT
AccessREAD_WRITE
RequiredNo.

The ExecutorService to use. This will be automatically set by Oddjob.

jobs

Configured ByELEMENT
AccessWRITE_ONLY
RequiredNo, but pointless if missing.

The child jobs.

join

AccessREAD_ONLY

name

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo.

A name, can be any text.

stop

AccessREAD_ONLY

Read only view of the internal stop flag. This flag is cleared with a reset.


Examples

Example 1

COMPLETE if both files exist, INCOMPLETE otherwise.

<state:and xmlns:state="http://rgordon.co.uk/oddjob/state">
    <jobs>
        <exists file="${file.one}"/>
        <exists file="${file.two}"/>
    </jobs>
</state:and>


(c) R Gordon Ltd 2005 - Present