Getting a WfResource for a Group
"Dahl, Greg (BLM) - contr" <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.shark |
|---|---|
| Message-ID | <A8155E0D38B9D84D88EAC58C2D8F47BA05D7E8F9@blmms060.accounts.root.corp> |
The following code works fine if I want to assign an activity to an
individual user:
//set the assignment.
WfAssignmentIterator wfai =
currentActivity.get_iterator_assignment();
WfAssignment assignment = wfai.get_next_object();
WfResource currentResource = assignment.assignee();
System.out.println("This activity is currently assigned
to " + currentResource.resource_name());
WfResource newResource =
sharkExecutionAdministration.getResource("UserInGroupOne");
assignment.set_assignee(newResource);
But, if I try using similar code to try to get a group:
WfResource newResource =
sharkExecutionAdministration.getResource("GroupOne");
The resource is null.
I would like to be able to assign groups dynamically but without getting
a reference to the group, I can't figure out how to do so.
Any ideas or is there a different API call I should be using?
Thanks,
Greg
******* Confidentiality Notice *******
This email, its electronic document attachments, and the contents of its website linkages may contain confidential health information. This information is intended solely for use by the individual or entity to whom it is addressed. If you have received this information in error, please notify the sender immediately and arrange for the prompt destruction of the material and any accompanying attachments.
message-footer.txt
(text/plain, 271 B)
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws