Staging Info
The StagingInfo
content in the Transmission header defines the
following:
- A Staging Query: The
StagingQuery
element is an Integration Saved Query which should return one or more Transmission numbers. The first transmission number returned from the query is used as the transmission number to which the transactions in the current transmission are appended thus constructing a more complete Transmission. - A Staging Process: The
StagingProcess
element is an Integration Saved Query which determines if the Transmission is now ready for processing. If the query returns a result, the Transmission will proceed with processing, and if no result is returned then the transmission will remain in a STAGING status until another event triggers it to be processed.
Staging Info Examples
To put a transmission immediately into a STAGING state, use the following TransmissionHeader:
<TransmissionHeader>
<TransmissionType>STAGING</TransmissionType>
</TransmissionHeader>
If a Transmission contains the above header the transactions within the transmission will remain in STAGING state until a subsequent transmission or process changes their state.
If the current transmission should also be put into STAGING state but the transactions contained within it should be added to an already existing transmission also in STAGING state, the following TransmissionHeader should be used:-
<TransmissionHeader>
<TransmissionType>STAGING</TransmissionType>
<StagingInfo>
<StagingQuery>
<IntSavedQuery>
…integration saved query elements…
</IntSavedQuery>
</StagingQuery>
</StagingInfo>
</TransmissionHeader>
The Integration Saved Query should return the transmission number of the previously staged transmission which should have the current transactions added to it. If no result is returned the transactions remain associated to this transmission and it will remain in STAGING state.