Creating Template Action Packs for Component Workflows

As an Application Developer or Administrator, you can create Template Action Packs for Component Workflows that can be easily distributed and installed on different CDA systems.

Important! The actions that you can perform depend on your folder permissions. See: Assigning Release Automation Permissions.

To Create a Template Action Pack for Component Workflows

  1. Create the Action Pack structure:
    1. Go to the Process Assembly perspective and click the Action Packs accordion tab in the sidebar.
    2. Click Create Action Pack. The New Action Pack window is displayed.
    3. Enter a title for the Action Pack (for example, Component Workflow Template). The name for the Action Pack is suggested automatically.

    4. Click Create Action Pack.
  2. Clean up and define the Action Pack metadata:
    1. Switch to the Explorer.
    2. Navigate to the Action Pack, located in the PACKAGES sub-folder.
    3. Delete the following folders:
      • ACTIONS
      • RESOURCES and its subfolders.
      • (optional) SOURCE. The Subworkflows (SOURCE/SHARED/JOBP) and PrompSets (SOURCE/SHARED/PROMPTSETS) are stored here.
    4. Delete the VARA object located in the CONFIG folder (for example: PCK_CUSTOM_COMPONENT_WORKFLOW_TEMPLATE.PUB.PROMPT_EXTERNAL.MAP).
    5. Add a new XML VARA object:
      1. Click Add Object.
      2. Name it PCK.<pack-name>.PUB.INTERFACE (for example: PCK.CUSTOM_COMPONENT_WORKFLOW_TEMPLATE.PUB.INTERFACE)
      3. Optionally, enter a title.
      4. Click Rename.
      5. Click Add Key to create a new key and name it Interface.

      6. Click the new key and add the following XML-structure to list the Workflow Templates with the corresponding settings for the component custom type:

         

        <interface>

        <templates>

        <add-templatekey="ARA.INSTALL.<CustomType>(.DEFAULT)">PCK.<pack-name>.PUB.TEMPLATE.INSTALL.<WF-name>(.DEFAULT)</add-template>

        <add-templatekey="ARA.UNINSTALL.<CustomType>.DEFAULT">PCK.<pack-name>.PUB.TEMPLATE.UNINSTALL.<WF-name>(.DEFAULT)</add-template>

        </templates>

        For example:

        Install key="ARA.INSTALL.TOMCAT.DEFAULT">PCK.CUSTOM_COMPONENT_WORKFLOW_TEMPLATE.PUB.TEMPLATE.INSTALL

    6. Go to the Action Pack main folder (example: PCK.CUSTOM_COMPONENT_WORKFLOW_TEMPLATE).
    7. Open the metadata VARA object (example: PCK.CUSTOM_COMPONENT_WORKFLOW_TEMPLATE.PUB.VAR.METADATA) and redefine the files if needed.
      1.  In the Dependencies row enter any dependent Action Pack. (An Action Pack depends on another if Actions of this Action Pack are used inside the Template workflow).
      2. Optionally, enter a description for the Action Pack.
    8. Open the DOCUMENTATION folder and double-click the PUB.DOC DOCU object.

    9. Click the Documentation accordion tab and enter any general information that may be helpful to use the Action Pack.

    10. Back to the DOCUMENTATION folder, open the PUB.LICENSES DOCU object and enter any relevant information related to licensing (for example: this Action Pack may not be modified).
  3. Create template workflows:
    1. Open the TEMPLATES folder.
    2. Click Add Object.
    3. Unfold the Workflow (_FLOWS) object and select COMPONENT_FLOW Workflow.
    4. Click Add Object. The Rename Object dialog is displayed.
    5. Enter the same names as those specified in the XML VARA object and set the title accordingly.

      Image displaying Rename Object dialog

    6. Use the Process Assembly to design the template workflows by dragging and dropping the desired Actions into the workflow and setting the parameters.

      Note: A copy of an existing component workflow can be used as a starting point to design a workflow template.

      Important! The keys specified in the interface-XML must follow the aforementioned structure. Workflow names must follow the naming conventions too.

  4. Export the Action Pack:

    Packs can be exported in the Process Assembly perspective to be reused in another client or system.

    Important! When exporting a Pack, ensure that the metadata contains the correct values. It is good practice to increase the version number with subsequent releases of your Pack to distinguish between different versions. The version number can be set in the Metadata object of the Pack.

    To Export an Action Pack

    1. On the Action Packs page of the Process Assembly perspective, right-click the relevant Action Pack and select Export.

    2. On the Export Action Pack window, select Export to automatically validate and build the Pack.

    3. Select Download to download the Pack and select a destination.

    A semantic check is performed before exporting the Action Pack, thus ensuring that the Actions are defined correctly. The following properties are checked:

    • Generate Job at = Runtime
    • Deactivate on Finish = After error-free execution.
    • Error-free status = ANY_OK
    • Overwrite Agent's value = “&AGENT#“ or leave it empty

    Note: It is not recommended to export Action Packs with a hard-coded Agent/Login set.

    This Action Pack can be used to install the created workflow template into other CDA systems.

    Note: Templates can only be used in the same AE/ARA-System where the Action Pack was created if they are installed via the Package Manager.