Creating an Outbound Sync Request
For normal outbound processing we create an outbound sync request every time a new WAM record is created or an update is made to an existing WAM record. The sync request is initially created in a Pending state and configured to be processed by a batch monitor. Customers have the option to specify a deferred monitor on the Pending state so that it requires a batch job to continue on to the next state. When the batch job monitor runs, it moves the sync request to the Determine if Sync Needed state and all extra records that apply to the same WAM record are discarded.
Once the sync request is in a Determine if Sync Needed state, a capture algorithm takes the WAM record reference (for example, Receipt Header ID, Purchase Request Header ID, and so on), reads the record, and populates the values into the outbound Sync Request. Based on the logic of the algorithm, a decision is made to either proceed (transition to Send Request) or to discontinue (transition to Discarded).
Discarded records are all the records that were added after the creation of the initial record and the process will not continue until incorrect references, or any other error, is resolved. A Discard button allows the user to transition the sync request to a Manually Discarded state which discontinues the processing of the sync request. The WAM record can then be updated and a new sync request created and processed.