Job: Complete Trigger
The Job: Complete Trigger fires a workflow whenever a Resource Job completes all iterations or is canceled during execution.
Node Properties
The Job: Complete Trigger has one piece of configuration: the Resource Job, which will fire this node when all iterations complete or the execution is canceled.
Payload
The payload will include the triggering event in the data
field. In the general case, a Job: Complete workflow payload will look like the following:
{
"applicationId": "555555555555eeeeeeeeeeee",
"applicationName": "My Great Application",
"data": {
"accumulator": "{\"example\":900001}",
"execution": {
"applicationId": "555555555555eeeeeeeeeeee",
"context": {},
"executionReportUrl": "https://example.com/yourReport.csv",
"executionSummary": {
"failed": 5,
"inProgress": 0,
"remaining": 0,
"succeeded": 23,
"timedOut": 4
},
"id": "444444444444dddddddddddd",
"iterationDelay": 0,
"iterationTimeout": 900000,
"maxIterationConcurrency": 10,
"maxIterationRetries": 1,
"query": {
"$or": []
},
"resourceJobExecutionId": "444444444444dddddddddddd",
"resourceJobId": "6377e89a6bf4da30eb564c66",
"resourceType": "device",
"retryDelay": 50,
"retryOnFailure": true,
"retryOnTimeout": true,
"runCompletedAt": "2022-11-18T21:59:36.163Z",
"runStartedAt": "2022-11-17T21:59:36.163Z",
"sourceId": "555555555555eeeeeeeeeeee",
"sourceType": "user",
"status": "completed"
},
"resourceJob": {
"applicationId": "555555555555eeeeeeeeeeee",
"createdById": "6168bc08b7326100076cbf4f",
"createdByType": "user",
"creationDate": "2022-11-18T20:18:34.676Z",
"defaultContext": "{}",
"description": "",
"id": "6377e89a6bf4da30eb564c66",
"iterationDelay": 0,
"iterationTimeout": 900000,
"lastExecutionRequested": "2022-11-15T17:12:15.600Z",
"lastUpdated": "2022-11-18T20:18:34.676Z",
"lastUpdatedById": "6168bc08b7326100076cbf4f",
"lastUpdatedByType": "user",
"maxIterationConcurrency": 10,
"maxIterationRetries": 1,
"name": "My Resource Job",
"queryJson": "{\"$or\":[]}",
"resourceJobId": "6377e89a6bf4da30eb564c66",
"resourceType": "device",
"retryDelay": 50,
"retryOnFailure": true,
"retryOnTimeout": true
},
"success": true
},
"flowId": "333333333333cccccccccccc",
"flowName": "My Great Workflow",
"flowVersion": "myFlowVersion",
"globals": {
"aJsonGlobal": {
"key": "value"
},
"aNumberGlobal": 42,
"aStringGlobal": "My value"
},
"relayId": "<ID of the job>",
"relayType": "resourceJob",
"time": Fri Feb 19 2016 17:26:00 GMT-0500 (EST),
"triggerId": "<ID of the job>",
"triggerType": "resourceJobComplete"
}
Related Nodes
Was this page helpful?
Still looking for help? You can also search the WEGnology Forums or submit your question there.