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:34 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 05:46 AM
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,
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,
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2012 07:23 AM
But can I do unit testing there? How do I deploy a unit test for activiti worfklow to Alfresco?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2012 08:47 AM
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,
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,
