5.1 WaitTaskCancel Job Job 5.1 54 Fleet Operation Workspace Core Integration Toolkit 20964-000 Rev. C User's Manual Method Resource Function POST /JobCancel Create a cancel Job. Job and Job Segment Cancellation JSON Schema { "namekey": "string", "cancelType": "string", "cancelValue": "string", "cancelReason": "string", "status": "string" } Job and Job Segment Cancellation JSON Example To cancel a job with a POST request https://[IP]:8443/JobCancel : { "namekey": "cancelJob1", "jobId": "TestJob1", "cancelReason": "Job needed to be cancelled" } cURL Command String Example To cancel a job with a POST request: curl [options] -X POST "https://[IP]:8443/JobCancel" -H "accept:
application/json; charset=utf-8" -H "Content-Type: application/json; charset=utf- 8" -d "{\"namekey\":\"cancelJob1\",\"jobId\":\"TestJob1\",\"cancelReason\":\"Job needed to be cancelled\"}" Cancellation Using SQL To cancel a job: INSERT INTO job cancel view (namekey, cancel type, cancel value, cancel reason) _ _ _ _ _ VALUES ('cancelJob1', 'JobId', 'TestJob1', 'Job needed to be cancelled'); Cancellation Using RabbitMQ inbound.JobCancel outbound.JobCancel aitTaskCancel The Integration Toolkit version with FLOW 2.0 and above will include one additional feature. It adds the ability, through REST only, to cancel a wait state and also to check on the status of the wait state. Version Information:
This feature is available as of FLOW 2.0 Integration Toolkit version 1.1.0.