NAME

Workflow::Condition::Negated - Negate workflow condition result

VERSION

This documentation describes version 1.62 of this package

DESCRIPTION

This class is used by Workflow::State to handle negated conditions: conditions of which the referring name starts with an exclamation mark (!).

Such conditions refer to another condition (by the name after the '!') and return the negated result of the condition referred to (true becomes false while false becomes true).

SYNOPSIS

In condition.xml:

<condition name="check_approvals" class="...">
</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>

AUTHORS

See Workflow

COPYRIGHT

Copyright (c) 2004-2023 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

AUTHORS

Please see Workflow