Package com.orchestranetworks.workflow

# Class ScriptTaskBean

java.lang.Object
com.orchestranetworks.workflow.ScriptTaskBean

public abstract class ScriptTaskBean extends Object

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

Contrary to `ScriptTask`, no `DataContext` is accessible from a `ScriptTaskBeanContext`. 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 ScriptTaskBean
  - `ScriptTask`
  - `ConditionBean`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ScriptTaskBean()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract void`
  `executeScript(ScriptTaskBeanContext aContext)`
  This method is automatically executed when the control flow reaches the script task.

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

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

- ## Constructor Details

  - ### ScriptTaskBean

    public ScriptTaskBean()

- ## Method Details

  - ### executeScript

    public abstract void executeScript(ScriptTaskBeanContext aContext) throws OperationException
    This method is automatically executed when the control flow reaches the script task.
    Throws:
      `OperationException`