Reschedule work orders at the midpoint

post

/fscmRestApi/resources/11.13.18.05/workOrders/action/midpointRescheduleWorkOrderOperation

Performs midpoint rescheduling for the work order. If the plant must perform midpoint rescheduling, then the client sends the operation, date, and one of these scheduling options. 1, operation start date: the application sets the schedule date to the start date of the operation. 2, operation completion date: the application sets the schedule date to the completion date of the operation. The application then backward schedules the resources for operations that already occurred, and forward schedules the resources for subsequent operations. The application uses the work order operation as an anchor so that it can reschedule the resource according to the date that you specify. It uses this anchor as a stable, single reference point so that it can accurately reschedule the operations.

Request

Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
Request Body - application/vnd.oracle.adf.action+json ()
Root Schema : schema
Type: object
Show Source
  • Value that uniquely identifies the work order operation that anchors rescheduling.
  • Sequence to use when performing the work order operations that reference this serial number.
  • Abbreviation that identifies the inventory organization that's enabled for manufacturing.
  • Schedule date for the action of the operation that the application is anchoring. This date is one of these values. 1: if the scheduling option equals the operation start date, then the application sets the schedule date to the operation start date. 2: if the scheduling option equals the operation completion date, then the application sets the schedule date to the operation completion date.
  • Contains one of these values. 1: assign the scheduleDate to the start date for the anchor operation. 2: assign the scheduleDate to the completion date for the anchor operation.
  • Number that identifies the work order. This number is unique in the manufacturing organization. The user can manually assign the number when the user creates the work order, or can allow the application to create a unique number from the numbering scheme defined by these plant parameters: Work Order Prefix or Work Order Starting Number.
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Body ()
Root Schema : schema
Type: object
Show Source
Back to Top

Examples

This example describes how to reschedule one work order at the midpoint.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.action+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/workOrders/WorkOrderId"

For example, the following command reschedules work order 300100085483217:

curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.action+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/workOrders/300100085483217"

Example Request Body

The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.

{
   "name" : "midpointRescheduleWorkOrderOperation",
   "parameters" :   [
      { "operationId" : 300100052441028 },
      { "scheduleOption" : 1 } ,
      { "scheduleDate" : "2017-06-17T12:30:00-05:00" }
   ]
}

Example Response Body

The following example includes the contents of the response body in JSON format:

{
  "result" : "300100085483217"
}
Back to Top