Simulate execution plan for the first N execution cycles
POST/execution-strategy/:nameOrSid/simulate-execution
Simulate execution plan for the first N execution cycles
Request
Path Parameters
Header Parameters
The secret for the requested Strategy
- application/json
Body
required
Possible values: >= 1
and <= 100
Number of cycle to simulate
Execution start date
Date format to use
Responses
- 200
Execution plan simulation
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
]
Number of cycle simulated
Start date with format
Used timezone
cycleEvents
object[]
required
Cycle events
Cycle number
events
object
required
mainEvent
object
Cycle main event
Event date with format
Event task
Possible values: [ONHOLD
, PENDING
, QUEUED
, EXECUTING
, PROCESSED
, FAILED
, CANCELED
, PAUSED
]
Event status
event callback
Cycle from date
leadingUpEvents
object[]
Cycle leading up events
Event date with format
Event task
Possible values: [ONHOLD
, PENDING
, QUEUED
, EXECUTING
, PROCESSED
, FAILED
, CANCELED
, PAUSED
]
Event status
event callback
onCreateEvents
object[]
Cycle on create events
Event date with format
Event task
Possible values: [ONHOLD
, PENDING
, QUEUED
, EXECUTING
, PROCESSED
, FAILED
, CANCELED
, PAUSED
]
Event status
event callback
{
"simulatedCycles": "5",
"startDate": "Saturday, January 1, 2022 8:00 PM",
"timezone": "Asia/Manila",
"cycleEvents": [
{
"cycle": "2",
"events": {
"mainEvent": {
"date": "string",
"task": "string",
"status": "ONHOLD",
"callback": "string"
},
"from": "string",
"leadingUpEvents": [
{
"date": "string",
"task": "string",
"status": "ONHOLD",
"callback": "string"
}
],
"onCreateEvents": [
{
"date": "string",
"task": "string",
"status": "ONHOLD",
"callback": "string"
}
]
}
}
]
}