NAME

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

VERSION

This documentation describes version 2.09 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.yaml:

condition:
- name: check_approvals
  class: ...

In workflow.yaml:

state:
- name: CHECK_APPROVALS
  autorun: yes
  condition:
  - name: null_1
    resulting_state: APPROVED
    condition:
    - name: check_approvals
  - name: null_2
    resulting_state: REJECTED
    condition:
    - name: !check_approvals

AUTHORS

See Workflow

COPYRIGHT

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