cancel
Showing results for 
Search instead for 
Did you mean: 

How to assign asignee dynamically from activiti designer.

sherlock
Champ in-the-making
Champ in-the-making
Hi,

I am trying to assign assignee dyanamically from eclipse activiti designer.
In the place of assignee i had put expression like ${credentials.getUserName()} .
But i am getting the following error.
org.activiti.engine.ActivitiException: Unknown property used in expression:${credentials.getUserName()}.
can u help me how to assign from designer.




Thanks&Regards
Sherlock
2 REPLIES 2

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
This is the way, but if credentials is 'null' or the property is not called getGetUserName you will get this 'error'. Keep in mind that EL uses the 'beans' standard, so most likely  ${credentials.userName} is what you need

sherlock
Champ in-the-making
Champ in-the-making
This is the way, but if credentials is 'null' or the property is not called getGetUserName you will get this 'error'. Keep in mind that EL uses the 'beans' standard, so most likely  ${credentials.userName} is what you need


Hi ronald,

Thanks for the reply.I have even tried ${credentials.userName} too, but still got the same error. But i achieved it by using selectOneMenu item.Here i have achieved by  following code.



<hSmiley SurprisedutputText value="Assignee" />
<h:selectOneMenu value="#{processVariables['manager']}">
<f:selectItem value="#{incidentCO.managerName}"  />
</h:selectOneMenu>

where i assign the value to a processVariable named manager and in the i have assigned  ${manager} in the diagram property. Still i need some mechanism so that process variable itself hold the value directly without assigning the value to it.


Thanks
Sherlock