<img height="1" width="1" style="display:none;" alt="" src="https://dc.ads.linkedin.com/collect/?pid=287945&amp;fmt=gif">

Custom step validation in FlowWright

Posted by Dileepa WIjayanayake on Feb 27, 2019 7:20:00 AM

As you may know, you can build custom steps to do anything that you want them to do, and use them within workflows.  Many of our customers build custom steps to perform certain functionality within workflows, but what about the validation of these step inputs? We explain how it works here.

Custom step validation can be easily implemented within the step. First, implement the step use the interface "deIStep2".  This will let you implement a new "validate" method in your step.  Here's an example of implementing the "validate" method looks like:

The above method offers a validation context and a hash table containing a list of inputs and their values.  As you can see from the code, the validation code will check if there are values for "routeTo" and "routeToRoles" inputs to ensure these have values. Once all set the method returns a clsStepValidation object back from the function.

FlowWright is all about simplicity,  and as you can see from the above example we have made custom step validation extremely simple to implement.  Use custom validation to make sure what users configure on step properties are correct values.

New Call-to-action

Topics: Custom Workflow Steps, code