Knowledge Partner
Knowledge Partner
122 views

Re: Recursive policy

On 5/2/2012 9:56 AM, marieno2 wrote:
>
> Dear all,
>
> Is it possible to create a recursive policy?
> I mean, I have a hierarchy of objects in my directory and when a
> specific attribute is updated on my object at the top of the hierarchy,
> I want to do the same updates on my root object than on all objects in
> the hierarchy.
> Is it possible with a DirXML policy and if yes how to do it?


In DirXML Script, recursivly, in the traditional comp sci definition?
No. In ECMA, probably, and maybe XSLT. But I think you mean more in
the dir /s style recursive. (ls -R I think).

So your rule detects the event that triggers this.

Then you for-each over a query that returns all the objects you care
about. (as high up or as deep as you need). Then inside the for-each
loop, which is looping over all the objects (returning the info you need
to save procesing time), and then do all the work you need to do, one by
one.


Labels (1)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.