The ERP Scheduler service provides the ability to POST various
entities into the Integration Database. To access the user interface, follow the
instructions in Plant Applications REST APIs. Refer to Swagger URLs of Rest Services
for the ERP Scheduler Service's URL (as well as the URLs for all other services).
Refer to the erp-scheduler-service documentation for the specification of the
controllers used for importing the entities materials, material lots, outside
processing, process orders and work orders.
Each controller requires a message string as an input. The message string is the
import document (listed with links below) with all JSON String Escape
characters.
The response from each POST returns a jobID. Immediately the response code and
message will have no value. The POST begins the ERP import request by adding data to
the integration table, where it will wait to be processed. The ERP scheduler uses a
polling time interval
(erp.scheduler.service.importJobPoll.milliseconds) to search for
new jobs to process from the integration table. The ERP scheduler will process the
jobs and when the processing is successful, the response of that processing can be
found by either of the following:
Requesting a status by Job ID from the service
GET https://<FQDN or
Hostname>/erpscheduler-service/importOrders/importedJobs?jobIds=[JobIDs]
Subscribing to the kafka topic mes.erp.inbound.messages
Either method will provide the final status of the ERP import request by providing
the response code and response message for each job ID. For further analysis, a
controller is available to retrieve the full import request message by job ID:
GET https://<FQDN or
Hostname>/erpscheduler-service/importOrders/importedJobs/<jobID>/message