GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Workflow::Condition::CheckReturn(3) User Contributed Perl Documentation Workflow::Condition::CheckReturn(3)

Workflow::Condition::CheckReturn

This documentation describes version 1.60 of this package

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

In 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>

The following parameters may be configured in the "param" entity of the condition in the XML configuration:

The name of the condition to be evaluated.

The value to compare with the given condition. This can be one of the following:
Integer
The integer value is compared with the return value of the condition.
String [a-zA-Z0-9_]
The string is interpreted as the name of a workflow context parameter. The current value of that parmeter is used in the comparison.
String
Any other string is evaluated in an "eval" block. The result should be numeric.

The 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:

    '==', '<', '>', '<=', '>=', !=

Copyright (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

Please see Workflow
2022-03-02 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.