StateManagement class

The StateManagement class enables you to manage the state of a collaboration and the persistence of business objects. State management and business object persistence are necessary for implementing long-lived business processes.

A collaboration's state is managed by performing save, retrieve, update, and delete operations on the CxCollabState database table. This table contains the following attributes:

A business object's persistence is managed by performing save, retrieve, update, and delete operations on the CxCollabStateBO database table. This table has the following attributes:

Table 72 describes the methods in the StateManagement class.

Table 72. StateManagement method summary
Method Description Page
beginTransaction() Marks the beginning of a transaction. beginTransaction()
commit() Commits a transaction. commit()
deleteBO() Deletes a persisted business object from the CxCollabStateBO database table. deleteBO()
deleteState() Deletes entries from the CxCollabState database table. deleteState()
persistBO() Persists a business object in the CxCollabStateBO database table. persistBO()
recoverBO() Recovers a business object that has been persisted in the CxCollabStateBO database table. recoverBO()
releaseDBConnection() Releases the database connection. releaseDBConnection()
resetData() Resets the value of the boolean variable bTranStarted. resetData()
retrieveState() Retrieves the latest value of the retry count stored in the CxCollabState database table. retrieveState()
saveState() Saves the collaboration process parameters in the CxCollabState database table. saveState()
setDBConnection() Sets the database connection. setDBConnection()
StateManagement() Creates and initializes a StateManagement object. StateManagement()
updateBO() Updates a persisted business object in the CxCollabStateBO database table. updateBO()
updateState() Updates the retry count value in the CxCollabState database table. updateState()

Copyright IBM Corp. 2003, 2004