[JBoss jBPM] - Jbpm assignment problem
by fsk1234
I have two tasks ( A and B) two people(1 and 2). I want people 1 to take task A and people 2 to take task B.
I assigned A to 1 and B to 2.
But I still can use either 1 or 2 to take both tasks. There is no difference with or without the assignment.
Can anyone give me some help?
Thanks a lot.
Here is the code
<start-state name="start-state1">
| <transition to="task-node1"></transition>
| </start-state>
|
| <task-node name="task-node1">
| <task name="A">
| <assignment expression="user(1)"></assignment>
| </task>
| <transition to="task-node2"></transition>
| </task-node>
|
| <task-node name="task-node2">
| <task name="B">
| <assignment expression="user(2)"></assignment>
| </task>
| <transition to="end-state1"></transition>
| </task-node>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141853#4141853
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141853
18 years
[JBoss Portal] - Re: Portal LDAP integration problems
by juhani_g
Update 2:
I think I found at least one part of the code that is causing problems:
It is findUserByUserName(String userName) in LDAPExtUserModuleImpl (that uses searchUsers).
I changed the code:
SearchResult res = (SearchResult)sr.iterator().next();
| Context ctx = (Context)res.getObject();
| String dn = ctx.getNameInNamespace();
|
| return createUserInstance(res.getAttributes(), dn);
With:
SearchResult res = (SearchResult)sr.iterator().next();
| Context ctx = (Context)res.getObject();
| String dn = ctx.getNameInNamespace();
| User user = createUserInstance(res.getAttributes(), dn);
| System.err.println("CREATED USER AND CLOSE CONTEXT");
| ctx.close();
| return user;
Now the Context is closed and caused the connection to be released right away (according to the pooling debug messages).
Continuing with experiments.
In any case, I do think the LDAP code needs optimizing. Is there any technical documentation on it available?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141846#4141846
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141846
18 years