Formatting XML Data For a Dynamic Data Table

5-6 Administrators Guide for Oracle Application Adapters for Oracle Enterprise Content Management

5.4.6 Configuring Chained Commands and Web Tools

Some AXF commands have parameter keys that specify what occurs after the command completes, allowing you to chain them. For example, Table 5–4 shows a portion of the AXF_SOLUTION_PARAMETERS table. After the CompleteTask command executes, additional AXF commands are executed StartInvoiceProcessing and AutoOpenTask, based on program logic.

5.4.7 Configuring a Dynamic Data Table

In the Task Viewer, you can display a table of dynamic data from the BPEL payload XML, such as General Ledger lines for an invoice processing solution, as shown in the bottom tabs in Figure 1–5 . You configure the table in the AXF_METADATA_BLOCKS Table and its data lines in the AXF_METADATA_ATTRIBUTES Table . For information on formatting XML data in the BPEL payload, see Section 5.4.7.1 ; also see Section A.2.2, Task Viewer Web Tool. The bottom row of Table 5–5 shows an example dynamic data table called GL Lines configured. Table 5–6 shows the GL Lines table’s data lines configured. This example results in three data columns in the table. It assumes that the XPATH attributes exist in the AXF_ XPATH_ATTRIBUTES Table . Fields not shown include: DATA_TYPE=String

5.4.7.1 Formatting XML Data For a Dynamic Data Table

After adding the table in the AXF_METADATA_BLOCKS Table and configuring its data lines in the AXF_METADATA_ATTRIBUTES Table , follow the guidelines below Table 5–4 Example AXF_SOLUTION_PARAMETERS Table for CompleteTask Command InvoiceProcessing Solution COMMAND_ NAMESPACE CONFIGURATION_NAMESPACE PARAMETER_KEY PARAMETER_VALUE DuplicateInvoice oracle.imaging.axf.commands.bpel.Complete TaskCommand CMD_AUTOTASK_ OFF StartInvoiceProcessing DuplicateInvoice oracle.imaging.axf.commands.bpel.Complete TaskCommand CMD_AUTOTASK_ ON AutoOpenTask DuplicateInvoice oracle.imaging.axf.commands.bpel.Complete TaskCommand OUTCOME DUPLICATE_INVOICE Table 5–5 Example AXF_METADATA_BLOCKS Table BLOCK_ ID BLOCK_LOCATION LABEL DISPLAY_ ORDER TASK_FLOW_ID SOLUTION_ NAMESPACE BLOCK_ TYPE METADATA _STYLE 1 LEFT_SIDEBAR Summary 1 axf-taskviewer-tfd InvoiceProcessing METADATA null 2 LEFT_SIDEBAR Comments 2 axf-taskviewer-tfd InvoiceProcessing COMMENT null 3 BOTTOM_PANEL GL Lines 3 axf-taskviewer-tfd InvoiceProcessing METADATA TABLE Table 5–6 Example AXF_METADATA_ATTRIBUTES Table for Dynamic Data Table BLOCK_ID ATTRIBUTE_ID LABEL ATTRIBUTE_KEY IS_XPATH DISPLAY_ ORDER 2 8 Line Number DistributionLines_LineNumber TRUE 2 9 Dist Account DistributionLines_DistributionAccount TRUE 1 2 10 Amount DistributionLines_Amount TRUE 2 Configuring the Imaging Solution 5-7 to ensure that the XML data in the BPEL payload is correctly formatted for display in the table. Below is an XML sample for display at any level within the XML payload. The First column XPATH retrieves the parent and its peer elements collectionItem. Each of the configured XPATHs point to an itemValue element used to retrieve the cell values for the table from each collectionItem. rootElement collectionContainerElement collectionItem --First row for table itemValue1value1itemValue1 --First column XPATH itemValue2value2itemValue2 itemValue3value3itemValue3 collectionItem collectionItem --Second row itemValue1value1itemValue1 itemValue2value2itemValue2 itemValue3value3itemValue3 collectionItem collectionItem itemValue1value1itemValue1 itemValue2value2itemValue2 itemValue3value3itemValue3 collectionItem collectionContainerElement rootElement The first column XPATH for the above XML should be similar to the following: task:payloadtask:rootElementcollectionContainerElementcollectionItemitemValue1

5.4.8 Reenabling PaperClip Attachments Oracle E-Business Suite and Imaging Only