<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>OPD_Cancel_Email</fullName>
|
<description>OPD取消成功后给OPD担当发邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>OPDPlan/OPDPlanCancel</template>
|
</alerts>
|
<alerts>
|
<fullName>opd_cancel_yanqi</fullName>
|
<description>opd计划取消/延期提交后,给备品中心窗口发邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Fieldemail__c</field>
|
<type>email</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>OPDPlan/opd_quxiao_yanqi</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>ActionFieldUpdatec</fullName>
|
<description>获取备品中心的电子邮件地址</description>
|
<field>Fieldemail__c</field>
|
<formula>CancelOPDPlan__r.Loaner_centre_mail_addressF__c</formula>
|
<name>更新电子邮件地址</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>ApplyTypeFCopyT</fullName>
|
<description>申请提交前通过公式判断提前还是延期,并公式考文本到申请类型里</description>
|
<field>ApplyType__c</field>
|
<formula>ApplyType_F__c</formula>
|
<name>申请类型_公式拷文本</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>ExtensionPlanStatusUpdate</fullName>
|
<field>Status__c</field>
|
<literalValue>延期成功</literalValue>
|
<name>延期状态更新</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>StatusUpdate1</fullName>
|
<field>Status__c</field>
|
<literalValue>取消成功</literalValue>
|
<name>状态更新</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>OPD计划取消成功后通知</fullName>
|
<actions>
|
<name>OPD_Cancel_Email</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<booleanFilter>1 AND 2</booleanFilter>
|
<criteriaItems>
|
<field>CancelPostponePlan__c.Status__c</field>
|
<operation>equals</operation>
|
<value>取消成功</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>CancelPostponePlan__c.if_HaveRental_Apply__c</field>
|
<operation>equals</operation>
|
<value>真</value>
|
</criteriaItems>
|
<description>opd取消成功之后给opd担当发邮件</description>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>opd_up_email2</fullName>
|
<actions>
|
<name>ActionFieldUpdatec</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<description>更新字段获取备品申请的邮件地址到电子邮件字段</description>
|
<formula>true</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>opd计划取消%2F延期申请</fullName>
|
<actions>
|
<name>opd_cancel_yanqi</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>CancelPostponePlan__c.Status__c</field>
|
<operation>equals</operation>
|
<value>延期提交</value>
|
</criteriaItems>
|
<description>opd计划延期提交后,给备品中心窗口发邮件</description>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>赋值申请类型%28公式拷文本%29</fullName>
|
<actions>
|
<name>ApplyTypeFCopyT</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<booleanFilter>1 OR 2 OR 3 OR (4 AND 5)</booleanFilter>
|
<criteriaItems>
|
<field>CancelPostponePlan__c.Status__c</field>
|
<operation>equals</operation>
|
<value>延期报告</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>CancelPostponePlan__c.Status__c</field>
|
<operation>equals</operation>
|
<value>取消,提交,取消成功</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>OPDPlan__c.OPDType__c</field>
|
<operation>equals</operation>
|
<value>学会</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>CancelPostponePlan__c.Status__c</field>
|
<operation>equals</operation>
|
<value>延期成功</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>CancelPostponePlan__c.cancelReasonCombobox__c</field>
|
<operation>equals</operation>
|
<value>系统自动延期</value>
|
</criteriaItems>
|
<description>申请提交前通过公式判断提前还是延期,并公式考文本到申请类型里</description>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
</Workflow>
|