jonasbn > Workflow-1.38 > Workflow::Condition::LazyAND

Download:
Workflow-1.38.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  6
Open  1
View/Report Bugs
Module Version: 1.0   Source   Latest Release: Workflow-1.40

NAME ^

Workflow::Condition::LazyAND

DESCRIPTION ^

Using nested conditions (See Workflow::Condition::Nested), this evaluates the given conditions using lazy-evaluation, returning true if all nested conditions are true. If a nested condition evaluates to false, further evaluation is aborted and false is returned.

SYNOPSIS ^

In condition.xml:

    <condition name="cond1" ... />
    <condition name="cond2" ... />
    <condition name="cond3" ... />

    <condition name="check_prereqs" class="Workflow::Condition::LazyAND">
        <param name="condition" value="cond1" />
        <param name="condition" value="cond2" />
        <param name="condition" value="cond3" />
    </condition>

In workflow.xml:

    <state name="CHECK_PREREQS" autorun="yes">
        <action name="null_1" resulting_state="HAVE_PREREQS">
            <condition name="check_prereqs" />
        </action>
        <action name="null_2" resulting_state="FAILURE">
            <condition name="!check_prereqs" />
        </action>
    </state>

PARAMETERS ^

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

condition, conditionN

The condition parameter may be specified as either a list of repeating entries or with a unique integer appended to the condition string:

    <param name="condition" value="first_condition_to_test" />
    <param name="condition" value="second_condition_to_test" />

or

    <param name="condition1" value="first_condition_to_test" />
    <param name="condition2" value="second_condition_to_test" />

AUTHORS ^

See Workflow

COPYRIGHT ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: