Here is a thread I misplaced in IM > Designer:

On 12/22/2008 09:16 AM, adminnovel wrote:
Hi everyone,

I'm using the workflow designer in ... Designer. I'd like to delete a
container object via my workflow. But before being able to delete this
container, I have to delete its children (seems that i can't delete a
non-leaf entity using the workflow).

-Question 1:-
I'D LIKE TO KNOW IF THERE IS ANY SIMPLE RECURSIVE WAY TO DELETE ITS
CHILDREN (USING THE WORKFLOW REQUEST)?
-Question 2:-
I'D LIKE TO KNOW IF THERE IS ANY SIMPLE RECURSIVE WAY TO DELETE ITS
CHILDREN (USING THE WORKFLOW REQUEST), EVEN IF I DON'T KNOW THE NAME OF
ITS CHILDREN ?

More precisely with an example :
I have a container ou=role1,ou=roles,o=company. *I'd like to delete
this container (ou=role1) and all its content (non-normalized names)* (
for instance delete :
cn=rolea,ou=role1,ou=roles,o=company
cn=role_1b,ou=role1,ou=roles,o=company
cn=rolec,ou=role1,ou=roles,o=company
cn=Another_role_d,ou=role1,ou=roles,o=company
ou=role1,ou=roles,o=company
)

Don't hesitate to ask questions if you want me to complete my request.

I'm open to any comments. Thanks in advance


------------------------------------------
JGDASILVA REPLIED :

I am assuming that you want to delete the objects as part of the
workflow request rather than in Designer. Because if in Designer under
Tools menu look for the eDirectory manager option.

You would need to run a query on the container to return all the
objects
in that container. Then loop through each one in turn to delete them.
Now the key is that all the objects would have to be defined in the
DAL
as an entity.

So it is possible.

For future reference this question should of been posted on the
novell.support.identity-manager.userapp-workflow forum

-------------------------------------------------
Thanks again to you jgdasilva ;-). So here is the new question :

How do you request to return all the objects in the container ?
Especially if you don't know their names -a priori - (no normalized cn)?
We agree on the principle, but how do you do that concretely ?

Thanks in advance to anyone who could help ...


--
adminnovel
------------------------------------------------------------------------
adminnovel's Profile: http://forums.novell.com/member.php?userid=33631
View this thread: http://forums.novell.com/showthread.php?t=355090