Control Task Processing
Many Oracle Health Insurance applications make use of a queue based task distribution and processing mechanism. If task processing is:
-
started then the Oracle Health Insurance application picks tasks from the queue and processes these;
-
stopped then the Oracle Health Insurance application does not pick tasks from the queue.
Under normal conditions task processing is started. It can (temporarily) be stopped for importing a configuration set using the Configuration Migration Tool (CMT). When the configuration set is imported task processing can be started again so that tasks are processed with updated configuration data.
The "taskprocessing" resource can be used to:
-
determine the status of the task processing mechanism;
-
(temporarily) stop task processing;
-
start task processing (when it was stopped).
Determine Task Processing Status
The resource also allows inquiry about the status by executing:
GET /taskprocessing
which returns a response like the following when task processing is started:
{
"status": "started",
"links": {
"defaultLink": [
{
"rel": "self",
"href": "http://host:8001/api/taskprocessing"
},
{
"rel": "taskprocessing:control",
"href": "http://host:8001/api/taskprocessing?action=stop",
"httpMethod": "POST"
}
]
}
}
The client can determine the options based on the links, for example, stop task processing using the "taskprocessing:control" option.