About the ERP Import Service

The ERP Import service retrieves information about work orders, process orders, and materials from the integration database, and creates these records in the Plant Applications database.
Important: If work on a work order has begun in Plant Applications, and if you try to import the same work order again, an error occurs.

The ERP Import service is a RESTful microservice that exposes an API consisting of the following methods: POST and GET.

To import files, the following steps are performed:
  1. When the ERP Scheduler service sends a request for a new or in-process record, the ERP Import service performs one of the following steps:
    • For a new record, it retrieves the corresponding file from the integration database using the POST method to communicate with the other Plant Applications microservices. This method is asynchronous; as a result, the HTTP response codes and response messages are stored in a table for subsequent retrieval.
      Note: If the record is available in an XML or B2MML format, the ERP Import service sends the data to the ERP Transformation service, where it is converted to a JSON format.
    • For an in-process record, it retrieves the ID of the record from the integration database using the GET method.
  2. The ERP Import service updates the status of the import. The ERP Scheduler service then updates the ERP Integration database with this information.