Example of Modifying Invoice Approval Workflow Notifications Using Oracle Analytics Publisher
This example shows how to modify workflow notifications for the invoice approval workflow using Oracle Analytics Publisher reports. Any modifications you make apply to both email and in-app notifications.
The following table summarizes the key decisions for this scenario:
Decisions to Consider |
In This example |
---|---|
What text changes do you need in the header section of the notifications? |
Add custom text to the notification to give instructions to the approvers. |
What additional fields should the header section of the notification contain? |
Add an additional attribute for displaying Payment Terms for the invoice. |
Prerequisites
Download and install the Template Builder for Word, which is an extension to Microsoft Word.
-
In the Reports and Analytics work area, click the Browse Catalog button.
-
Click the Home link.
-
In the Get Started section, click the Download BI Desktop Tools link.
-
Select Template Builder for Word from the list.
-
Save the file and run the installer.
Modifying Invoice Approval Workflow Notification
To add the custom instructions text to the header section of the notification, we need to modify the common subtemplate used for the notifications.To edit a copy of the predefined subtemplate that contains the shared components:
-
Click on Navigator > Reports and Analytics.
-
Click the Browse Catalog icon.
-
In the BI catalog (the Folders pane), expand Shared Folders> Common Content>Templates.
-
For Workflow Notification Subtemplate, click More and select Customize.
If you're not using the Customize option:-
Click Copy in the toolbar with Workflow Notification Subtemplate selected.
-
In the BI catalog, expand Shared FoldersCustomCommon Content Templates. Create a Templates folder in this location if it doesn't exist.
-
Click Paste in the toolbar.
-
Click the Edit link for the copied subtemplate.
Note:All reports using the predefined subtemplate automatically redirect to your subtemplate in the Custom folder. This applies:
-
To all reports, predefined or not.
-
No matter if you copy and paste the subtemplate or use the Customize option.
-
Only if your subtemplate has the same name and relative file path in Custom as the predefined subtemplate
-
-
In the Templates section, click the link in the Locale column.
-
Save the subtemplate .rtf file to your computer.
-
Open the .rtf file with Microsoft Word.
-
To add custom instructions text, add a new section with the following details:
-
<template:InstructionText?>
Approval of all invoices must take no more than 2 working days. In case of any queries, kindly write to approval.support@vision.com.
-
<?end template?>
Note:To ensure that your layout templates reflect these changes without additional rework, don't edit any other text in the subtemplate .rtf file.
-
-
-
-
Update Word options to ensure that existing links remain intact in the subtemplate
-
Click File > Options > Advanced.
-
In the Word Options dialog box, click Web Options in the General section.
-
In the Web Options dialog box, open the Files tab.
-
Deselect the Update links on save check box.
Note:The exact steps can vary depending on your version of Microsoft Word.
-
-
Save your changes in Word.
Uploading the Modified Subtemplate
To upload your subtemplate to the BI catalog after previewing the changes:-
In the BI catalog, expand Shared Folders > Custom > Common Content Templates.
-
Click Edit for Workflow Notification Subtemplate.
-
In the Templates section, click the Upload icon.
-
Select your modified .rtf subtemplate and a locale, and click OK to overwrite the original subtemplate.
Next, make changes to the layout of the Invoice Approval Workflow Notification report to reflect the updates in the shared component. Additionally, add the new attribute to the report layout. To do this, you must modify the Invoice Approval Workflow Notification report layout.
Downloading the Report Layout Template
The report layout template contains the structure of the workflow notification. To download a copy of the report layout template to your local drive for modification:-
Sign in to the BI server (for example, http://hostname.com:7001/xmlpserver) as an Application Implementation Consultant to open the Oracle Analytics home page.
-
Click the Catalog link to open the Catalog page.
-
In the Folders pane, expand the Shared Folders>Financials>Workflow Notifications> Payables folder.
-
Click the Invoices folder to display the Data Models subfolder and the Invoice Approval Report.
-
Click the More link for the Invoice Approval Report, and then select Customize from the menu. The Custom folder automatically receives a copy of the Invoice Approval workflow Notification report layout template. You can open the Invoice Approval Report page from within the Custom folder.
-
Click the Edit link on the copy of the Invoice Approval workflow Notification report layout.
-
Save the copy of the .rtf file to your local drive and change the file name to distinguish it from the predefined report layout template. For example, save the file as UpdatedInvoiceApprovalNotificationReport.rtf.
Note:Be sure to change the name of the .rtf file. Otherwise, you could overwrite the predefined report layout template.
Exporting the Data Model
To add attributes to the report layout template, you must first export the data model for the report.-
Navigate back to the Oracle Analytics home page, and click the Catalog link.
-
On the Catalog page, in the Folders section, expand Shared Folders>Financials>Workflow Notifications>Payables> Invoices.
-
Click the Data Models folder to display the Invoice Approval Data Model.
-
Click the Edit link for the Invoice Approval Data Model. The Invoice Approval Data Model page opens on the Diagram tab.
-
Click the Data tab. To export the full data model, you must first enter valid values for Business Unit, Supplier, and Invoice Number attributes from an existing Invoice.
-
Click in each of these fields and enter valid values from an existing Invoice approval notification:
-
To include empty attributes in the data model export, click the Properties link in the Data Model section.
-
On the Properties page, select the Include Empty Tags for Null Elements option.
-
In the Data Model section, click the Data Sets link to return to the Data tab.
-
Click the View button to view the data model.
-
Click the Export button and save the Invoice Approval Data Model_.xml file to your local drive.
Modifying the Invoice Approval Workflow Notification Report Layout
To add a reference to the update in the subtemplate for the Instruction text that we want to add to the Invoice Approval Workflow Notification:-
Open your local copy of the report layout template using Microsoft Word.
-
Replace the path with the location of the modified subtemplate file on your computer. For example, change <?import:xdoxsl:///CommonContent/Templates/Workflow Notification Subtemplate.xsb?> to <?import:file:C:///Template_Directory/Updated Workflow Notification Subtemplate.ret?.
-
Place your cursor at the end of the default header text for Invoice Approval.
-
Add a space and enter the following: <?call-template:InstructionText?>. This action retrieves the custom instruction text from the updated subtemplate and displays it in the workflow notification.
-
Save the file.
-
From the Analytics Publisher tab in the Ribbon, click HTML in the Preview group. If the preview reflects your subtemplate changes as expected, then change the subtemplate path back to the location in the Custom folder, for example: <?import:xdoxsl:///Custom/Templates/Workflow Notifications Subtemplate.xbs?>.
-
If you're not adding attributes to the report layout, close the file and skip to the Uploading the Modified Report Layout task.
To add an attribute for Payment Terms in the header section of the report layout:
-
In your local copy of the report layout, select the Analytics Publisher tab.
-
In the Load Data section on the Analytics Publisher ribbon, click Sample XML.
-
On the XML data selection dialog box, select the .xml file that you saved in step 11 of 'Exporting the data model' and click Open.
-
Click OK on the message that appears indicating that the data was successfully loaded.
-
Place your cursor in the Details section of the notification. Add an additional row after the Description attribute.
-
In the Attribute column, enter a label for the new attribute. In this case, enter Payment Terms.
-
Then place the cursor in the Value column and go to the Analytics Publisher add-in. Navigate to Insert > Field and search for Payment Terms in the search field.
-
Select the Payment Terms attribute and click Insert.
-
Save and close your copy of the report layout.
-
Uploading the Modified Report Layout Template
To use the modified report layout template for future Invoice Approval Workflow Notifications:-
Navigate back to the Oracle Analytics home page and click the Catalog link.
-
On the Catalog page, in the Folders section, expand Shared FoldersCustomFinancials Workflow NotificationsPayables.
-
Select the Invoices folder to display the Data Models folder and the Invoice approval report.
-
Click the Edit link for the Invoice Approval Report to open the Invoice Approval Report page.
-
Click the View a list link to open the Layout page.
Note:The Layout page displays the copy of the report layout template automatically created in step 5 of the Downloading the Report Layout Template task. Leave this report layout template as is. If the modified workflow notifications don't work, you can revert back to using this report layout template. The report template is a copy of the predefined report layout template.
-
Click the Create icon. A page opens with a Create Layout section and an Upload or Generate Layout section
-
In the Upload or Generate Layout section, click the Upload icon. The Upload Template File dialog box opens.
Complete with the following information:
Field
Value
Layout Name
Enter a name for your modified report layout template. For example, enter Modified Invoice Approval Template.
Template File
Click Browse. Locate and select the modified report layout template that's on your local drive. Click Open to return to the Upload Template File dialog box.
Type
RTF Template
Locale
English
-
Click Upload. The Invoice Approval Report page returns to the thumbnail view of the report layout templates.
-
Click the View a list link to return to the Layout page with the list of the report layout templates
-
Select the row with the report layout template that you just uploaded and click the View Report button.
-
Review the modified report layout template.
-
To view the report layout template with sample data, enter values from an existing notification into the fields and click Apply.
-
Repeat steps 1 through 5 to navigate back to the list of report layout templates. In the row for the report layout template that you just uploaded, click the Default Layout option. This step enables the modified report layout template for future Invoice approval workflow notifications.
-
Click the Save icon.