[Index]

state:or


A job who's return state is a logical OR 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 either 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
RequiredRead only.

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


Examples

Example 1

COMPLETE if either files exist, INCOMPLETE otherwise.

 <or:and xmlns:state="http://rgordon.co.uk/oddjob/state">
  <jobs>
   <exists file="doesntexist1">/>
   <exists file="doesntexist2">/>
  </jobs>
 </or:and>
 


(c) Rob Gordon 2005 - 2017