<?xml version="1.0" encoding="UTF-8"?>
|
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<actionCalls>
|
<processMetadataValues>
|
<name>selectionType</name>
|
<value>
|
<stringValue>firstFound</stringValue>
|
</value>
|
</processMetadataValues>
|
<processMetadataValues>
|
<name>submitterType</name>
|
<value>
|
<stringValue>currentUser</stringValue>
|
</value>
|
</processMetadataValues>
|
<name>myRule_1_A1</name>
|
<label>触发批准流</label>
|
<locationX>100</locationX>
|
<locationY>200</locationY>
|
<actionName>submit</actionName>
|
<actionType>submit</actionType>
|
<inputParameters>
|
<name>objectId</name>
|
<value>
|
<elementReference>myVariable_current.Id</elementReference>
|
</value>
|
</inputParameters>
|
<inputParameters>
|
<name>comment</name>
|
</inputParameters>
|
<nameSegment>submit</nameSegment>
|
<versionSegment>1</versionSegment>
|
</actionCalls>
|
<actionCalls>
|
<processMetadataValues>
|
<name>selectionType</name>
|
<value>
|
<stringValue>firstFound</stringValue>
|
</value>
|
</processMetadataValues>
|
<processMetadataValues>
|
<name>submitterType</name>
|
<value>
|
<stringValue>currentUser</stringValue>
|
</value>
|
</processMetadataValues>
|
<name>myRule_3_A1</name>
|
<label>延期触发批准流</label>
|
<locationX>300</locationX>
|
<locationY>200</locationY>
|
<actionName>submit</actionName>
|
<actionType>submit</actionType>
|
<inputParameters>
|
<name>objectId</name>
|
<value>
|
<elementReference>myVariable_current.Id</elementReference>
|
</value>
|
</inputParameters>
|
<inputParameters>
|
<name>comment</name>
|
</inputParameters>
|
<nameSegment>submit</nameSegment>
|
<versionSegment>1</versionSegment>
|
</actionCalls>
|
<apiVersion>50.0</apiVersion>
|
<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>
|
<leftValueReference>formula_myRule_1</leftValueReference>
|
<operator>EqualTo</operator>
|
<rightValue>
|
<booleanValue>true</booleanValue>
|
</rightValue>
|
</conditions>
|
<connector>
|
<targetReference>myRule_1_A1</targetReference>
|
</connector>
|
<label>提交</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>
|
<connector>
|
<targetReference>myRule_3_A1</targetReference>
|
</connector>
|
<label>延期提交</label>
|
</rules>
|
</decisions>
|
<description>OPD计划取消审批点击提交按钮触发审批流,并将状态改为 审批中</description>
|
<formulas>
|
<processMetadataValues>
|
<name>originalFormula</name>
|
<value>
|
<stringValue>And(ISCHANGED([CancelPostponePlan__c].Status__c), ISPICKVAL([CancelPostponePlan__c].Status__c, '提交') ) </stringValue>
|
</value>
|
</processMetadataValues>
|
<name>formula_myRule_1</name>
|
<dataType>Boolean</dataType>
|
<expression>And(ISCHANGED({!myVariable_current.Status__c}), ISPICKVAL({!myVariable_current.Status__c}, '提交') )</expression>
|
</formulas>
|
<formulas>
|
<processMetadataValues>
|
<name>originalFormula</name>
|
<value>
|
<stringValue>And(ISCHANGED([CancelPostponePlan__c].Status__c), ISPICKVAL([CancelPostponePlan__c].Status__c, '延期提交') ) </stringValue>
|
</value>
|
</processMetadataValues>
|
<name>formula_myRule_3</name>
|
<dataType>Boolean</dataType>
|
<expression>And(ISCHANGED({!myVariable_current.Status__c}), ISPICKVAL({!myVariable_current.Status__c}, '延期提交') )</expression>
|
</formulas>
|
<interviewLabel>CancelPostponePlan_shenpi-1_InterviewLabel</interviewLabel>
|
<label>OPD计划取消延期</label>
|
<processMetadataValues>
|
<name>ObjectType</name>
|
<value>
|
<stringValue>CancelPostponePlan__c</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>Active</status>
|
<variables>
|
<name>myVariable_current</name>
|
<dataType>SObject</dataType>
|
<isCollection>false</isCollection>
|
<isInput>true</isInput>
|
<isOutput>true</isOutput>
|
<objectType>CancelPostponePlan__c</objectType>
|
</variables>
|
<variables>
|
<name>myVariable_old</name>
|
<dataType>SObject</dataType>
|
<isCollection>false</isCollection>
|
<isInput>true</isInput>
|
<isOutput>false</isOutput>
|
<objectType>CancelPostponePlan__c</objectType>
|
</variables>
|
</Flow>
|