The AlphaHtmlProcessor sample

The AlphaHtmlProcessor sample extends a IBM® WebSphere® Multichannel Bank Transformation Toolkit HTML channel processor to demonstrate how to handle implicit events.

In the AlphaHtmlProcessor sample, developers do not need to define any states or transitions to handle events that have been prompted by users. The processor handles the events implicitly.

Figure 1 shows a simple account transfer flow. If an error occurs in the flow, such as if a transfer amount has been entered that is above the daily transfer limit, when the transferProcessOp account transfer request is processed, a page is displayed that enables users to either enter another transfer amount or to cancel the process.
Figure 1. A simple account transfer flow
However, in the AlphaHtmlProcessor sample, developers do not need to create the userPrompt and the FinalNotOk states. The processor handles errors implicitly. Figure 2 shows a flow that uses the AlphaHtmlProcessor.
Figure 2. A flow that uses the AlphaHtmlProcessor processor.
In the AlphaHtmlProcessor sample, important runtime processor extension tasks are covered. The implementation items of the AlphaHtmlProcessor sample are in two projects: the AlphaSampleWidget project and the Alphates_v8.0 project. Table 1 provides a description of the implementation items in the AlphaHtmlProcessor sample.
Table 1. Implementation items in the AlphaHtmlProcessor sample.
Item name Description Further information on the item Location
AlphaHtmlProcessor.java Java class for runtime processor extension. Extending runtime processor The src\com\ibm\btt\alphasample\automation\html folder in the Alphates_v8.0 project.
flowForProcessorExtension.transaction Sample flow that uses the AlphaHtmlProcessor processor   The src\definitions\processors folder in the Alphates_v8.0 project.