cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti 6 UI: Task not being assigned to group correctly

kylee
Champ in-the-making
Champ in-the-making
I created a simple version of the vacation request process that look like this:
start -> user task 1 (Boss to approve) -> user task 2 (Print outcome) -> stop

user task 1 is assigned to Management group, where gonzo@example.com is a member.

Admin started the process.  Fill up the days to go for leave and press completed. 
Then to my surprise, it is routed back to Admin again, stating Current Task, Assignee: Assigned to nobody

I tried logging in as Gonzo.  Checking on processes -> showing running processes - nil

Please advise how do I tackle this problem.  Thanks.
4 REPLIES 4

jbarrez
Star Contributor
Star Contributor
I believe that by default the assignee is the initiator of the process instance.
How did you configure your second user task wrt assignment?

gelito
Champ in-the-making
Champ in-the-making
I don't know if this is the same problem, but it seems like there is no way to claim tasks assigned to group because you can't retrieve them to your inbox. You can now only see tasks where either you are assignee or someone involved and tasks assigned to group have none of those fields populated.

I found that in tasks.js

<javascript>
            if ($scope.account && $scope.account.groups && $scope.account.groups.length > 0) {
                for (var i=0; i < $scope.account.groups.length; i++) {
                    if ($scope.account.groups.type == 1) {
                        $scope.model.assignmentOptions.push({ id: 'group_' + $scope.account.groups.id, title: $translate.instant('TASK.FILTER.ASSIGNMENT-GROUP', $scope.account.groups) });
                    }
                }
            }
</javascript>

But this additional filter doesn't show up if you assign task to a group you are member of.

It looks like this condition checking group type always returns false, because there is no type property returned. I have commented that condition for now (group of type==1) and 4th filter showed up.

jbarrez
Star Contributor
Star Contributor
Hmm that looks indeed like a bug. Did you file a jira issue so we can work further there?

gelito
Champ in-the-making
Champ in-the-making
Yes Joram, JIRA issue is there https://activiti.atlassian.net/browse/ACT-4067

Thanks