cancel
Showing results for 
Search instead for 
Did you mean: 

Workflows and pooled actors (groups)

ero
Champ in-the-making
Champ in-the-making
Hi,

Any roadmap regarding group(s) assignment in wokflows?
BPM model seems to be define only for individual users.

Regards,
14 REPLIES 14

davidc
Star Contributor
Star Contributor
The parallel review process example is now in SVN HEAD.

davidc
Star Contributor
Star Contributor
17:45:40,240 ERROR [org.alfresco.web.ui.common.Utils] Failed to get group tasks: java.lang.ClassCastException: org.jbpm.taskmgmt.exe.PooledActor
java.lang.ClassCastException: org.jbpm.taskmgmt.exe.PooledActor
   at org.alfresco.repo.workflow.jbpm.JBPMEngine.getTaskProperties(JBPMEngine.java:1247)
   at org.alfresco.repo.workflow.jbpm.JBPMEngine.createWorkflowTask(JBPMEngine.java:1818)

This looks like a bug - I'll raise a JIRA issue & investigate.

richmitc
Champ in-the-making
Champ in-the-making
I found the group review process definitions and placed them under WEB-INF/classes/alfresco/workflow.  No joy.  I then found that if I changed the "review_processdefinition.xml" in WEB-INF/classes/alfresco/bootstrap-context.xml to "parallelreview_processdefinition.xml", I, at least, got the Group Review choice to show up.

Now, though, when I select Group Review, the next step shows only an entry space for Owner.  There is no select for that.  Also no way to select reviewers, etc.  If I put a user name in and continue, I get a can't transition with null error.

Obviously, I don't have something set up correctly.  I'll keep looking, but if you can point me in the right direction, I would appreciate it

aditya
Champ in-the-making
Champ in-the-making
Hi David,

Refering to my earlier post in this thread on implementation of pooled tasks, I looked into the code for the exception …..
   The line 1274 of org.alfresco.repo.workflow.jbpm.JBPMEngine reads
 for (String pooledActor : (Set<String>)pooledActors)
but pooledActors is a set of org.jbpm.taskmgmt.exe.PooledActor hence the ClassCastException. I modified the code to
for (PooledActor pooledActor : (Set<PooledActor>)pooledActors)
and later used getActorId() to retrive the string value of the pooledActor when required.

However on execution, the task could be performed without taking ownership, unlike as mentioned in the thread ….. as soon as the task is performed it disappears from other pooled actors list.

How do i force the user to take the ownership of the task before he takes any action on it.

Regards,
Aditya Malpani.

davidc
Star Contributor
Star Contributor
Aditya,

You are correct - a pooled task will disappear once it is completed - that's the intended functionality.

Code development on pooled tasks is taking place right now - so, a pooled task dashlet and enhanced manage task dialog will be available for pooled tasks.

Also, the bug you spotted will have been fixed.

An update should be made to HEAD next week.