<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>SMARM</fullName>
|
<ccEmails>Haijuan_Wang@olympus.com.cn</ccEmails>
|
<ccEmails>Yoshihiko_Terabori@olympus.com.cn</ccEmails>
|
<description>SMARMフィードバック</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Review_Practitioner__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Review_Target__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Olympus_OCM/SMARM</template>
|
</alerts>
|
<alerts>
|
<fullName>SmarmEmailAlert</fullName>
|
<ccEmails>Haijuan_Wang@olympus.com.cn</ccEmails>
|
<ccEmails>Yoshihiko_Terabori@olympus.com.cn</ccEmails>
|
<description>活动检视邮件(VF)</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Olympus_OCM/SmarmEmailAlert_VF</template>
|
</alerts>
|
<alerts>
|
<fullName>SmarmEmailAlertToMe</fullName>
|
<description>活动检视邮件_自己(VF)</description>
|
<protected>false</protected>
|
<recipients>
|
<type>creator</type>
|
</recipients>
|
<senderAddress>lu_liu@olympus.com.cn</senderAddress>
|
<senderType>OrgWideEmailAddress</senderType>
|
<template>Olympus_OCM/SmarmEmailAlertToMe_VF</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>Stage_change_to_approved</fullName>
|
<field>Status__c</field>
|
<literalValue>批准</literalValue>
|
<name>状态更新到批准</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Stage_change_to_draft</fullName>
|
<field>Status__c</field>
|
<literalValue>草案中</literalValue>
|
<name>更新状态草案中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Stage_change_to_submit</fullName>
|
<field>Status__c</field>
|
<literalValue>提交</literalValue>
|
<name>状态修改到申请中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Submit_date_blank</fullName>
|
<field>Submit_date__c</field>
|
<name>提交日更新到空</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Null</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_approved_date</fullName>
|
<field>Approved_date__c</field>
|
<formula>today()</formula>
|
<name>更新批准日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_submit_date</fullName>
|
<field>Submit_date__c</field>
|
<formula>today()</formula>
|
<name>更新 提交日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>SMARM已反馈</fullName>
|
<actions>
|
<name>SMARM</name>
|
<type>Alert</type>
|
</actions>
|
<active>false</active>
|
<criteriaItems>
|
<field>SMARM__c.Business_Feedback__c</field>
|
<operation>notEqual</operation>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>活动检视反馈邮件</fullName>
|
<actions>
|
<name>SmarmEmailAlert</name>
|
<type>Alert</type>
|
</actions>
|
<actions>
|
<name>SmarmEmailAlertToMe</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>PRIORVALUE(Status__c) != "填写完毕" && TEXT(Status__c) = "填写完毕"</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
</Workflow>
|