Deploying Custom Commands Configuring Imaging Solution Options

Configuring the Imaging Solution 5-5 1. Add the following row to the AXF_COMMANDS table: 2. Add the rows shown in Table 5–2 to the AXF_SOLUTION_PARAMETERS table. The following configuration validates that the invoice has been saved Invoice Transaction ID is not 0. If it is 0, the command reports the error message specified in the FAIL_MESSAGE parameter. Fields not shown: SOLUTION_NAMESPACE=InvoiceProcessing 3. In the AXF_ACTIONS Table , edit the row in which the Complete Task is configured, replacing the Complete actions COMMAND_NAMESPACE column with the ValidateTransactionIDs command namespace.

5.4.5 Deploying Custom Commands

You can also deploy custom commands to work within the AXF infrastructure. Custom commands must implement the oracle.imaging.axf.commands.AxfCommand interface. The executeAxfRequest method is invoked by the infrastructure. Configure the implementation to execute in the AXF configuration database. In addition, commands may implement the oracle.imaging.axf.commands.ValidatableCommand interface, which provides a way for the AXF infrastructure to validate the configuration and operation of a command without executing it to provide a system command status. Note: Apply this configuration change only in use cases where users must create the business application invoice before completing the task. This configuration would not apply in use cases where users may not create an invoice before completing the task typically, for example, when the task is being completed with an outcome of SupplierMaintenance. Table 5–1 Example AXF_COMMANDS Table SOLUTION_ NAMESPACE COMMAND_CLASS COMMAND_ NAMESPACE InvoiceProcessing oracle.imaging.axf.commands.bpel.ValidateTaskCommand ValidateTransactionID Table 5–2 Example ValidateTask Command in AXF_SOLUTION_PARAMETERS Table COMMAND_ NAMESPACE CONFIGURATION_NAMESPACE PARAMETER_ KEY PARAMETER_VALUE ValidateTransactionID oracle.imaging.axf.commands.bpel. ValidateTaskCommand ATTRIBUTE_TO_ VALIDATE XPATH:InvoiceProcessing_TransactionID ValidateTransactionID oracle.imaging.axf.commands.bpel. ValidateTaskCommand CMD_ON_PASS CompleteInvoice ValidateTransactionID oracle.imaging.axf.commands.bpel. ValidateTaskCommand REGULAR_ EXPRESSION [0] ValidateTransactionID oracle.imaging.axf.commands.bpel. ValidateTaskCommand FAIL_MESSAGE Please save the transaction before completing the task. Table 5–3 AXF_ACTIONS Table ACTION_ID VIEW_ID DISPLAY_NAME COMMAND_NAMESPACE MENU_ORDER CompleteInvoice TaskViewer.jspx Complete Invoice ValidateTransactionID 3 5-6 Administrators Guide for Oracle Application Adapters for Oracle Enterprise Content Management

5.4.6 Configuring Chained Commands and Web Tools