AnsweredAssumed Answered

Task status

Question asked by Michael_Lowry on May 23, 2014
Latest reply on Nov 4, 2014 by Michael_Lowry

JobPlanMonitor.Task.getStatus()returns task statuses in a form that does not appear to be documented anywhere. These statuses (e.g,state_running or state_ended), do not correspond to the statuses returned by theTaskDetails class. These statuses also appear to be different from those documented in the User Guide (inSystem Return Codes for Executable Objects).

Is there a list of all the statuses that can be returned byJobPlanMonitor.Task.getStatus()and what they mean?

If not, it would be very helpful if someone would publish acomplete list of these statuses, preferably in a table that makes clear how they map to the UC4 system return codes and statuses described the User Guide.

For example:

                                                                                                       
 

Code

 
  
 

Status 

 
 
 

Status   Text     

 
 
 

Description

 
 

1550

 

 

state_running

 

 

Active

 

 

Task   is running

 
 

1560

 

 

state_blocked

 

 

Workflow   is blocked.

 

 

Workflow   is blocked because a constituent job is blocking it. (Applies only to   workflows.)

 
 

1562

 

 

state_holded

 

 

HELD   - Manual stop has been set.

 

 

Task   has been manually held (The Set breakpoint checkbox in task properties   is checked).

 
 

1697

 

 

state_waiting_sync

 

 

Waiting   for SYNC

 

 

Task   is waiting for a SYNC object.

 
 

1700

 

 

state_waiting

 

 

Waiting   for predecessor

 

 

Task   is waiting for a predecessor.

 
 

1800

 

 

state_abended

 

 

ENDED_NOT_OK   - Aborted

 

 

Task   ended in error.

 
 

1850

 

 

state_cancelled

 

 

ENDED_CANCEL   - Manually canceled.

 

 

Task   was manually cancelled.

 
 

1898

 

 

state_blocking

 

 

Blocked

 

 

Task   ended in error and is blocking successors.

 
 

1900

 

 

state_ended

 

 

ENDED_OK   - Ended normally.

 

 

Task   completed successfully.

 
 

1921

 

 

state_inactive_def

 

 

ENDED_INACTIVE   - task not active due to definition.

 

 

Task   has been disabled (The Active checkbox in the task properties is not   checked).

 
 

1922

 

 

state_inactive_man

 

 

ENDED_INACTIVE   - Task has manually been set inactive.

 

 

Task   has been made inactive (e.g., using MODIFY_TASK).

 
 

etc.

 

 

 

 

 

 

 

 

 

 

 

(There is also an API class called TaskState, but it is not clear how this is related.)







Outcomes