1Workflow::Condition::LaUzsyeOrR(C3o)ntributed Perl DocumWeonrtkaftlioown::Condition::LazyOR(3)
2
3
4
6 Workflow::Condition::LazyOR
7
9 This documentation describes version 1.59 of this package
10
12 Using nested conditions (See Workflow::Condition::Nested), this
13 evaluates the given conditions using lazy-evaluation, returning true at
14 the first nested condition that returns true. If all nested conditions
15 return false, LazyOR also returns false.
16
18 In condition.xml:
19
20 <condition name="cond1" ... />
21 <condition name="cond2" ... />
22 <condition name="cond3" ... />
23
24 <condition name="check_prereqs" class="Workflow::Condition::LazyOR">
25 <param name="condition" value="cond1" />
26 <param name="condition" value="cond2" />
27 <param name="condition" value="cond3" />
28 </condition>
29
30 In workflow.xml:
31
32 <state name="CHECK_PREREQS" autorun="yes">
33 <action name="null_1" resulting_state="HAVE_PREREQS">
34 <condition name="check_prereqs" />
35 </action>
36 <action name="null_2" resulting_state="FAILURE">
37 <condition name="!check_prereqs" />
38 </action>
39 </state>
40
42 The following parameters may be configured in the "param" entity of the
43 condition in the XML configuration:
44
45 condition, conditionN
46 The condition parameter may be specified as either a list of repeating
47 entries or with a unique integer appended to the condition string:
48
49 <param name="condition" value="first_condition_to_test" />
50 <param name="condition" value="second_condition_to_test" />
51
52 or
53
54 <param name="condition1" value="first_condition_to_test" />
55 <param name="condition2" value="second_condition_to_test" />
56
58 Copyright (c) 2003-2022 Chris Winters. All rights reserved.
59
60 This library is free software; you can redistribute it and/or modify it
61 under the same terms as Perl itself.
62
63 Please see the LICENSE
64
66 Please see Workflow
67
68
69
70perl v5.34.0 2022-02-06 Workflow::Condition::LazyOR(3)