Unit test - Cannot resolve identifier 'bpm_assignee'
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2012 05:35 AM
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:
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?
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?
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2012 07:49 AM
Can you post the process definition of the custom workflow you have created?
Adei
Adei
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2012 08:16 AM
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?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2012 08:29 AM
But I don't think the problem is in definition. I know that my unit tests can't access bpm_assigneeThe 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 workflowsYes, 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
