Pinned topic 8.0.1 Single validation service for multiple boundary events
In 8.0.1 there is a validation limitation which ruins otherwise the good intention to finally introduce a standard validation framework in Lombradi/BPM.
"A Coach can use only one validation service or server script to validate its data."
Without any indication which boundary event fired this validation, this validation framework is useless.
Have you found a way to send an indication to the validation service which boundary event triggered the validation call?
SystemAdmin 110000D4XK7615 Posts
Re: 8.0.1 Single validation service for multiple boundary events2013-01-23T14:30:35ZThis is the accepted answer. This is the accepted answer.I found an idea in this link: http://bpmwiki.blueworkslive.com/display/samples/CV+-+Coach+View+Validation
The idea is to bind a boolean variable to the button that was clicked. However:
1) I couldn't find a way to reset this boolean variable from within the validation logic. The example solution with a checkbox bound to the same variable is ... not appropriate.
2) Most of the times boundary events come from component events like , drop-down selection, key press, focus out, etc... Needs to be explored if the same approach is applicable.
vedoonam 270005HFPA8 Posts
Re: 8.0.1 Single validation service for multiple boundary events2013-01-23T15:10:49ZThis is the accepted answer. This is the accepted answer.Hi,
Yes I agree that you can have only one validation service for one coach. I also agree that tw.system.buttonPressed gives you "nullValue".
But you can bind a boolean variable for your button and with that variable you can identify which button is been clicked.
This is what is suggested in bpm wiki and I cant think any other solution for this. Hope it helps.
tonysuen 270000PDKR2 Posts
Re: 8.0.1 Single validation service for multiple boundary events2013-06-15T07:14:15ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
basically, build you own button control based on IBM's but with output of a string that holds the button name instead of the original boolean. Problem solved.
atummidi 270006ETHF41 Posts
Re: 8.0.1 Single validation service for multiple boundary events2013-09-20T23:10:55ZThis is the accepted answer. This is the accepted answer.
- tonysuen 270000PDKR
Good one tony...As per some requirements...some buttons may have same lables on the Coach..
Also label can be attached to a Business Object in which it becomes dynamic ...
So it would be better to use "this.context.viewid"....to solve the above problems..
Nice to see you here ....Expecting more such thought from you
Its me "Anil"
edling 27000569PA286 Posts
Re: 8.0.1 Single validation service for multiple boundary events2013-09-23T07:43:59ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
One can reset the isButtonX/Y/Z booleans in the coach pre-assignment script. One can also set a more neutral buttonPressed String in the post-assignment. Warning: I have observed some irregularities here, especially when there are validation errors and you then press another button.