Skip to content

Instantly share code, notes, and snippets.

@alexed1
Created February 28, 2021 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexed1/f060a1d2e965b55c3ea909c18abcb01e to your computer and use it in GitHub Desktop.
Save alexed1/f060a1d2e965b55c3ea909c18abcb01e to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<actionCalls>
<processMetadataValues>
<name>postTarget</name>
<value>
<stringValue>User User</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>postTargetUserType</name>
<value>
<stringValue>USER</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>textJson</name>
<value>
<stringValue>{&quot;mentions&quot;:[],&quot;message&quot;:&quot;Message Body&quot;}</stringValue>
</value>
</processMetadataValues>
<name>myRule_1_A1</name>
<label>Post to Chatter</label>
<locationX>100</locationX>
<locationY>200</locationY>
<actionName>chatterPost</actionName>
<actionType>chatterPost</actionType>
<inputParameters>
<name>text</name>
<value>
<stringValue>Message Body</stringValue>
</value>
</inputParameters>
<inputParameters>
<name>type</name>
<value>
<stringValue>USER</stringValue>
</value>
</inputParameters>
<inputParameters>
<name>subjectNameOrId</name>
<value>
<stringValue>0052D000004eFtDQAU</stringValue>
</value>
</inputParameters>
</actionCalls>
<decisions>
<processMetadataValues>
<name>index</name>
<value>
<numberValue>0.0</numberValue>
</value>
</processMetadataValues>
<name>myDecision</name>
<label>myDecision</label>
<locationX>50</locationX>
<locationY>0</locationY>
<defaultConnector>
<targetReference>myDecision2</targetReference>
</defaultConnector>
<defaultConnectorLabel>default</defaultConnectorLabel>
<rules>
<name>myRule_1</name>
<conditionLogic>and</conditionLogic>
<conditions>
<processMetadataValues>
<name>inputDataType</name>
<value>
<stringValue>Picklist</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>leftHandSideType</name>
<value>
<stringValue>Picklist</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>operatorDataType</name>
<value>
<stringValue>String</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>rightHandSideType</name>
<value>
<stringValue>Picklist</stringValue>
</value>
</processMetadataValues>
<leftValueReference>myVariable_current.Rating</leftValueReference>
<operator>EqualTo</operator>
<rightValue>
<stringValue>Hot</stringValue>
</rightValue>
</conditions>
<connector>
<targetReference>myRule_1_pmetdec</targetReference>
</connector>
<label>1st Decision Diamond</label>
</rules>
</decisions>
<decisions>
<processMetadataValues>
<name>index</name>
<value>
<numberValue>1.0</numberValue>
</value>
</processMetadataValues>
<name>myDecision2</name>
<label>myDecision2</label>
<locationX>50</locationX>
<locationY>0</locationY>
<defaultConnectorLabel>default</defaultConnectorLabel>
<rules>
<name>myRule_3</name>
<conditionLogic>and</conditionLogic>
<conditions>
<leftValueReference>formula_myRule_3</leftValueReference>
<operator>EqualTo</operator>
<rightValue>
<booleanValue>true</booleanValue>
</rightValue>
</conditions>
<label>2nd Decision Diamond</label>
</rules>
</decisions>
<decisions>
<name>myRule_1_pmetdec</name>
<label>Previously Met Decision</label>
<locationX>100</locationX>
<locationY>100</locationY>
<defaultConnector>
<targetReference>myRule_1_A1</targetReference>
</defaultConnector>
<defaultConnectorLabel>Not Previously Met</defaultConnectorLabel>
<rules>
<name>myRule_1_pmetnullrule</name>
<conditionLogic>or</conditionLogic>
<conditions>
<leftValueReference>myVariable_old</leftValueReference>
<operator>IsNull</operator>
<rightValue>
<booleanValue>true</booleanValue>
</rightValue>
</conditions>
<connector>
<targetReference>myRule_1_A1</targetReference>
</connector>
<label>Previously Met - Null</label>
</rules>
<rules>
<name>myRule_1_pmetrule</name>
<conditionLogic>and</conditionLogic>
<conditions>
<processMetadataValues>
<name>inputDataType</name>
<value>
<stringValue>Picklist</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>leftHandSideType</name>
<value>
<stringValue>Picklist</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>operatorDataType</name>
<value>
<stringValue>String</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>rightHandSideType</name>
<value>
<stringValue>Picklist</stringValue>
</value>
</processMetadataValues>
<leftValueReference>myVariable_old.Rating</leftValueReference>
<operator>EqualTo</operator>
<rightValue>
<stringValue>Hot</stringValue>
</rightValue>
</conditions>
<label>Previously Met - Prev</label>
</rules>
</decisions>
<formulas>
<name>formula_myRule_3</name>
<dataType>Boolean</dataType>
<expression>true</expression>
</formulas>
<interviewLabel>DemoProcess_Story_2_1-1_InterviewLabel</interviewLabel>
<label>DemoProcess-Story 2.1</label>
<processMetadataValues>
<name>ObjectType</name>
<value>
<stringValue>Account</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>ObjectVariable</name>
<value>
<elementReference>myVariable_current</elementReference>
</value>
</processMetadataValues>
<processMetadataValues>
<name>OldObjectVariable</name>
<value>
<elementReference>myVariable_old</elementReference>
</value>
</processMetadataValues>
<processMetadataValues>
<name>TriggerType</name>
<value>
<stringValue>onAllChanges</stringValue>
</value>
</processMetadataValues>
<processType>Workflow</processType>
<startElementReference>myDecision</startElementReference>
<status>Draft</status>
<variables>
<name>myVariable_current</name>
<dataType>SObject</dataType>
<isCollection>false</isCollection>
<isInput>true</isInput>
<isOutput>true</isOutput>
<objectType>Account</objectType>
</variables>
<variables>
<name>myVariable_old</name>
<dataType>SObject</dataType>
<isCollection>false</isCollection>
<isInput>true</isInput>
<isOutput>false</isOutput>
<objectType>Account</objectType>
</variables>
</Flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment