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

NAME

6       Workflow::Condition::CheckReturn
7

VERSION

9       This documentation describes version 1.51 of this package
10

DESCRIPTION

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

SYNOPSIS

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

PARAMETERS

38       The following parameters may be configured in the "param" entity of the
39       condition in the XML configuration:
40
41   condition
42       The name of the condition to be evaluated.
43
44   argument
45       The value to compare with the given condition. This can be one of the
46       following:
47
48       Integer
49           The integer value is compared with the return value of the
50           condition.
51
52       String [a-zA-Z0-9_]
53           The string is interpreted as the name of a workflow context
54           parameter. The current value of that parmeter is used in the
55           comparison.
56
57       String
58           Any other string is evaluated in an "eval" block. The result should
59           be numeric.
60
61   operator
62       The name of the comparison operator to use. Supported values are:
63
64           'eq', 'lt', 'gt', 'le', 'ge', 'ne'
65
66       The string names are used to simplify the notation in the XML files.
67       The above strings map to the following numeric operators internally:
68
69           '==', '<', '>', '<=', '>=', !=
70
72       Copyright (c) 2004-2021 Chris Winters. All rights reserved.
73
74       This library is free software; you can redistribute it and/or modify it
75       under the same terms as Perl itself.
76
77       Please see the LICENSE
78

AUTHORS

80       Please see Workflow
81
82
83
84perl v5.32.1                      2021-01-31Workflow::Condition::CheckReturn(3)
Impressum