涉及创建模板和多个If语句的复杂工作流 [英] Complicated Workflow Involving the Creation of a Template and Multiple If Statements

查看:58
本文介绍了涉及创建模板和多个If语句的复杂工作流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我是SharePoint的新手,并且已经完成了相当复杂的任务。

I am new to SharePoint and have been given a rather complex task.

我正在尝试在我的工作场所设计与QC评估相关的工作流程。该工作流程采用SharePoint列表,然后还创建一个存储在文档库中的Microsoft Word模板(其他人最初认为这就是我们如何设置
)。

I'm trying to design a workflow related to QC assessments in my workplace. The workflow takes a SharePoint list and then also creates a Microsoft Word template that is stored in a document library (Someone else initially decided that this was how we were going to set things up).

基本逻辑是:

如果当前项目是草稿,则通过电子邮件发送给质量控制调查员,让他们知道他们有未完成的草稿。

IF the current item is a draft then email THEN quality control investigator to let them know they have a draft outstanding.

ELSE

从列表中创建一个Word模板并将其保存到文档库然后给人们发电子邮件,让他们知道QC已经完成。

Create a Word template from the list and save it to a document library THEN email people to let them know a QC has been completed.

这没关系,但是我正在制作表格的团队还有其他要求:

This would be fine, but the team I'm making the form for have additional requests:

如果有一个优秀的行动项目那么通过电子邮件发送给QC的人和让他们知道他们需要修理一些东西

IF there is an Outstanding Action Item THEN email the person being QC'd and let them know they need to fix something

如果在QC的人收到上面的电子邮件之后该项目已被重新设置(修复)那么请通过电子邮件向QC审核人员发送电子邮件,让他们知道项目已修复

IF the item has been reworked (fixed) after the person being QC'd has received the email above THEN email the QC reviewer to let them know the item has been fixed

如果QC审核人决定批准该项目新的变化那么电子邮件的人A,B,C。

IF the QC reviewer decides to approve the new changes THEN email person A, B, C.

首先,我在尝试发布工作流时遇到了与IF-ELSE分支有关的错误。我能够在这个论坛上阅读一篇文章并对这类问题进行分类。我现在的问题是关于正确的逻辑。我似乎找不到合适的
方法来嵌套IF语句以达到我想要的结果。

At first, I ran into errors relating to the IF-ELSE branch while trying to Publish the workflow. I was able to read a post on this forum and sort through that type of issue. My issue now is regarding getting the logic right. I can't seem to find a proper way to nest IF statements to achieve my desired results.

这就是我现在所拥有的(道歉,因为我今天刚刚注册了他们不允许我复制和粘贴图片):

This is what I currently have (apologies as I just signed up today and they won't allow me to copy & paste an image):

如果CurrentItem:草稿等于是

If CurrentItem:Draft equals Yes

       然后发送电子邮件X

       then Email X

其他

       创建项目(创建MS Word模板并将其放入库中)。 (输出到:变量创建)

       Create Item in (create the MS Word template and put it in the library). (Output to: Variable Create)

       然后发送电子邮件X,Y,Z。

       then Email X, Y, Z.

如果我在下面创建一个嵌套的IF语句"然后发送电子邮件X,Y ,Z"它说:

If I make a nested IF statement underneath "then Email X, Y, Z" it says:

IF CurrentItem:ActionItem等于是然后向X发送电子邮件,它会发送两封电子邮件。 

IF CurrentItem: ActionItem equals Yes THEN send an email to X, it will send out two emails. 

如果我拿走在我上面的ELSE语句中的第二行,只是把IF语句,它似乎没有运行。

If I take out the second line in my ELSE statement above and just put the IF statement, it doesn't seem to run.

我一直试图找出最好的方法来做到这一点几天了,我不确定我是否可以设计这样的东西与SP 2010的限制?如果有人可以帮助我,我真的非常感谢!

I've been trying to figure out the best way to do this for several days now and I'm not sure I can even design something like this with the limitations of SP 2010? If anyone can help me, I would really, really appreciate it!

推荐答案

你好Jenna,

Hi Jenna,

根据您的描述,我的理解是这样的:

From your description, my understanding is like this:

如果当前项目是草稿

      如果它是一个杰出的行动项目,那么通过电子邮件发送给QC的人并让他们知道他们需要修改一些东西

       If it is an Outstanding Action Item THEN email the person being QC'd and let them know they need to fix something

     否则如果在QC的人收到上面的电子邮件之后该项目已被重新设置(固定),那么请通过电子邮件向QC审阅者发送电子邮件,让他们知道该项目已被修复  ;      
       

      Else if the item has been reworked (fixed) after the person being QC'd has received the email above THEN email the QC reviewer to let them know the item has been fixed               

      否则,如果质量控制审核人决定批准新的更改,则电子邮件人员A,B,C。

       Else if the QC reviewer decides to approve the new changes THEN email person A, B, C.

否则

     ;  从列表中创建一个Word模板并将其保存到文档库然后给人们发电子邮件,让他们知道QC已经完成。

       Create a Word template from the list and save it to a document library THEN email people to let them know a QC has been completed.

您可以尝试这个工作流程:

You could try this workflow:




最诚挚的问候,

Michael Han

Michael Han


这篇关于涉及创建模板和多个If语句的复杂工作流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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