Adding the IBM Case Manager Audit Report Questions- PDF Document Creation Using Java

We can now update the Audit Master solution using the IBM Case Manager Builder application to add the additional Case properties required by the Audit Report.

Figure 6-65The Status for the solution is set by default to “PDFCreation”

Additionally, we add 16 standard Audit Question properties to the AUD_AuditProcess task as listed at the beginning of this section (Example 2).

The question property names are structured so that they can be referenced in the config.xml as a generic stem with the question number defined in a specific place to assist with the Java code loop structure. This scheme provides greater flexibility and allows very efficient code to be produced.

Figure 6-66The generic questions are added for the Audit Report output

The questions are designed to be output with header section names as shown in the config.xml file.

Figure 6-67The 16 generic questions saved in the Audit Master solution

The 16 generic questions are added to the AUD_AuditProcess task properties section, as shown in Figure 6-68.

 

Figure 6-68The Task Properties tab of the Audit Process task is shown

Figure 6-69The Audit Status property is created with a default PDFCreation

The Audit Master solution changes are committed and the Solution redeployed. We then need to create new Audit Department cases to use for the Audit Report tests.

Figure 6-70The Commit icon is clicked for the Audit Master solution

An IBM Case Manager Builder application pop-up window lists the changes to be saved.

Figure 6-71The Commit My Changes command button is selected

The yellow triangle icon with the exclamation mark indicates undeployed edits, so, next, we select the anti-clockwise arrow icon to redeploy the Audit Master solution to include the additional Task properties which will be used to create the Audit Report pdf file.

Figure 6-72The Audit Master solution is redeployed

The successful Audit Master Solution deployment is indicated by a white tick icon with a green background (a failed deployment would be indicated by a white cross on a red background).

Figure 6-73The Audit Master Solution status is indicated with a tick mark

Testing the Audit Report Program

A new Audit Department Case is created with the additional questions.

Figure 6-74The new Audit Department Case is highlighted

The Audit Report program is driven by IBM Case Manager Tasks. The config.xml file is designed to support a Main Case Task, followed by zero or as many additional Case Manager Task types as required.

Figure 6-75The optional Audit Process Task Start command is selected

The Task start is confirmed by selecting the Yes command from a pop-up confirmation window.

Figure 6-76The Audit Process Task Start command is confirmed

Figure 6-77The History tab of the opened Audit Department Case

The Audit Department Case shows that the Audit Process task has successfully completed.

Before we run the Audit Report program, we have to create a subfolder under the /opt/AuditReport directory with the name of the Case Task, since each IBM Case Manager Task is designed to generate a separate Audit Report pdf file. Also, the individual case reports are identified and separated from each other because the program uses the unique Task Id of the stored Case as the first part of the Audit report filename.

Leave a Reply

Your email address will not be published. Required fields are marked *