-
1. Re: How to act on task assigned to group as a group member.
salaboy21 Mar 7, 2014 9:22 AM (in response to faraon79)Hi Tomasz,
so what's exactly the question here?
You just created a task and it is assigned to a Group.. ok.. now you need to use the jbpm human task service apis to get all the tasks where your currently logged user is a potential owner. If he/she belongs to the group (in this case group1) he/she will see the task.
Regards
-
2. Re: How to act on task assigned to group as a group member.
faraon79 Mar 7, 2014 10:07 AM (in response to salaboy21)Sorry, I used ctrl+S and I thought it save it as a draft but it was posted.
-
3. Re: How to act on task assigned to group as a group member.
salaboy21 Mar 7, 2014 10:13 AM (in response to faraon79)It doesn't seem to be a bug yet. Did you tried using deploying the process definition inside the KIE-WB and working wiht the task list UI there?
I usually recommend doing so before interacting with the services to make sure that everything is set up correctly first.
If you can give it a try and let us know if the UI has the same problem that you are describing here we can check what is going wrong.
You can also share your process so we can give it a try.
Regards
-
4. Re: Re: How to act on task assigned to group as a group member.
faraon79 Mar 10, 2014 4:54 AM (in response to salaboy21)I tried to start process both way: using rest and from kie-wb. Now I'm only getting "No active JTA transaction on joinTransaction call" on start event. I've attached a definition, would be great if you could take a look on it. Thanks.
-
sample.bpmn.zip 1.6 KB
-
-
5. Re: How to act on task assigned to group as a group member.
salaboy21 Mar 10, 2014 5:12 AM (in response to faraon79)Can you share the full stack trace where it shows the "No Active JTA Transaction on.." using pastebin.com or something like that?
Thanks
-
7. Re: How to act on task assigned to group as a group member.
salaboy21 Mar 10, 2014 6:13 AM (in response to faraon79)This seems to be the issue:
- Could not commit session: javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: Unique index or primary key violation: "PRIMARY_KEY_C6 ON PUBLIC.ORGANIZATIONALENTITY(ID)"; SQL statement:
- insert into OrganizationalEntity (DTYPE, id) values ('Group', ?) [23505-161]
group1 doesn't seems to exist as a group in the database. That's seems to be the problem
Can you please share with us which version of jBPM/KIE Workbench are you using? So we can investigate further
-
8. Re: How to act on task assigned to group as a group member.
faraon79 Mar 10, 2014 7:06 AM (in response to salaboy21)I'm using jBPM6.0.1. Is it a correct way to define group by just adding them to user roles in roles.property file or does it require any extra steps?
-
9. Re: How to act on task assigned to group as a group member.
salaboy21 Mar 11, 2014 4:38 AM (in response to faraon79)One more question, how and where are you deploying the application? are you using JBoss?
Because what could be failing is the userGroupCallbacks that looks for those entries in the database and depending your environment you need to do different setups.
Regards
-
10. Re: How to act on task assigned to group as a group member.
faraon79 Mar 17, 2014 3:07 AM (in response to salaboy21)This is bundle version downloaded from jbpm web site. I just unzipped and use: ant install.demo.noeclipse and ant start.demo.noeclipse in Windows7.
Can I ask for an update, please.