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

trademak
Star Contributor
Star Contributor
Hi,

The unit test functionality uses the standard Activiti Engine which doesn't know about a bpm_assignee.
The best way to test this is to deploy the process definition to Alfresco and test it there.

Best regards,

matjazmuhic
Champ on-the-rise
Champ on-the-rise
But can I do unit testing there? How do I deploy a unit test for activiti worfklow to Alfresco?

trademak
Star Contributor
Star Contributor
Hi,

No you can do no unit testing there, or you would have to use the Alfresco Workflow API for that and that's not really suited for that.
So what I meant is that you have to deploy the process definition to Alfresco and test it in there.

Best regards,