CRM2011工作流:如果在工作流启动后更新了在工作流条件下使用的字段,该怎么办? [英] CRM2011 Workflow: What happens if the field which is used in the condition of the workflow is updated after the workflow has started?

查看:115
本文介绍了CRM2011工作流:如果在工作流启动后更新了在工作流条件下使用的字段,该怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

示例:假设我有一个工作流,该工作流在保修期结束前2天发送电子邮件。
此工作流程是在实体的创建上触发的。

Example: Lets say I have a workflow which send an email 2 days before warranty enddate. This workflow is triggered on the "Created" of a entity.

step 1: wait condition - process timeout < (warrantyendate - 2)
     after wait: send email.

因此,在创建记录时,将启动工作流程。但是,当用户返回并更新保修终止日期时会发生什么。

So when the record is created, the workflow is started. But what happens when the user goes back and updates the warranty enddate.

工作流是否检查了更新的保修终止日期还是仍在使用终止日期?

Does the workflow check the updated warranty enddate or does it still use the enddate entered when it was triggered (i.e the initial on create value)?

推荐答案

我的理解是

这里要注意的重要一点是,工作流可以多次执行,这些时候系统中的数据可以不同。 Crm缓存工作流的状态,但不缓存数据。 Microsoft Dynamics CRM 2011的流程体系结构对此进行了描述。

The important thing to take note here is that a workflow can be executed many times, at these times the data in the system can be different. Crm caches the state of the workflow, but not the data. Process Architecture for Microsoft Dynamics CRM 2011 describes this.

因此,每次检查过程超时条件时,它将使用保修结束日期的当前值。如果值被更改,则下次检查条件时将使用新值。

So, each time the process timeout condition is checked it will use the current value of warrantyEndDate. If the value is changed, next time the condition is checked the new value will be used.

在任何情况下,如@ BenPatterson1建议的那样,您最好测试一下当然。

In any case as @BenPatterson1 suggests, you are probably best just testing to be sure.

这篇关于CRM2011工作流:如果在工作流启动后更新了在工作流条件下使用的字段,该怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆