![]() |
![]()
| ![]() |
![]()
NAMEWorkflow::Condition::CheckReturnVERSIONThis documentation describes version 1.60 of this packageDESCRIPTIONUsing nested conditions (See Workflow::Condition::Nested), this evaluates a given condition and compares the value returned with a given argument.SYNOPSISIn condition.xml:<condition name="check_approvals" class="Workflow::Condition::CheckReturn"> <param name="condition" value="count_approvals" /> <!-- operator "ge" means: greater than or equal to --> <param name="operator" value="ge" /> <param name="argument" value="$context->{approvals_needed}" /> </condition> In workflow.xml: <state name="CHECK_APPROVALS" autorun="yes"> <action name="null_1" resulting_state="APPROVED"> <condition name="check_approvals" /> </action> <action name="null_2" resulting_state="REJECTED"> <condition name="!check_approvals" /> </action> </state> PARAMETERSThe following parameters may be configured in the "param" entity of the condition in the XML configuration:conditionThe name of the condition to be evaluated.argumentThe value to compare with the given condition. This can be one of the following:
operatorThe name of the comparison operator to use. Supported values are:'eq', 'lt', 'gt', 'le', 'ge', 'ne' The string names are used to simplify the notation in the XML files. The above strings map to the following numeric operators internally: '==', '<', '>', '<=', '>=', != COPYRIGHTCopyright (c) 2004-2022 Chris Winters. All rights reserved.This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Please see the LICENSE AUTHORSPlease see Workflow
|