Creating a process to update custom attributes

  1. In Workbench, create an application. For example RCACustomAttributes.

  2. Add a new process. For example, StoreCustomAttributes.

  3. Create the following variables:

    Name

    Type

    Purpose

    reviewId

    String

    Input

    list CustomAttributeTO

    list of CustomAttributeTO

    customAttr

    CustomAttributeTO

    release

    String

    Holds the custom attribute release

  4. Add a Set Value operation, name the operation GetCustomAttribute, and add the following mapping data:

    • Location: /process_data/customAttr

    • Expression:/process_data/listCustomAttributeTO[1]

  5. Add a Set Value operation, name it SetReleaseValue, add the following mapping data:

    • Location: /process_data/@release

    • Expression: /process_data/customAttr/object/@attrValue

  6. Add an Execute SQL Statement (JDBC service) operation. Complete the following steps to add the release value that was set to create a row in the table.

    • For the Datasource name property, select the appropriate data source from the list.

    • Click the ellipsis button beside the SQL Statement box.

    • In the SQL Info Editor dialog box, in the SQL Statement box write, type update ReviewRelease SET release = ? where reviewID =? .

    • Select the Use Parameterized Query check box.

    • Add the following data sets:

      • Index: 1 Type:STRING Value: /process_data/@release

      • Index: 2 Type: STRING Value: /process_data/@reviewId

    • Click OK to close the SQL Info Editor dialog box.

  7. Save and deploy the application

  8. In Livecycle Administration Console, navigate to Home > Services > Applications and Services > Service Management > and select the ReviewCommentingAndApprovalService.

  9. Select Whether To Use Custom Processes To Store/update/search Custom Attributes. checkbox.

  10. In the Process Which Stores Custom Attributes box, type RCACustomAttributes/ StoreCustomAttributes.

  11. Save.

// Ethnio survey code removed