Home
ServiceCommunicator | Area:
Log in or sign up |
YouAtNotes Workflow

Deliver new workflows fast. Equip existing apps with workflow functionality in minutes. For Lotus Notes and the web. On one server, spanned over locations or even offline.



Archana Lakhani created this feedback 6 months ago and is curious.
Completed: How can I configure the workflow engine to do validation check before startin...
published 3/24/10
How can I configure the workflow engine to do validation check before starting the workflow (e.g., check for mandatory fields, or check certain conditions are met before the user can approve)


Julian Buss has replied 6 months ago and is happy.
3/24/10, 10:39 AM

the best way is to use our ynFieldValidator class in the form like this:

in Options:
use ".yn.lscript.tools.fieldValidator"

in Declare section:
public validator as ynFieldValidator

in QueryOpen:
---
set validator = new ynFieldValidator
validator.add("myfield", "some label for the field", "", "") ' this checks if a field is empty
validator.add("myotherfield", "some label for the other field", "myotherfield > 100", "Give a value > 100") ' this evals a domino formula against the field
---

and in querySave:
---
continue = validator.run()
---

So in short, the validation takes place in the form in the workflow application, not in the workflow engine.

Since this feedback is closed, you cannot add any more replies.

This site runs with the software YouAtNotes Service Communicator. Get ideas and praise from your customers. Learn about questions and problems. Provide world class support in the Web.
Buy or rent Service Communicator.