====== Messages from external systems ====== The interface ** IBackendObjectSenderCommit ** is available for jobstep [[en:prozessdefinition:jobs:jobsteps:kommunikation:backend:backendobjectretriever]]. With the implementation of this interface, a new BackendType is available. ===== Method CommitCurrent ===== This method is used before the message is written to the database. This allows for the possibility to make changes before the message starts to "exists". ===== Example application ===== "SampleBackendObjectCommittedSender": this example assigns a number in the subject of a message (subject: "SampleOrder 1"). The number is located as a variable in the main location of the specified system partner and adjusts the count after each request. If job 1 to job 5 gets terminates already after job 3, the next execution with job 4 will continue, since the last executed number (3) is now in the variable. ===== Processes in the interface ===== ^ Processes ^ Meaning | | void Initialize (IJob runningJob) | Initialization of the object. | | bool MoveNext () | If true, continue with the next message. In the example, this method counts up the number and checks for the number of the list | void CommitCurrent (string messageComRef, string messageInfo) | Retrieved before the message is saved to the database | void RollbackCurrent (string errorMessage) | Invoked when an error occurs. |