Monday, June 14, 2010

Has Microsoft Redefined the Order of Operations in Workflow Designer? !

Has Microsoft Redefined the Order of Operations in Workflow Designer?






We were recently reviewing the content for a new InfoPath workflow course (Mission: Automation) here at SharePoint Solutions when it was brought to my attention that the Workflow Designer in SharePoint Designer appears to have redefined the order of operations for Boolean expressions.

If you take a look at the conditions in the Workflow Designer for a simple case where we're creating a condition on the title field, you'll notice we have the Boolean expression:

title field contains "meeting" OR title field contains "lunch" AND title field contains "manager"

I learned the order of operations as BNAO (brackets, not, and, or). Since there are no brackets or parenthesis in the user interface, I can only assume that the correct way to interpret this condition expression is:

(title field contains "lunch" AND title field contains "manager") OR (title field contains "meeting")




However, when you do the testing within SharePoint, you find the order of operations interpreted within Workflow Designer as:

(title field contains "meeting" OR title field contains "lunch") AND (title field contains "manager")

as indicated by the results in the following screen shot. The "completed" workflows represent the cases where the Boolean expression evaluated as false and the "in progress" workflows represent the cases where the Boolean expression evaluated as true.




Somebody help me here! Has Microsoft redefined how Boolean expressions are evaluated or am I missing something about the way the expression is displayed that should cause me to adjust my perspective?




No comments:

Post a Comment