dh-pipelines/force-app/main/default/flows/Opportunity_Status_Change-1...

215 строки
7.8 KiB
XML
Исходник Постоянная ссылка Обычный вид История

2017-07-26 18:15:32 +03:00
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<actionCalls>
<processMetadataValues>
<name>apexSelection</name>
<value>
<stringValue>Post to Slack</stringValue>
</value>
</processMetadataValues>
<name>myRule_1_A1</name>
<label>Post to Slack</label>
<locationX>100</locationX>
<locationY>200</locationY>
<actionName>SlackOpportunityPublisher</actionName>
<actionType>apex</actionType>
<inputParameters>
<processMetadataValues>
<name>dataType</name>
<value>
<stringValue>ID</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>isRequired</name>
<value>
<booleanValue>false</booleanValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>leftHandSideLabel</name>
<value>
<stringValue>opportunityId</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>maxOccurs</name>
<value>
<numberValue>1.0</numberValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>objectType</name>
<value>
<stringValue></stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>rightHandSideType</name>
<value>
<stringValue>Reference</stringValue>
</value>
</processMetadataValues>
<name>opportunityId</name>
<value>
<elementReference>myVariable_current.Id</elementReference>
</value>
</inputParameters>
</actionCalls>
<assignments>
<name>myVariable_waitStartTimeAssignment</name>
<label>myVariable_waitStartTimeAssignment</label>
<locationX>0</locationX>
<locationY>0</locationY>
<assignmentItems>
<assignToReference>myVariable_waitStartTimeVariable</assignToReference>
<operator>Assign</operator>
<value>
<elementReference>$Flow.CurrentDateTime</elementReference>
</value>
</assignmentItems>
<connector>
<targetReference>isChangedDecision2_myRule_1_StageName</targetReference>
</connector>
</assignments>
<decisions>
<name>isChangedDecision2_myRule_1_StageName</name>
<label>isChangedDecision2_myRule_1_StageName</label>
<locationX>0</locationX>
<locationY>0</locationY>
<defaultConnector>
<targetReference>myDecision</targetReference>
</defaultConnector>
<defaultConnectorLabel>default</defaultConnectorLabel>
<rules>
<name>isChangedRule_2_myRule_1_StageName</name>
<conditionLogic>and</conditionLogic>
<conditions>
<leftValueReference>myVariable_old</leftValueReference>
<operator>IsNull</operator>
<rightValue>
<booleanValue>false</booleanValue>
</rightValue>
</conditions>
<conditions>
<leftValueReference>myVariable_old.StageName</leftValueReference>
<operator>NotEqualTo</operator>
<rightValue>
<elementReference>myVariable_current.StageName</elementReference>
</rightValue>
</conditions>
<connector>
<targetReference>myDecision</targetReference>
</connector>
<label>isChangedRule_2_myRule_1_StageName</label>
</rules>
</decisions>
<decisions>
<processMetadataValues>
<name>index</name>
<value>
<numberValue>0.0</numberValue>
</value>
</processMetadataValues>
<name>myDecision</name>
<label>myDecision</label>
<locationX>50</locationX>
<locationY>0</locationY>
<defaultConnectorLabel>default</defaultConnectorLabel>
<rules>
<name>myRule_1</name>
<conditionLogic>and</conditionLogic>
<conditions>
<processMetadataValues>
<name>inputDataType</name>
<value>
<stringValue>Boolean</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>Boolean</stringValue>
</value>
</processMetadataValues>
<leftValueReference>isChangedRule_2_myRule_1_StageName</leftValueReference>
<operator>EqualTo</operator>
<rightValue>
<booleanValue>true</booleanValue>
</rightValue>
</conditions>
<connector>
<targetReference>myRule_1_A1</targetReference>
</connector>
<label>Stage Change?</label>
</rules>
</decisions>
<description>When the status of an opportunity changes, post the new status to Slack</description>
<interviewLabel>Opportunity_Status_Change-1_InterviewLabel</interviewLabel>
<label>Opportunity Status Change</label>
<processMetadataValues>
<name>ObjectType</name>
<value>
<stringValue>Opportunity</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>myVariable_waitStartTimeAssignment</startElementReference>
<variables>
<name>myVariable_current</name>
<dataType>SObject</dataType>
<isCollection>false</isCollection>
<isInput>true</isInput>
<isOutput>true</isOutput>
<objectType>Opportunity</objectType>
</variables>
<variables>
<name>myVariable_old</name>
<dataType>SObject</dataType>
<isCollection>false</isCollection>
<isInput>true</isInput>
<isOutput>false</isOutput>
<objectType>Opportunity</objectType>
</variables>
<variables>
<name>myVariable_waitStartTimeVariable</name>
<dataType>DateTime</dataType>
<isCollection>false</isCollection>
<isInput>false</isInput>
<isOutput>false</isOutput>
<value>
<elementReference>$Flow.CurrentDateTime</elementReference>
</value>
</variables>
</Flow>