Package com.orchestranetworks.workflow

# Class ScriptTask

java.lang.Object
com.orchestranetworks.workflow.ScriptTask

public abstract class ScriptTask extends Object
Script task node, represents an automatic task during a process execution.

This abstract class must be implemented in order to define a specific action, generally some updates on the repository, in the context of a process execution.

### Life cycle

This class is state-less, it is instantiated each time the process instance control flow has reached a script task node.

Example of ScriptTask.

It is recommended to use `ScriptTaskBean` instead, because `ScriptTaskBean` allows to declare input and output parameters. By this way, the bean is more dynamic and reusable (no dependent on data context variables).

See Also:
  - `UserTask`
  - `ConditionBean`
  - `Condition`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ScriptTask()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract void`
  `executeScript(ScriptTaskContext 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

  - ### ScriptTask

    public ScriptTask()

- ## Method Details

  - ### executeScript

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