Topic
  • 5 replies
  • Latest Post - ‏2013-09-23T07:43:59Z by edling
SystemAdmin
SystemAdmin
7615 Posts

Pinned topic 8.0.1 Single validation service for multiple boundary events

‏2013-01-23T12:05:40Z |
Hi,

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?

Thanks
Updated on 2013-01-23T15:10:49Z at 2013-01-23T15:10:49Z by vedoonam
  • SystemAdmin
    SystemAdmin
    7615 Posts

    Re: 8.0.1 Single validation service for multiple boundary events

    ‏2013-01-23T14:30:35Z  
    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.

    #Todor
  • vedoonam
    vedoonam
    8 Posts

    Re: 8.0.1 Single validation service for multiple boundary events

    ‏2013-01-23T15:10:49Z  
    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.

    Thanks,
    Manoo
  • tonysuen
    tonysuen
    2 Posts

    Re: 8.0.1 Single validation service for multiple boundary events

    ‏2013-06-15T07:14:15Z  
    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.

    #Todor

    See my answer to https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014932214

    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
    atummidi
    41 Posts

    Re: 8.0.1 Single validation service for multiple boundary events

    ‏2013-09-20T23:10:55Z  
    • tonysuen
    • ‏2013-06-15T07:14:15Z

    See my answer to https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014932214

    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.

    Hi,

    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
    edling
    286 Posts

    Re: 8.0.1 Single validation service for multiple boundary events

    ‏2013-09-23T07:43:59Z  
    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.

    #Todor

    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.