ProcessChangeBatchStatusTaskOrder

Changes batch status, task and order.

Member of namespace

Maintenance Manager

Syntax

bool ProcessChangeBatchStatusTaskOrder (string newStatus, int newOrder, string newTask)

Parameters

newStatus
Type: string
newOrder
Type: int
newTask
Type: string

Parameters

  • newStatus: The new batch status: aborted, cancelled, finished, hold, job done, pending, running. Smart parameters are supported.
  • newOrder: The order of the new task, zero-based index of task inside its job.
  • newTask: The name of the new task.

Returns

True if the batch status is successfully changed. Otherwise, False.

Level

Batch level.

Details

Using the results from a previous query performed by Maintenance Manager actions, the selected batches have their status, order and task attributes changed.

The database connection will be closed by this action.

Example:
QuerySetStation("1")
QuerySetJobID("!Demo Job")
ProcessRunSqlQuery("")
ProcessChangeBatchStatusTaskOrder("hold", "1", "Verify")