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

Elements and Sections in the Workflow Rules Output File


Table 57 describes the elements and sections in the workflow rules XML file.

Table 57. Elements and Sections in the Workflow Rules XML File
Element or Section
Description

<data:TriggerEvent>WriteRecordNew
</data:TriggerEvent>

<TriggerEvent> specifies the trigger event code that triggers the workflow.

<data:ParentRecordType></data:ParentRecordType>

(Optional.) <ParentRecordType> specifies the system name of the parent record type. It is specified if the trigger event is Associate or Dissociate. See Oracle CRM On Demand Online Help or the Workflow UI for the valid combination of RecordType, TriggerEvent, and ParentRecordType.

<data:WorkflowRule>
. . .
</data:WorkflowRule>

The <WorkflowRule> section contains the elements for one workflow rule.

<data:WorkflowRule>
. . .
  <data:WorkflowName>Opportunity Rule
  </data:WorkflowName>
. . .
/data:WorkflowRule>

<WorkflowName> specifies the name of the workflow rule. This field has a maximum of 50 characters.

<data:WorkflowRule>
. . .
  <data:Active>true</data:Active>
. . .
</data:WorkflowRule>

<Active> specifies whether the rule is active (true) or inactive (false).

<data:WorkflowRule>
. . .
  <data:Exit>false</data:Exit>
. . .
</data:WorkflowRule>

<Exit> specifies whether Oracle CRM On Demand exits the sequence of workflow rules after this rule is executed (true), or does not exit the sequence of workflow rules after this rule is executed (false).

<data:WorkflowRule>
. . .
  <data:WorkflowRuleCondition>[{Primary Revenue Win Probability}]>=LookupValue("PROB", "90")
  </data:WorkflowRuleCondition>
. . .
</data:WorkflowRule>

<WorkflowRuleCondition> is a valid expression, as defined in the Oracle CRM On Demand Online Help, that defines a rule for performing workflow actions. This field has a maximum of 2048 characters. In this example, the condition specifies that the actions are performed if the Probability % field on the new opportunity is set to 90 or higher.

<data:WorkflowRule>
. . .
  <data:CancelSave>false</data:CancelSave>
. . .
</data:WorkflowRule>

<CancelSave> specifies whether the Cancel Save processing is performed (true) if the condition on the workflow rule is not met, or is not performed (false). The Workflow Cancel Save privilege is required to upsert a workflow rule set that contains the <CancelSave> element.

<data:WorkflowRule>
. . .
  <data:Order>1</data:Order>
. . .
</data:WorkflowRule>

<Order> is the order number for the workflow rule. It determines the order in which Oracle CRM On Demand invokes a sequence of workflow rules that are based on the same record type and the same trigger event, and if applicable, on the same parent record type.

<data:WorkflowRule>
. . .
  <data:DisplayMessage></data:DisplayMessage>
. . .
</data:WorkflowRule>

<DisplayMessage> specifies the message that is returned to the user or Web service if the condition on the rule is not met, and <CancelSave> is set to true for the rule. This field has a maximum of 1999 characters.

<data:WorkflowRule>
. . .
  <data:Description>Workflow Rule for new opportunities with probability at 90% or higher
  </data:Description>
</data:WorkflowRule>

<Description> contains additional information about the workflow rule.

<data:ListOfWorkflowTranslations>
. . .
</data:ListOfWorkflowTranslations>

The <ListOfWorkflowTranslations> section contains the translation values for the workflow Cancel Save message.

<data:ListOfWorkflowTranslations>
  <data:WorkflowTranslation>
    <data:LanguageCode>ENU</data:LanguageCode>
    <data:DisplayMessageTranslation>This Record can not be updated, since workflow Cancel Save (Acc_WF_2 ) is in Active status.
    </data:DisplayMessageTranslation>
  </data:WorkflowTranslation>
  <data:WorkflowTranslation>
    <data:LanguageCode>ENG</data:LanguageCode>
    <data:DisplayMessageTranslation>This Record can not be updated.
    </data:DisplayMessageTranslation>
  </data:WorkflowTranslation>
. . .
</data:ListOfWorkflowTranslations>

The <WorkflowTranslation> section contains the translation values of the workflow Cancel Save message for one language:

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