[jboss-user] [JBoss jBPM] - Re: Validating user input

2007-06-14 Thread ricardomarques
"roccolocko" wrote : Although you do can make some validation of this variables with bean shell, I would recomend that you make the validations before you put them on jbpm, for example with Validator in case you are using JSF. That's my ideia! But I need to have something at process design level

[jboss-user] [JBoss jBPM] - Re: Validating user input

2007-06-12 Thread roccolocko
As you may now know, you can store many kinds of variables on the jbpm, since in the desing you're only giving names to them, and not setting types. Although you do can make some validation of this variables with bean shell, I would recomend that you make the validations before you put them on j

[jboss-user] [JBoss jBPM] - Re: Validating user input

2007-06-12 Thread kukeltje
correct, it is not possible to put validation definitions in the processdefinition. A regexp (or anything in line with hibernate validators or whatever) is possible. Maybe reusing those kinds of validations is the most interesting. Putting it on the domainmodel is imo good practice. View the o

[jboss-user] [JBoss jBPM] - Re: Validating user input

2007-06-12 Thread ricardomarques
So using bean shell script on process definition is the best way to do it? On that case the validation is on the script, and i wanted at the user level. I was thinking on defining a regular expression on jpdl that I could access throut the API, and validate on user level, don't know if it is th

[jboss-user] [JBoss jBPM] - Re: Validating user input

2007-06-12 Thread kukeltje
correct, you cannot realy declare them, but a 'script' can be used to set variables including (value and also type) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053639#4053639 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=

[jboss-user] [JBoss jBPM] - Re: Validating user input

2007-06-12 Thread estaub
... to be more explicit - you can't declare variable types, but the "only string variables" is way off. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053571#4053571 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=405357

[jboss-user] [JBoss jBPM] - Re: Validating user input

2007-06-12 Thread estaub
anonymous wrote : From what i have get until now, please correct me if I am wrong, at process design level, we can't declare variable types, only string variables, so... in some cases those strings must be cast\converter to other formats on the java code (actions). | No. Please read the use