Skip the Post-Wait Time of a Strategy Execution Task
Jane wants to skip the post-wait time, or post completion of a task wait time, of a strategy execution task. To do this, she must search for the task ID that is in the Complete status and waiting for an execution end and update the task status to Skip Postwait and open the next task.
- Retrieve the task ID using the GET action.
- Skip the task wait time using the PATCH action.
Step 1: Retrieve the Task ID
Provide the strategy ID to get the execution tasks details.
Example URL
Here's an example of the resource URL:
GET
fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928/child/strategyExecutionTasks?onlyData=true&orderBy=WorkOrder
Example Response
Here's an example of the response body in JSON format:
{
"items": [
{
"WorkItemId": 100100115828105,
"WorkOrder": 100,
"StrategyTaskTemplate": "Soft Customer Call",
"ScheduleStart": "2019-10-16",
"ScheduleEnd": "2019-10-16",
"ExecutionStart": "2019-10-16",
"ExecutionEnd": null,
"PostWaitEndTime": null,
"TaskType": "Manual",
"AssignedTo": "Jamie Jones",
"CreatedBy": "COLLECTIONS_MGR_OPERATIONS",
"CreationDate": "2019-10-16T06:25:21+00:00",
"LastUpdateDate": "2019-10-16T06:25:21+00:00",
"LastUpdatedBy": "COLLECTIONS_MGR_OPERATIONS",
"TaskStatus": "Wait"
}
],
"count": 1,
"hasMore": false,
"limit": 25,
"offset": 0,
"links": [
{
"rel": "self",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928/child/strategyExecutionTasks",
"name": "strategyExecutionTasks",
"kind": "collection"
}
]
}
Step 2: Skip the Task Wait Time
Using the task ID (WorkItemId) from the response in Step 1, update the task status to Skip Postwait.
Example URL
Here's an example of the resource URL:
PATCH
fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928/child/strategyExecutionTasks/100100115828134
Example Request
Here's an example of the request body in JSON format:
{
"TaskStatus":"Skip Postwait"
}
Example Response
Here's an example of the response body in JSON format:
{
"WorkItemId": 100100115828134,
"WorkOrder": 300,
"StrategyTaskTemplate": "Moderate Customer Call",
"ScheduleStart": "2019-10-16",
"ScheduleEnd": "2019-10-16",
"ExecutionStart": "2019-10-16",
"ExecutionEnd": null,
"PostWaitEndTime": "2019-10-16",
"TaskType": "Manual",
"AssignedTo": "Jamie Jones",
"CreatedBy": "COLLECTIONS_MGR_OPERATIONS",
"CreationDate": "2019-10-16T06:41:45+00:00",
"LastUpdateDate": "2019-10-16T06:43:18+00:00",
"LastUpdatedBy": "COLLECTIONS_MGR_OPERATIONS",
"TaskStatus": "Skip Postwait",
"links": [
{
"rel": "self",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928/child/strategyExecutionTasks/100100115828134",
"name": "strategyExecutionTasks",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000478"
}
},
{
"rel": "canonical",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928/child/strategyExecutionTasks/100100115828134",
"name": "strategyExecutionTasks",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928",
"name": "collectionStrategies",
"kind": "item"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928/child/strategyExecutionTasks/100100115828134/lov/strategyTaskTemplates",
"name": "strategyTaskTemplates",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928/child/strategyExecutionTasks/100100115828134/lov/collectors",
"name": "collectors",
"kind": "collection"
}
]
}