You are viewing limited content. For full access, please sign in.

Question

Question

starting rule

asked on August 12, 2015

I thought workflow could accept either/or statements in a starting rule.  Workflow appears to be reading the second group as “all” conditions must be met – but I have indicated “any” - based on the error message.

I tried two variations:

  1.        If all of these conditions are true

         Entry : Path equals \BUILD DOCUMENTS\TAP/MAP
         Entry : Template Name equals TAP/MAP EMPLOYMENT
         Entry : Field (NAME_FIRST) is not empty
         Entry : Field (NAME_LAST) is not empty
         Entry : Field (Program Type) is not empty
         Entry : Field (Packet Type) is not empty
                 If any of these conditions are true
                Entry : Field (TAP/MAP EMPLOYMENT - SSN) is not empty
                Entry : Field (EmployeeID) is not empty

Error message:

     [FALSE] If all of these conditions are true:

                [TRUE] Entry Field [TAP/MAP EMPLOYMENT - SSN]:  '123456' <is greater than> '0'
                [FALSE] Entry Field [EmployeeID]:  [Empty] <is greater than or equal to> '0'

0 0

Replies

replied on August 12, 2015 Show version history

It looks like your top field is on the same level as the entries below it. If that happens you are going to have issues.

 

It should look roughly like this:

So each of your evaluations that are inside a condition should be indented under that condition. If they are not indented one level deeper this won't happen. So in my example above lines 1, 2 and 6 all have to match, as well as at least any of 4 & 5. I also put the Template check at the end because all of the other evalulations can resolve without having to look up something in SQL - to determine the template name or field values it has to make a call to sql to retrieve the data. The user/path/name/document type are all things that the rule inheritetly knows when it checks your starting rules. Doing it this way makes evaluating faster, especially if you have lots of workflows as the rule checking stops the first time something doesn't match. 

 

One side note:

You really should consider putting in a  "user does not equal [workflow userID]". This is important to prevent accidental loops!!! Otherwise you could run into a situation where workflow has the capability of triggering itself if one of your rules is set to evaluate "on change" or "on move". This could be triggered by anything workflow does, such as set a field or rename a document. 

 

0 0
replied on August 12, 2015

I've updated my workflow as follows, and still get the same error.  I will also change the template check as you recommended in my next modification.

0 0
replied on August 12, 2015

So when it checks the starting rules and you look at the log does it still say

 

[FALSE] If all of these conditions are true:

                [TRUE] Entry Field [TAP/MAP EMPLOYMENT - SSN]:  '123456' <is greater than> '0'
                [FALSE] Entry Field [EmployeeID]:  [Empty] <is greater than or equal to> '0'

 

You should be able to look at this by opening up workflow admin, going to subscribers, highlighting you server and clicking "show subscriber trace log"

 

 

 

 

0 0
replied on August 12, 2015

Updates to starting rules take up to 30 seconds after publishing to go live.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.