OcaTaskStatus

class OcaTaskStatus()

Status of an OcaTask: task state plus a nonspecific blob named Parameter which the application can use, or not.

  • The initial value of Parameter is null.

  • The controller sets the value of Parameter via the Control() method.

  • If the task’s state changes due to an internal event (examples: task duration value reached; or failure due to an error), Parameter is not changed.

OcaTaskStatus.ID

type: number

ID of the task to which this state descriptor applies.

OcaTaskStatus.State

type: OcaTaskState

State of the task - running, stopped, etc.

OcaTaskStatus.ErrorCode

type: number

Error code. Value is application-specific.