cancel
Showing results for 
Search instead for 
Did you mean: 

Unit test - Cannot resolve identifier 'bpm_assignee'

matjazmuhic
Champ on-the-rise
Champ on-the-rise
So I've been playing around with activiti designer in eclipse and I created simple workflow using review & approve template and generated unit test from that. The problem is that when I run unit test I gives me this exception:


Caused by: org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'bpm_assignee'

How can I add some fake/mock assignees in unit test? Or is there a better solution to this? Or should/can I unit test activiti workflows in alfresco?
3 REPLIES 3

amandaluniz_z
Champ on-the-rise
Champ on-the-rise
Can you post the process definition of the custom workflow you have created?

Adei

matjazmuhic
Champ on-the-rise
Champ on-the-rise
I'm using the review & approve template one. But I don't think the problem is in definition. I know that my unit tests can't access bpm_assignee but I want to know if I it's even possible to unit tests those workflows outside of alfresco or does alfresco provide any way for unit testing the activiti workflows?

robin
Champ in-the-making
Champ in-the-making
But I don't think the problem is in definition. I know that my unit tests can't access bpm_assignee
The problem has to be in process definition as the error "Cannot resolve identifier 'bpm_assignee" itself says that the 'bpm_assignee' refereed in the process definition is not properly referenced.

does alfresco provide any way for unit testing the activiti workflows
Yes, it is very much possible. You can do it by accessing 'activiti workflow console' available in share UI.

Request you to post your process definition, model file and web-client-config-custom.xml file.

Regards,
Robin