1Workflow::Condition::GrUeseedryOCRo(n3t)ributed Perl DocWuomreknftlaotwi:o:nCondition::GreedyOR(3)
2
3
4

NAME

6       Workflow::Condition::GreedyOR
7

VERSION

9       This documentation describes version 1.54 of this package
10

DESCRIPTION

12       Using nested conditions (See Workflow::Condition::Nested), this
13       evaluates all given conditions, returning the count of successful
14       checks. If none of the nested conditions are true, an exeption is
15       thrown.
16

SYNOPSIS

18       In condition.xml:
19
20           <condition name="cond1" ... />
21           <condition name="cond2" ... />
22           <condition name="cond3" ... />
23
24           <condition name="count_approvals" class="Workflow::Condition::GreedyOR">
25               <param name="condition" value="cond1" />
26               <param name="condition" value="cond2" />
27               <param name="condition" value="cond3" />
28           </condition>
29
30           <condition name="check_approvals" class="Workflow::Condition::CheckReturn">
31               <param name="condition" value="count_approvals" />
32               <!-- operator "ge" means: greater than or equal to -->
33               <param name="operator"  value="ge" />
34               <param name="argument"  value="$context->{approvals_needed}" />
35           </condition>
36
37       In workflow.xml:
38
39           <state name="CHECK_APPROVALS" autorun="yes">
40               <action name="null_1" resulting_state="APPROVED">
41                   <condition name="check_approvals" />
42               </action>
43               <action name="null_2" resulting_state="REJECTED">
44                   <condition name="!check_approvals" />
45               </action>
46           </state>
47

PARAMETERS

49       The following parameters may be configured in the "param" entity of the
50       condition in the XML configuration:
51
52   condition, conditionN
53       The condition parameter may be specified as either a list of repeating
54       entries or with a unique integer appended to the condition string:
55
56           <param name="condition" value="first_condition_to_test" />
57           <param name="condition" value="second_condition_to_test" />
58
59       or
60
61           <param name="condition1" value="first_condition_to_test" />
62           <param name="condition2" value="second_condition_to_test" />
63
65       Copyright (c) 2004-2021 Chris Winters. All rights reserved.
66
67       This library is free software; you can redistribute it and/or modify it
68       under the same terms as Perl itself.
69
70       Please see the LICENSE
71

AUTHORS

73       Please see Workflow
74
75
76
77perl v5.34.0                      2021-07-27  Workflow::Condition::GreedyOR(3)
Impressum