<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>SendRandomVbaPwdMail</fullName>
|
<description>提案书随机密码送信</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Email</field>
|
<type>email</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Olympus_OCM/RandomPasswordAlert</template>
|
</alerts>
|
<alerts>
|
<fullName>Send_Process_Task_Mail</fullName>
|
<ccEmails>zdf@prec-tech.com</ccEmails>
|
<description>发送审批任务清单邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Email</field>
|
<type>email</type>
|
</recipients>
|
<senderAddress>lu_liu@olympus.com.cn</senderAddress>
|
<senderType>OrgWideEmailAddress</senderType>
|
<template>Olympus_OCM/Process_Task_List_Model</template>
|
</alerts>
|
<alerts>
|
<fullName>UnProcessed_Mail_Send_Later_6h</fullName>
|
<description>延迟六小时的审批流提醒邮件发送</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Email</field>
|
<type>email</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Olympus_OCM/Process_Task_List_Model</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>BuchangApprovalManagerIsNull</fullName>
|
<field>BuchangApprovalManager__c</field>
|
<name>用户离职部长(服务)置为空</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>LookupValue</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>BuchangApprovalManagerSalesIsNull</fullName>
|
<field>BuchangApprovalManagerSales__c</field>
|
<name>用户离职部长(销售)置为空</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>LookupValue</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Buchang_sales_text</fullName>
|
<field>BuchangApprovalManagerSalesname__c</field>
|
<formula>BuchangApprovalManagerSales__r.Name__c</formula>
|
<name>部长(销售)文本化</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Buchang_service_text</fullName>
|
<field>BuchangApprovalManagername__c</field>
|
<formula>BuchangApprovalManager__r.Name__c</formula>
|
<name>部长(服务)文本化</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>BuzhangEquipmentManagerIsnull</fullName>
|
<field>Buzhang_Equipment_Manager__c</field>
|
<name>用户离职部长(备品)置为空</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>LookupValue</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>JingliApprovalManagerIsNull</fullName>
|
<field>JingliApprovalManager__c</field>
|
<name>用户离职经理(服务)置为空</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>LookupValue</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>JingliEquipmentManagerIsnullnew</fullName>
|
<field>JingliEquipmentManager__c</field>
|
<name>用户离职经理(备品)置为空</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>LookupValue</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Jingli_sales_text</fullName>
|
<field>SalesManagername__c</field>
|
<formula>SalesManager__r.Name__c</formula>
|
<name>经理(销售)文本化</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Jingli_service_text</fullName>
|
<field>JingliApprovalManagername__c</field>
|
<formula>JingliApprovalManager__r.Name__c</formula>
|
<name>经理(服务)文本化</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>ManagerIsNull</fullName>
|
<field>ManagerId</field>
|
<name>用户离职经理置为空</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>LookupValue</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Reset_Mail_FLG_Later_6h</fullName>
|
<field>Unprocessed_Tack_Flag__c</field>
|
<formula>0</formula>
|
<name>延迟6小时审批流Flag字段重置</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Reset_Mail_Flag</fullName>
|
<description>Send_Or_Not__c</description>
|
<field>Send_Or_Not__c</field>
|
<literalValue>0</literalValue>
|
<name>重置发送开关</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Reset_Mail_SON_Later_6h</fullName>
|
<field>Send_Or_Not__c</field>
|
<literalValue>0</literalValue>
|
<name>延迟6小时是否发送审批流邮件字段重置</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Reset_Task_Flag</fullName>
|
<field>Unprocessed_Tack_Flag__c</field>
|
<formula>0</formula>
|
<name>重置审批流任务数量</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>SalesManagerIsNull</fullName>
|
<field>SalesManager__c</field>
|
<name>用户离职经理(销售)置为空</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>LookupValue</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Salesdepartment_text</fullName>
|
<field>Salesdepartment_text__c</field>
|
<formula>Salesdepartment__c</formula>
|
<name>销售本部文本化</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Salesdepartment_text2</fullName>
|
<description>复制本部(选项)到本部(文本)..</description>
|
<field>Category4__c</field>
|
<formula>Text(Dept__c)</formula>
|
<name>销售本部文本化..</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Stay_or_not</fullName>
|
<field>Stay_or_not__c</field>
|
<literalValue>已离职</literalValue>
|
<name>在职/已离职</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Text_OCSMProvice</fullName>
|
<field>OCM_man_province_Text__c</field>
|
<formula>OCM_man_province__c</formula>
|
<name>OCSM管理省文本化</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>TongkuoZongjianIsNull</fullName>
|
<field>TongkuoZongjian__c</field>
|
<name>用户离职统括总监置为空</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>LookupValue</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>TongkuoZongjianname</fullName>
|
<field>TongkuoZongjianname_text__c</field>
|
<formula>TongkuoZongjian__r.Name__c</formula>
|
<name>统括总监文本化</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Unprocessed_Tack_Flag_FieldUpdate</fullName>
|
<description>未审批任务数量为空时,赋值为0</description>
|
<field>Unprocessed_Tack_Flag__c</field>
|
<formula>0</formula>
|
<name>未审批任务数量赋值</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>ZongjianApprovalManagerIsNull</fullName>
|
<field>ZongjianApprovalManager__c</field>
|
<name>用户离职总监置为空</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>LookupValue</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Zongjiantext</fullName>
|
<field>ZongjianApprovalManagername__c</field>
|
<formula>ZongjianApprovalManager__r.Name__c</formula>
|
<name>总监文本化</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>OCSM管理省文本化</fullName>
|
<actions>
|
<name>Text_OCSMProvice</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>true</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>入职%2F离职状态更改</fullName>
|
<actions>
|
<name>Stay_or_not</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<description>离职标识(后台用)为true时,入职/离职的值改为【已离职】</description>
|
<formula>AND(OR(TODAY() > QuitDate__c , SendToComPlat__c ),TEXT(Stay_or_not__c) != '已离职')</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>发送审批任务清单邮件</fullName>
|
<active>false</active>
|
<criteriaItems>
|
<field>User.Unprocessed_Tack_Flag__c</field>
|
<operation>notEqual</operation>
|
<value>0</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>User.Send_Or_Not__c</field>
|
<operation>equals</operation>
|
<value>真</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>User.Unprocessed_Tack_Flag__c</field>
|
<operation>notEqual</operation>
|
</criteriaItems>
|
<description>暂时禁用</description>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
<workflowTimeTriggers>
|
<actions>
|
<name>UnProcessed_Mail_Send_Later_6h</name>
|
<type>Alert</type>
|
</actions>
|
<actions>
|
<name>Reset_Mail_FLG_Later_6h</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Reset_Mail_SON_Later_6h</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<timeLength>6</timeLength>
|
<workflowTimeTriggerUnit>Hours</workflowTimeTriggerUnit>
|
</workflowTimeTriggers>
|
</rules>
|
<rules>
|
<fullName>批准人信息更新到文本化</fullName>
|
<actions>
|
<name>Buchang_sales_text</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Buchang_service_text</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Jingli_sales_text</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Jingli_service_text</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Salesdepartment_text</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Salesdepartment_text2</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>TongkuoZongjianname</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>Zongjiantext</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>true</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>未审批任务数量更新</fullName>
|
<actions>
|
<name>Unprocessed_Tack_Flag_FieldUpdate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>false</active>
|
<criteriaItems>
|
<field>User.Unprocessed_Tack_Flag__c</field>
|
<operation>equals</operation>
|
</criteriaItems>
|
<description>SWAG-C6NAEV 用于将字段“为审批任务数量”为空值的置零(仅使用整理历史数据)</description>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>离职人员的审批流不再关联系统</fullName>
|
<actions>
|
<name>BuchangApprovalManagerIsNull</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>BuchangApprovalManagerSalesIsNull</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>BuzhangEquipmentManagerIsnull</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>JingliApprovalManagerIsNull</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>JingliEquipmentManagerIsnullnew</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>ManagerIsNull</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>SalesManagerIsNull</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>TongkuoZongjianIsNull</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>ZongjianApprovalManagerIsNull</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>User.IsActive</field>
|
<operation>equals</operation>
|
<value>假</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>User.Stay_or_not__c</field>
|
<operation>equals</operation>
|
<value>已离职</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>随机密码送信</fullName>
|
<actions>
|
<name>SendRandomVbaPwdMail</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>ISCHANGED( VBA_Password__c )</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
</Workflow>
|