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 ....
Comments
2 comments
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
Did this resolve your issue?
Please sign in to leave a comment.