论坛新手。我在特定日期启动工作流程时遇到问题。当用户获得新设备时,我希望得到客户的反馈。
条件/行动 Ultrabook已部署到最终用户=是 调查电子邮件发送=标记以消除用户在将来更新的情况下接收多封电子邮件。 暂停直到调查分发日期 - 这是一个计算字段,它占用部署日期并为其添加14天。格式是日期和时间 当前项目中的更新项目将Survey Email Sent列更新为是。
我似乎无法在14天的时间内将调查结果发送到调查分发日期"等于当前日期。我觉得我错过了一些东西......任何帮助都会非常感激。
阶段:第1阶段
If Current Item:Ultrabook deployed Y/N equals Yes
and Current Item:Survey Email Sent equals No
Pause until Current Item:Survey Distribution Date
If Current Item:Survey Distribution Date equals (ignoring time) Today
Email Current Item:Recipient
Update item in Current Item
过渡到舞台 转到工作流程结束
答案 0 :(得分:0)
暂停,直到仅获取'当前项目:调查分发日期'的初始值。考虑到了。填写部署日期后,调查分发日期的值也将更新,但暂停直到不会使用此值。
您将获得某种循环功能。最好的方法是使用' Transition to Stage' (因为它支持多种条件)并让它循环回来#39;如果满足所有条件,则到同一阶段的开始:
**Stage: WAITING**
Pause for 1 days, 0 hours, 0 minutes
Transition to Stage
If Current Item:Ultrabook deployed Y/N equals Yes
and Current Item:Survey Email Sent equals No
and Current Item:Survey Distribution Date is greater than Today
Go to SENDING THE EMAIL
Else
Go to WAITING
**Stage: SENDING THE EMAIL**
Email Current Item:Recipient
Transition to stage
Go to End of Workflow
答案 1 :(得分:0)
抱歉,我不知道如何将图片或代码放入评论栏中......非常令人困惑......
这是我正在使用的代码。这有意义吗?
Stage:Stage 1
Loop: 1
The contents of this loop will run repeatedly while: Current Item:Survey Distribution Date is less than 1901-01-13 12:00:00
Pause until Current Item:Survey Distribution Date
If Current Item:Survey Distribution Date equals (ignoring time) Today
and Current Item:Survey Email Sent equals No
and Current Item:Ultrabook deployed Y/N equals Yes
Email Current Item:Recipient
Update item in Current Item
过渡到舞台 转到工作流程结束