Community

Flexicapture - Workflow - stage - entry conditions

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 ....

Was this article helpful?

0 out of 0 found this helpful

Comments

2 comments

  • Avatar
    Matthew Harper

    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 

    0
  • Avatar
    Matthew Harper

    Did this resolve your issue?

    0

Please sign in to leave a comment.