Exporting workflows as text

A workflow can be exported from the Workflow Builder application to a text file. This text file contains a text-based model of the workflow logic.

About this task

You might find it useful to export two revisions of the same workflow to compare the changes that were made from one revision to the next. You can use a comparison tool to analyze the text files and identify differences between revisions. When you analyze a workflow that is exported as text, you can evaluate the entire workflow. If you analyze a workflow from the Workflow Builder user interface, you can access one task of the workflow at a time.

Procedure

  1. Select a workflow from the main List Template view, or the List All Revisions view of the Workflow Builder application.
    Only one workflow can be exported at a time.
  2. Click Text Export. Specify a location and file name to save the file to the system.
    Individual workflows are saved with a .cld file extension.
  3. Use a text editor to examine the exported workflow.

Example

In this example, the My Profile - Create workflow is shown as it appears in the Workflow Builder application and then as it appears when exported as text.

Figure 1. Application Builder workflow
The image is explained in the text.
Figure 2. Application Builder workflow properties
The image is explained in the text.
Figure 3. Application Builder Workflow exported as text
/*
 *  Generated from System: "My Profile - Create"
 *  Workflow Version: 10
 *  Workflow Status: "Published"
 * 
 *  Generator Version: 1
 */

/**
 * Updates the Group and License Access sections
 */
Start ( ) 
[
    mbo("triPeople.My Profile");
    name("My Profile - Create");
    async("CREATE");
    propagateIntegrationStatus
]

/**
 * 
 * @label Get triPeople record
 */
RetrieveRecords GetTriPeopleRecord
[
    mbo(triPeople.triPeople);
    from(Start.record, useAssociation("Associated To", triPeople.triPeople))
]

If (GetTriPeopleRecord.record.Detail.triInitialPwdResetBL == "TRUE" )  {

    /**
     * 
     * @label WF: Require Password Change Portal Update
     */
    CallWorkflow     (triPeople.My Profile, "My Profile - Synchronous - Require 
Password Change Portal Update")
    [
        mbo("triPeople.My Profile");
        records(Start.record)
    ]
}
Else  {

    /**
     * 
     * @label Update Access My Profile
     */
    TriggerAction
    [
        mbo("triPeople.My Profile");
        formulaRecalc(asNeeded);
        action("UPDATEACCESS");
        target(Start.record);
        triggerActionWhen(immediately)
    ]
}

End