1Workflow::Condition::LaUzsyeOrR(C3o)ntributed Perl DocumWeonrtkaftlioown::Condition::LazyOR(3)
2
3
4

NAME

6       Workflow::Condition::LazyOR
7

DESCRIPTION

9       Using nested conditions (See Workflow::Condition::Nested), this
10       evaluates the given conditions using lazy-evaluation, returning true at
11       the first nested condition that returns true. If all nested conditions
12       return false, LazyOR also returns false.
13

SYNOPSIS

15       In condition.xml:
16
17           <condition name="cond1" ... />
18           <condition name="cond2" ... />
19           <condition name="cond3" ... />
20
21           <condition name="check_prereqs" class="Workflow::Condition::LazyOR">
22               <param name="condition" value="cond1" />
23               <param name="condition" value="cond2" />
24               <param name="condition" value="cond3" />
25           </condition>
26
27       In workflow.xml:
28
29           <state name="CHECK_PREREQS" autorun="yes">
30               <action name="null_1" resulting_state="HAVE_PREREQS">
31                   <condition name="check_prereqs" />
32               </action>
33               <action name="null_2" resulting_state="FAILURE">
34                   <condition name="!check_prereqs" />
35               </action>
36           </state>
37

PARAMETERS

39       The following parameters may be configured in the "param" entity of the
40       condition in the XML configuration:
41
42   condition, conditionN
43       The condition parameter may be specified as either a list of repeating
44       entries or with a unique integer appended to the condition string:
45
46           <param name="condition" value="first_condition_to_test" />
47           <param name="condition" value="second_condition_to_test" />
48
49       or
50
51           <param name="condition1" value="first_condition_to_test" />
52           <param name="condition2" value="second_condition_to_test" />
53

AUTHORS

55       See Workflow
56
58       This library is free software; you can redistribute it and/or modify it
59       under the same terms as Perl itself.
60
61
62
63perl v5.32.0                      2020-07-28    Workflow::Condition::LazyOR(3)
Impressum