The AS2 server invocation process consists of the following steps:
- Launch the Gravity.exe application.
- Configure the AS2 server.
- Add one or more partners.
- Create a project (option PROJECTS).
If you want to pass data received by the AS2 server to the project, it has to include a parameter — either text or binary — to receive the data, and a text parameter to receive the unique message identifier. The system automatically returns an MDN (Message Disposition Notification) to the partner after project execution, depending on the result: failed or processed.
- Add an AS2 Server-type trigger (option TRIGGERS).
To handle multiple EDI document types, the GRAVITY software requires a separate trigger for each document type.
- Launch the GravityTriggersRunner.exe server application or restart the gravity.integration service.
The specific project will be executed once the AS2 server receives a message and matches its document type to the defined trigger.