[jboss-user] [JBoss jBPM] - Using LDAP: can't assign tasks to users in group ...
ardavan
do-not-reply at jboss.com
Thu Dec 18 15:54:26 EST 2008
Hi,
I am trying to hook up LDAP with jbpm. Therefore I have my own implementation of the ExpressionSession interface.
I also have an AssignmentHandler which extends ExpressionAssignmentHandler.
My problem: my task using: swimlane="manager" is assigned to 'null'.
This is how I set up my swimlanes in my processdefinition file:
<swimlane name="client">
| <assignment class='com.brighthorizons.jbpm.identity.ldap.MyLdapAssignmentHandler'>
| <expression>user(ardi)</expression>
| </assignment>
| </swimlane>
|
| <swimlane name="manager">
| <assignment class='com.brighthorizons.jbpm.identity.ldap.MyLdapAssignmentHandler'>
| <expression>group(groupTest)</expression>
| </assignment>
| </swimlane>
With the <expression>user(ardi)</expression> I have no issues but when I want to assign my task to the users in a group using <expression>group(groupTest)</expression> - jbpm assigns the taskInstance to null.
I have a public Group getGroupByName(String groupName) method that searches and finds the right group (LDAP)
then creates the group group = new Group(groupName, "");
Then lists all the members of that group and adds membership
| Attribute memberAttr = groupAttrs.get("uniquemember");for (NamingEnumeration memberValues = memberAttr.getAll(); memberValues.hasMore();)
| {
| String memberValue = memberValues.next().toString();
|
| User user;
| user = getUser(memberValue);
| System.out.println("user name from group:" + user.getName());
| Membership.create(user, group);
| System.out.println("membership created between:" + user.getName() +" and " + group.getName());
| }
|
I don't know what's wrong - I think I still don't understand the identity component of jbpm.
please help.
thank you
Ardi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197455#4197455
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197455
More information about the jboss-user
mailing list