工作流当前项目布尔值不起作用 [英] Workflow Current Item Boolean does not work

查看:35
本文介绍了工作流当前项目布尔值不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人遇到过这种情况.

I'm wondering if anyone has run into this situation.

我有一个在 SharePoint 2013 托管网站上运行的 2010 工作流.

I have a 2010 workflow running on a SharePoint 2013 hosted site.

我正在检查工作流中的布尔字段.布尔值在列表中正确设置为 true,我的日志语句实际上显示该字段设置为 true.日志中没有错误.

I am checking for a boolean field in the workflow. The boolean is set correctly in the list as true and my log statement does in fact show the field is set to true. There are no errors in the log.

我的 IF 语句下面的代码应该会触发,但它永远不会触发.什么可能导致这不起作用?

The code below my IF statement should fire but it never does. What could cause this not to work?

如果当前项目:重新提交等于是

谢谢!

推荐答案

我有一个很长的 2010 SPD 工作流程,其中包含大量布尔 IF 逻辑.工作流程在我开发时运行良好,但在某些时候布尔逻辑停止正常运行.我不知道为什么.

I have a very long 2010 SPD workflow with tons of Boolean IF logic. The workflow worked beautifully as I was developing it, but at some point the Boolean logic stopped behaving correctly. I have no idea why.

我的解决方案我改变了我的 If 语句来测试相反的条件,它们都有效.因此,例如,如果我想测试 SharePoint 列表是/否变量是否为是":

INSTEAD OF - 如果当前项目:YourColumn 等于 Yes

我使用 - 如果当前项目:YourColumn 不等于 No

MY SOLUTION I changed my If statements to test for the opposite condition and they all worked. So, for example if I wanted to test if a SharePoint List Yes/No variable was "Yes":

INSTEAD OF - If Current Item:YourColumn equals Yes

I USE - If Current Item:YourColumn not equals No

现在只要我能在逻辑中保持头脑清醒,一切都可以正常工作.

Everything now works as long as I can keep my head on straight as I work my way through the logic.

这篇关于工作流当前项目布尔值不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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