Callback

Connect processing offers the possibility of triggering callbacks at different points in the processing. This is very useful if a calling system wants to display information about intermediate states or has to return an error message in case of an error.

The callbacks are containers for commands (several are possible) and can be specified within a document (Document Level Command) or also at batch level (Batch Level Command).

<OneOffixxConnectBatch xmlns="http://schema.oneoffixx.com/OneOffixxConnectBatch/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Entries> <OneOffixxConnect> <Arguments> ... </Arguments> <!-- Document Level Commands --> <Commands> <OnSuccess> <Command Name="DocumentSuccess" /> </OnSuccess> <OnCancel> <Command Name="DocumentCancel" /> </OnCancel> <OnError> <Command Name="DocumentError" /> </OnError> <OnExit> <Command Name="DocumentExit" /> </OnExit> <Command Name="DocumentChrono1" /> <Command Name="DocumentChrono2" /> </Commands> </OneOffixxConnect> </Entries> <Commands> <OnSuccess> <Command Name="BatchSuccess" /> </OnSuccess> <OnCancel> <Command Name="BatchCancel" /> </OnCancel> <OnError> <Command Name="BatchError" /> </OnError> <OnExit> <Command Name="BatchExit" /> </OnExit> <Command Name="BatchSuccessChrono1" /> <Command Name="BatchSuccessChrono2" /> </Commands> </OneOffixxConnectBatch>

Explanation

DocumentChrono1 and DocumentChrono2 are executed only if the creation of the document was successful. It is the same in terms of flow as if they were in OnSuccess.

The same is true for BatchSuccessChrono1 and BatchSuccessChrono2.

CAUTION
During batch processing, the callbacks on document level are not executed. Only the callbacks at batch level are executed.

PrimeSoft AG, Bahnhofstrasse 4, 8360 Eschlikon, Switzerland