Package com.orchestranetworks.workflow

# Class ConditionBean

java.lang.Object
com.orchestranetworks.workflow.ConditionBean

public abstract class ConditionBean extends Object

This abstract class must be extended in order to define a library condition. A condition bean describes its label, description and properties list. This condition will then be automatically offered in the workflow definition (with specified label and defined parameters). The declaration must be made in `module.xml` files.

Contrary to `Condition`, no `DataContext` is accessible from a `ConditionBeanContext`. It is necessary to use mapping for input and output parameters. By this way, the bean is more dynamic and reusable.

See Also:
  - Example of ConditionBean
  - `Condition`
  - `ScriptTaskBean`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ConditionBean()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract boolean`
  `evaluateCondition(ConditionBeanContext aContext)`
  This method is automatically executed when the control flow reaches an exclusive choice (or condition).

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ConditionBean

    public ConditionBean()

- ## Method Details

  - ### evaluateCondition

    public abstract boolean evaluateCondition(ConditionBeanContext aContext) throws OperationException
    This method is automatically executed when the control flow reaches an exclusive choice (or condition).
    Throws:
      `OperationException`