Intelligent Risk Platform employs a workflow engine to manage expensive and time-consuming processes. These processes include the creation of core objects, catastrophe analysis, and importing or exporting of data from the platform.
Resources that initiate jobs do not immediately return data. Rather, they return a 202 Accepted response code when the job is created and added to the workflow engine queue. The Intelligent Risk Plaform manages these jobs asynchronously: it does require that that connections to persist until the process is completed and may accept new requests while another job is being processed.
Risk Modeler API supports two types of workflow jobs:
A standard workflow is a system-defined process that the Intelligent Risk Platform manages as a workflow job on the workflow engine.
A custom workflow is a user-defined workflow that defines a series of jobs and subprocesses called operations that are processed by the work engine in a pipeline.
Workflow job statuses
The 202 Accepted response code indicates that a request has been accepted for processing, and that the Intelligent Risk Platform has added a workflow job to workflow engine queue, and provides the client with a means of tracking the status of the workflow job.
The Intelligent Risk Platform does not notify the client when the workflow job is complete. Rather, operations that return the workflowId of the job enabling the client to track the progress of the workflow job. You can use the workflowId returned to track the status of a job using the Get Workflow or Operation resource.
Status
Description
QUEUED
Indicates that the workflow engine has created the job and added it to the queue for processing.
PENDING
Indicates that the workflow engine is about to be processed.
RUNNING
Indicates that the workflow engine is processing the job.
FINISHED
Indicates that the workflow engine has finished processing the job.
FAILED
Indicates that the job has failed.
CANCEL_REQUESTED
Indicates that the client has requested that the workflow engine cancel job using the Cancel Job resource.
CANCELLING
Indicates that the workflow engine is cancelling the job.
CANCELLED
Indicates that the job has been cancelled.
Standard job types
A standard job is a system-defined process that the Intelligent Risk Platform manages as a workflow job on the workflow engine.