yumapro  20.10-10
YumaPro SDK
Commit Complete Callback

Commit Complete Callbacks allow SIL or SIL-SA code to be invoked when an edit transaction is completed. More...

Collaboration diagram for Commit Complete Callback:

Typedefs

typedef status_t(* agt_commit_complete_cb_t) (agt_commit_type_t commit_type)
 Typedef of the commit_complete callback.
 

Functions

void agt_commit_complete_init (void)
 Initialise the callback commit module. More...
 
void agt_commit_complete_cleanup (void)
 Cleanup the callback commit module. More...
 
status_t agt_commit_complete_register (const xmlChar *modname, agt_commit_complete_cb_t cb)
 Register a Commit Complete callback. More...
 
void agt_commit_complete_unregister (const xmlChar *modname)
 Unregister a Commit Complete callback. More...
 
status_t agt_commit_complete (rpc_msg_t *msg, agt_commit_type_t commit_type)
 Complete a commit operation. More...
 

Detailed Description

Commit Complete Callbacks allow SIL or SIL-SA code to be invoked when an edit transaction is completed.

It is often used to cleanup or commit a set of edits at once to remove order dependencies in the edited objects.

Function Documentation

status_t agt_commit_complete ( rpc_msg_t msg,
agt_commit_type_t  commit_type 
)

Complete a commit operation.

This function simply calls each registered commit complete callback. If a commit complete operation fails the status of the failing operation is returned immediately and no further commit complete callbacks are made.

Parameters
msgRPC msg message in progress containing transaction CB
commit_typecommit type (normal or replay)
Returns
NO_ERR or the status of the first failing callback.

Here is the call graph for this function:

Here is the caller graph for this function:

void agt_commit_complete_cleanup ( void  )

Cleanup the callback commit module.

Called by the server during shutdown.

Here is the call graph for this function:

void agt_commit_complete_init ( void  )

Initialise the callback commit module.

Must be called before module is used for registration.

Here is the call graph for this function:

Here is the caller graph for this function:

status_t agt_commit_complete_register ( const xmlChar *  modname,
agt_commit_complete_cb_t  cb 
)

Register a Commit Complete callback.

This function registers a Commit Complete callback that will be called right after Commit Phase has been processed during the <commit>. If a commit complete operation is already registered for the module it will be replaced.

Parameters
modnamename of the module unregistering the callback
cbthe commit complete function.
Returns
the status of the operation.

Here is the call graph for this function:

void agt_commit_complete_unregister ( const xmlChar *  modname)

Unregister a Commit Complete callback.

This function unregisters a Commit Complete callback.

Parameters
modnamename of the module unregistering the callback

Here is the call graph for this function: