1Workflow::Condition::ChUescekrReCtounrtnr(i3b)uted PerlWDoorckufmleonwt:a:tCioonndition::CheckReturn(3)
2
3
4

NAME

6       Workflow::Condition::CheckReturn
7

DESCRIPTION

9       Using nested conditions (See Workflow::Condition::Nested), this
10       evaluates a given condition and compares the value returned with a
11       given argument.
12

SYNOPSIS

14       In condition.xml:
15
16           <condition name="check_approvals" class="Workflow::Condition::CheckReturn">
17               <param name="condition" value="count_approvals" />
18               <!-- operator "ge" means: greater than or equal to -->
19               <param name="operator"  value="ge" />
20               <param name="argument"  value="$context->{approvals_needed}" />
21           </condition>
22
23       In workflow.xml:
24
25           <state name="CHECK_APPROVALS" autorun="yes">
26               <action name="null_1" resulting_state="APPROVED">
27                   <condition name="check_approvals" />
28               </action>
29               <action name="null_2" resulting_state="REJECTED">
30                   <condition name="!check_approvals" />
31               </action>
32           </state>
33

PARAMETERS

35       The following parameters may be configured in the "param" entity of the
36       condition in the XML configuration:
37
38   condition
39       The name of the condition to be evaluated.
40
41   argument
42       The value to compare with the given condition. This can be one of the
43       following:
44
45       Integer
46           The integer value is compared with the return value of the
47           condition.
48
49       String [a-zA-Z0-9_]
50           The string is interpreted as the name of a workflow context
51           parameter. The current value of that parmeter is used in the
52           comparison.
53
54       String
55           Any other string is evaluated in an "eval" block. The result should
56           be numeric.
57
58   operator
59       The name of the comparison operator to use. Supported values are:
60
61           'eq', 'lt', 'gt', 'le', 'ge', 'ne'
62
63       The string names are used to simplify the notation in the XML files.
64       The above strings map to the following numeric operators internally:
65
66           '==', '<', '>', '<=', '>=', !=
67

AUTHORS

69       See Workflow
70
72       This library is free software; you can redistribute it and/or modify it
73       under the same terms as Perl itself.
74
75
76
77perl v5.30.1                      2020-01-30Workflow::Condition::CheckReturn(3)
Impressum