NAME

Workflow::Condition::LazyOR

VERSION

This documentation describes version 2.09 of this package

DESCRIPTION

Using nested conditions (See Workflow::Condition::Nested), this evaluates the given conditions using lazy-evaluation, returning true at the first nested condition that returns true. If all nested conditions return false, LazyOR also returns false.

SYNOPSIS

In condition.yaml:

condition:
- name: cond1
  ...
- name: cond2
  ...
- name cond3
  ...
- name: check_prereqs
  class: Workflow::Condition::LazyOR
  param:
  - name: condition
    value: cond1
  - name: condition
    value: cond2
  - name: condition
    value: cond3

In workflow.yaml:

state:
- name: CHECK_PREREQS
  autorun: yes
  action:
  - name: null_1
    resulting_state: HAVE_PREREQS
    condition:
    - name: check_prereqs
  - name: null_2
    resulting_state: FAILURE
    condition:
    - name: !check_prereqs

PARAMETERS

The following parameters may be configured in the param entity of the condition in the YAML 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
- name: condition
  value: second_condition_to_test

or

param:
- name: condition1
  value: first_condition_to_test
- name: condition2
  value: second_condition_to_test

COPYRIGHT

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