roles are not saving in idm6.0
hi everybody,
in my create user workflow i am getting the all the details from a form and then creating a view and then setting the idm atributes with the form values and then provisioning .
my problem is i could not able to set the role in idm.
my code is :
<set name='user.waveset.roles'>
<ref>roles</ref>
</set>
where roles is the form field value .
the allowed values of the field are contractor,manager,employee.
i select one role in the form and while setting the idm attributes i am assigning the role to the user.waveset.roles.
but when i checked in the idm interface all the fields like accountid ,firstname,lastname,email and password are set but in the assignment section Role is not assigned .
please can anybody tell me where i am wrong .
thanks a lot if anyone can solve this problem

