core icon indicating copy to clipboard operation
core copied to clipboard

More Parameter Validation Work

Open wezell opened this issue 14 years ago • 2 comments

Ravi:

What needs to happen here is that in the MultipleApproverActionlet paramList, @ line ~170 in MultipleApproverActionlet.java, you need to instantiate a new MultiEmailParameter rather than a standard WorkflowActionletParameter.

The WfActionClassAjax.java should not do an "if" or know anything about any of the parameters. Instead, in the WfActionClassAjax, loop over the list of the generic WorkflowActionletParameters (from the MultipleApproverActionlet) and call the the hasError() method on each of them. If the return value is a string, rather than null, raise the error (using the returned string) and stop processing. This allows each WorkflowActionletParameter to validate their own parameters as needed without having custom, one-off code in the save method of the WfActionClassAjax.

wezell avatar May 30 '12 18:05 wezell

This issue is fixed in issue-439-change-workflow-parameter-validation.

ravit avatar Jun 04 '12 18:06 ravit

validating user id's and emails on first creation as well as edit now

DeanGonzalez avatar Jun 06 '12 17:06 DeanGonzalez