[Index]

events:list


An event source that aggregates a list of child event sources. The events are aggregated according to the provided org.oddjob.events.EventOperator which defaults to org.oddjob.events.AllEvents.

Property Summary

child  
eventOperator Event Operator to filter events.
last The last event to be passed to a consumer.
name A name, can be any text.

Example Summary

Example 1 Trigger on a list of state expressions.

Property Detail

child

Configured ByELEMENT
AccessWRITE_ONLY

eventOperator

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo, default to ALL.

Event Operator to filter events. ANY/ALL.

last

AccessREAD_ONLY

The last event to be passed to a consumer.

name

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo.

A name, can be any text.


Examples

Example 1

Trigger on a list of state expressions.

<oddjob>
    <job>
        <sequential>
            <jobs>
                <events:when id="when" xmlns:events="oddjob:events">
                    <jobs>
                        <events:list>
                            <child>
                                <state:watch name="Is Job 1 Complete" xmlns:state="http://rgordon.co.uk/oddjob/state">job1 is COMPLETE</state:watch>
                                <state:watch name="Is Job 2 Complete" xmlns:state="http://rgordon.co.uk/oddjob/state">job2 is COMPLETE</state:watch>
                            </child>
                        </events:list>
                        <echo id="job3" name="Job 3">It's Done!</echo>
                    </jobs>
                </events:when>
                <folder>
                    <jobs>
                        <echo id="job1" name="Job 1">Hello</echo>
                        <echo id="job2" name="Job 2">World</echo>
                    </jobs>
                </folder>
            </jobs>
        </sequential>
    </job>
</oddjob>


(c) R Gordon Ltd 2005 - Present