Activiti 6 UI: Task not being assigned to group correctly
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2015 12:01 AM
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.
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.
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2015 10:31 AM
I believe that by default the assignee is the initiator of the process instance.
How did you configure your second user task wrt assignment?
How did you configure your second user task wrt assignment?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2015 07:38 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-28-2015 01:18 PM
Hmm that looks indeed like a bug. Did you file a jira issue so we can work further there?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2015 07:15 AM
