Flexicapture - Workflow - stage - entry conditions

  • 81 Views
  • Last Post 23 March 2020
A4IT posted this 10 March 2020

Hi,

 

So I'm having trouble understanding the script function in the worklfow setup > entry conditions:

 

Tis is my code example in c#

if(Document.HasWarnings){
    Result.CheckSucceeded = false;
    Result.DocumentComment = "Warnings " + Document.HasWarnings.ToString();

}

 

Basically I want to also filter documents with warnings to go into verification station.

 

Is there a sample script somewhere, because the help documentation seems a bit to short ....

Order By: Standard | Newest | Votes
mharper posted this 18 March 2020

Use 'Result.CheckSucceeded = true' if you want the document to enter this stage and 'Result.CheckSucceeded = false' otherwise. You should really be using an IF-ELSE statement in this block because otherwise Result.CheckSucceeded will be undefined and the workflow won't know what to do with it.

Also, you'll need to move the comment above the checksucceeded line 

mharper posted this 23 March 2020

Did this resolve your issue?

Close