-
1. Re: HOw to create user so that no one can see others tasks..
alok0007_07 Jun 19, 2008 6:28 AM (in response to alok0007_07)I m facing the following error while creating new group and user...
HTTP Status 403 - Access to the requested resource has been denied
Pelase help what to do .... -
2. Re: HOw to create user so that no one can see others tasks..
kukeltje Jun 19, 2008 12:22 PM (in response to alok0007_07)post 1: search the forum, wiki etc...
post 2: something is misconfigured, most likely a role or membership you forgot -
3. Re: HOw to create user so that no one can see others tasks..
alok0007_07 Jun 20, 2008 2:21 AM (in response to alok0007_07)i do the following for new group and user creation :
1) create a group of name 'guest'
insert into JBPM_ID_GROUP (ID_,CLASS_,NAME_,TYPE_)
values(812,'G','guest','security-role');
2) Then create a user of name 'user'
insert into JBPM_ID_USER (ID_,CLASS_,NAME_,EMAIL_,PASSWORD_)
values(123,'U','guest','guest@sample.domain','shipper');
3) Then insert into membership table
insert into JBPM_ID_MEMBERSHIP (ID_,CLASS_,USER_,GROUP_)
values(52,'M',812, 123);
But it gives the same error as i mentioned ... Is anything I left to do ...
Please suggest....waiting for reply.. -
4. Re: HOw to create user so that no one can see others tasks..
kukeltje Jun 20, 2008 3:03 PM (in response to alok0007_07)user and group values are switched in the membership!!!
-
5. Re: HOw to create user so that no one can see others tasks..
alok0007_07 Jun 23, 2008 1:53 AM (in response to alok0007_07)Thanks for Reply...
But its not possible to change the values of USER and GROUP column.. cause it gives me an error that parent key not found...
may i m not gettting your point.. can u elaborate your point...
Thanks for response... -
6. Re: HOw to create user so that no one can see others tasks..
alok0007_07 Jun 23, 2008 2:47 AM (in response to alok0007_07)hi Ronald
I got now what was your point but actually it is just writing mistake here in the post... sorry for that...
I did the right entry in db .....for user and group
but still getting the same error...
please suggest... -
7. Re: HOw to create user so that no one can see others tasks..
kukeltje Jun 23, 2008 4:14 AM (in response to alok0007_07)it is just writing mistake here in the post... sorry for that...
Thanks, that cost me 30 minutes.... ;-)
See what the queries in the login-config.xml produce if you run them directly at the database -
8. Re: HOw to create user so that no one can see others tasks..
alok0007_07 Jun 24, 2008 1:47 AM (in response to alok0007_07)hi Ronald .. as u told i work on the queries in login-config.xml .. all are working fine ... they are giving the required output when i m running them directly
.. but still facing same error...
any other ideas will be highly appreciated -
9. Re: HOw to create user so that no one can see others tasks..
jwooten Nov 4, 2008 8:55 AM (in response to alok0007_07)I used jsf tags and gravel tags to accomplish this for my case.
<j4j:listTasks includeEnded="true" target="#{tasks}" />
<gd:filter source="#{tasks}" target="#{tasks}"
entryVar="entry"
test="#{request.remoteUser == entry.actorId}" />
this provides a list of tasks that are queued to the current actor. You could modify the logic a bit in the test
for other cases. I provide another list, the group list which contains a list of tasks that the current actor COULD be eligible for. It contains a clickable item to "take" the task, which presents itself ( and moves it into the actors queue since it is assigned that actor ).
Other refinements are that "admin" and "manager" can see items in anyones queue. You also have to handle the case of the task isn't assigned to anyone, i.e. it's assigned to whomever "takes" it.