Recurring the transaction

Before you begin
About this task
The BTT EJV provides the EJRestroeTransactionXUIImp java class, which provides the EJRestoreTransactionListener interface for the recurrence. And the EJRestoreTransactionListener interface provides the restore method to implement recurrence.

public void restore(EJRecord record,Composite displayParent) throws Exception;

During the transaction, when you add an EJRecord, if you want the record to be recurred, store the transaction data in the RestoreData field and the XUI information in the RestoreDetailData field. The restore method will use the information to complete the recurrence.

For example, add EJRestroeTransactionXUIImp for recurrence in the BTT Element Factory XML configuration file.

<EJViewerConfigurationObject  id="ejvconfig">
	<ref Injection="queryConditionLayout" refId="conditionUIlayout" />
	<ref Injection="queryResultLayout" refId="resultUIlayout" />
	<ref Injection="ejInstance" refId="ejJdbcT2" />
	<com.ibm.btt.bc.ej.viewer.impl.EJRestoreTransactionXUIImpl   Injection="restoreHandler"  			
		initPath="jar:///com/ibm/btt/bc/ej/viewer/ut/xuiengine.xml" />
</EJViewerConfigurationObject>

The conditionUIlayout, resultUIlayout, and ejJdbcT2 are the ones that define in Configuring Electronic Journal Viewer GUI and the restoreHandler is for recurrence.

What to do next
After the query results are retrieved and presented in the table, you can double-click one row to trigger the recurrence of the corresponding transaction.
Screen capture is the Recurrence GUI