<?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>
|
<flowTransactionModel>CurrentTransaction</flowTransactionModel>
|
<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>
|
<flowTransactionModel>CurrentTransaction</flowTransactionModel>
|
<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>54.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>月度债券先款标识变更</description>
|
<formulas>
|
<processMetadataValues>
|
<name>originalFormula</name>
|
<value>
|
<stringValue>PRIORVALUE([Advance_Payment__c].Status__c ) != '已提交' && TEXT([Advance_Payment__c].Status__c ) = '已提交'&&[Advance_Payment__c].RecordType.Name ='先款标识变更'</stringValue>
|
</value>
|
</processMetadataValues>
|
<name>formula_myRule_1</name>
|
<dataType>Boolean</dataType>
|
<expression>PRIORVALUE({!myVariable_current.Status__c} ) != '已提交' && TEXT({!myVariable_current.Status__c} ) = '已提交'&&{!myVariable_current.RecordType.Name} ='先款标识变更'</expression>
|
</formulas>
|
<formulas>
|
<processMetadataValues>
|
<name>originalFormula</name>
|
<value>
|
<stringValue>PRIORVALUE([Advance_Payment__c].Status__c ) != '已提交' && TEXT([Advance_Payment__c].Status__c ) = '已提交'&&[Advance_Payment__c].RecordType.Name ='月度债权先款标识变更'</stringValue>
|
</value>
|
</processMetadataValues>
|
<name>formula_myRule_3</name>
|
<dataType>Boolean</dataType>
|
<expression>PRIORVALUE({!myVariable_current.Status__c} ) != '已提交' && TEXT({!myVariable_current.Status__c} ) = '已提交'&&{!myVariable_current.RecordType.Name} ='月度债权先款标识变更'</expression>
|
</formulas>
|
<interviewLabel>MonthlyPaymentChanges2-1_InterviewLabel</interviewLabel>
|
<label>债权先款标识变更(审批)</label>
|
<processMetadataValues>
|
<name>ObjectType</name>
|
<value>
|
<stringValue>Advance_Payment__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>Advance_Payment__c</objectType>
|
</variables>
|
<variables>
|
<name>myVariable_old</name>
|
<dataType>SObject</dataType>
|
<isCollection>false</isCollection>
|
<isInput>true</isInput>
|
<isOutput>false</isOutput>
|
<objectType>Advance_Payment__c</objectType>
|
</variables>
|
</Flow>
|