For simple conditional logic, you can bind the “Refresh” property of the command button to a conditional expression that could calculate what to refresh based on your role.
For example using the ternary operator to do an “condition ? value_if_true : value_if_false” statement like this:
#{request.isUserInRole('administrator') ? 'id_if_true' : 'id_if_false'}
Of if your logic becomes more complex, you can do the calculation in a java method in your page bean and bind the “Refresh” property to that java method.
#webMethods-BPMS#webMethods#MWS-CAF-Task-Engine