Oracle Migration Tool On Demand Guide > Migrating Workflow Rules and Action Sets > Migrating Workflow Action Sets >

Extracting Workflow Action Sets That Are Related to a Workflow Rule Set


This topic describes how to extract all action sets that are related to a rule set from your Oracle CRM On Demand server for your environment; that is, a customer test environment or production environment.

One WorkflowActionSet.xml file is extracted for each action set identified by the input record type, trigger event, and parent record type. The output for each action set matches the data that is extracted if a specific Read operation is used to retrieve the action set.

The output WorkflowActionSet.xml file is saved to the following directory:

  • If the ParentRecordType parameter has an empty value, then the output is saved to the following directory:

    migration tool install/repository/WorkflowActionSet/RecordType/TriggerEvent.xml

  • If the ParentRecordType parameter does not have an empty value, then the output is saved to the following directory:

    migration tool install/repository/WorkflowActionSet/RecordType/ParentRecordType/TriggerEvent.xml

Authenticated users can extract a specific workflow action set. The Read operation can read any existing action set even if the authenticated user does not have access to the object or trigger event for the specified workflow.

Syntax

The following is the syntax for using the Oracle Migration Tool On Demand client to extract workflow action sets that are related to a workflow rule set:

migrationtool -u UserID -s ServerURL ReadForRuleSet WorkflowActionSet RecordType TriggerEvent [ParentRecordType]

where:

  • UserID is the user sign-in ID that has the appropriate privileges to run the Oracle Migration Tool On Demand client commands.
  • ServerURL is the URL for the Oracle CRM On Demand server where your company resides.
  • RecordType is the system name of the Oracle CRM On Demand record type (object) for the workflow rule. If the string contains spaces, then it must be enclosed with quotation marks.
  • TriggerEvent is the language-independent code (LIC) for the event type, see Table 55.
  • ParentRecordType is the system name of the Oracle CRM On Demand parent record type (object). If the string contains spaces, then it must be enclosed with quotation marks.

NOTE:  The Oracle Migration Tool On Demand client requests your Oracle CRM On Demand password, which can be redirected (by using the pipe command) to the client program from standard input; that is, from a file, from the command line, or from another program.

Example of Extracting Workflow Action Sets That Are Related to a Workflow Rule Set

The following is an example of extracting workflow action sets that are related to a workflow rule set, when a new Account record is saved:

migrationtool -u UserID -s ServerURL ReadForRuleSet WorkflowActionSet Account WriteRecordNew

Oracle Migration Tool On Demand Guide, Release 37 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.