Get latest Cycle execution status

get

/CycleService/rest/services/tasks

Retrieves execution/status details for the most recently submitted Cycle task.

Request

Header Parameters
Back to Top

Response

Supported Media Types

200 Response

Cycle execution details retrieved successfully.
Body ()
Root Schema : CycleTaskDetail
Type: object
Show Source
Nested Schema : status
Type: object
Additional Properties Allowed
Show Source
Example:
{
    "SUCCESS":"10",
    "BUSINESS ERROR":"2",
    "SYSTEM ERROR":"1"
}

400 Response

Cycle execution task not found or details could not be retrieved.

401 Response

Authentication refused for provided credentials or the token is invalid.

403 Response

Authentication refused for provided credentials or the token is invalid.
Back to Top

Examples

This example demonstrates how to retrieve execution and status information for the most recently submitted Cycle task.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

curl \
   -X GET \
   -H "Accept: application/json" \
   -H "ClientNumber: wsUser" \
   -H "PersonalId: wsUserPassword" \
   -L "https://oipa.example.com/PASJava/CycleService/rest/services/tasks"

Implementation Notes

  • The endpoint first identifies the most recent cycle GUID from cycle execution data.
  • After the recent GUID is resolved, it follows the same execution-status lookup used by GET /tasks/{CycleGuid}.
  • If no previous cycle execution task exists, the service returns 400 Bad Request with an ErrorMessage.

Operational Guidance

  • Use GET /tasks for monitoring dashboards or administrative checks that need the latest cycle run.
  • Treat counts and processing rates as point-in-time values. Repeated calls may return different values while a cycle run is still executing.
Back to Top