[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
eventOperator |
Event Operator to filter events. |
last |
The last event to be passed to a consumer. |
name |
A name, can be any text. |
of |
The event sources to combine. |
to |
The destination events will be sent to. |
Example Summary
Example 1 |
Trigger on a list of state expressions. |
Property Detail
eventOperator
Configured By | ATTRIBUTE |
Access | READ_WRITE |
Required | No, default to ALL. |
Event Operator to filter events. ANY/ALL.
last
Access | READ_ONLY |
Required | Read only. |
The last event to be passed to a consumer.
name
Configured By | ATTRIBUTE |
Access | READ_WRITE |
Required | No. |
A name, can be any text.
of
Configured By | ELEMENT |
Access | WRITE_ONLY |
Required | No, but pointless without. |
The event sources to combine.
to
Configured By | ELEMENT |
Access | WRITE_ONLY |
Required | Maybe. Set automatically by some parent components. |
The destination events will be sent to.
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>
<of>
<events:watch name="Is Job 1 Complete">
<eventSource>
<state:watch xmlns:state="http://rgordon.co.uk/oddjob/state">
job1 is COMPLETE
</state:watch>
</eventSource>
</events:watch>
<events:watch name="Is Job 2 Complete">
<eventSource>
<state:watch xmlns:state="http://rgordon.co.uk/oddjob/state">
job2 is COMPLETE
</state:watch>
</eventSource>
</events:watch>
</of>
</events:list>
<echo id="job3" name="Job 3">
It's Done on ${when.trigger}
</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