I'm just trying to get dest dn with query token but I'm getting nothing.
So just wanted to see if anything wrong with rule

> <do-set-local-variable name="destdnobject" scope="policy">
> <arg-node-set>
> <token-query>
> <arg-dn>
> <token-global-variable name="dest-context"/>
> </arg-dn>
> <arg-match-attr name="appdn">
> <arg-value type="dn">
> <token-dest-dn/>
> </arg-value>
> </arg-match-attr>
> <arg-string>
> <token-text xml:space="preserve">appdn</token-text>
> </arg-string>
> </token-query>
> </arg-node-set>
> </do-set-local-variable>


here is the trace for it...
> [08/24/10 10:14:09.588]RIVER-XML PT: Applying to delete #1.
> [08/24/10 10:14:09.588]RIVER-XML PT: Evaluating selection criteria
> for rule 'Remove object'.
> [08/24/10 10:14:09.589]RIVER-XML PT: (if-operation equal
> "delete") = TRUE.
> [08/24/10 10:14:09.590]RIVER-XML PT: (if-class-name equal
> "appdescription") = TRUE.
> [08/24/10 10:14:09.591]RIVER-XML PT: Rule selected.
> [08/24/10 10:14:09.591]RIVER-XML PT: Applying rule 'Remove
> object'.
> [08/24/10 10:14:09.592]RIVER-XML PT: Action:
> do-set-local-variable("destdnobject",scope="policy",arg-node-set(token-query(arg-dn(token-global-variable("dest-context")),arg-match-attr("appdn",token-dest-dn()),"appdn"))).
> [08/24/10 10:14:09.594]RIVER-XML PT:
> arg-node-set(token-query(arg-dn(token-global-variable("dest-context")),arg-match-attr("appdn",token-dest-dn()),"appdn"))
> [08/24/10 10:14:09.596]RIVER-XML PT:
> token-query(arg-dn(token-global-variable("dest-context")),arg-match-attr("appdn",token-dest-dn()),"appdn")
> [08/24/10 10:14:09.598]RIVER-XML PT:
> arg-dn(token-global-variable("dest-context"))
> [08/24/10 10:14:09.599]RIVER-XML PT:
> token-global-variable("dest-context")
> [08/24/10 10:14:09.603]RIVER-XML PT: Token Value:
> "\dest\some\thing".
> [08/24/10 10:14:09.603]RIVER-XML PT: Arg Value:
> "\dest\some\thing".
> [08/24/10 10:14:09.604]RIVER-XML PT:
> arg-match-attr("appdn",token-dest-dn())
> [08/24/10 10:14:09.605]RIVER-XML PT:
> arg-string(token-dest-dn())
> [08/24/10 10:14:09.606]RIVER-XML PT: token-dest-dn()
> [08/24/10 10:14:09.607]RIVER-XML PT: Token Value:
> "SOME\APPS\OBJECT\OBJECTS".
> [08/24/10 10:14:09.608]RIVER-XML PT: Arg Value:
> "SOME\APPS\OBJECT\OBJECTS".
> [08/24/10 10:14:09.609]RIVER-XML PT: arg-string("appdn")
> [08/24/10 10:14:09.610]RIVER-XML PT:
> token-text("appdn")
> [08/24/10 10:14:09.611]RIVER-XML PT: Arg Value:
> "appdn".
> [08/24/10 10:14:09.611]RIVER-XML PT: Query from policy
> [08/24/10 10:14:09.612]RIVER-XML PT:
> <nds dtdversion="3.5" ndsversion="8.x">
> <source>
> <product version="3.6.11.4904">DirXML</product>
> <contact>Novell, Inc.</contact>
> </source>
> <input>
> <query dest-dn="\dest\some\thing" scope="subtree">
> <search-attr attr-name="appdn">
> <value type="dn">SOME\APPS\OBJECT\OBJECTS</value>
> </search-attr>
> <read-attr attr-name="appdn"/>
> </query>
> </input>
> </nds>
> [08/24/10 10:14:09.615]RIVER-XML PT: Pumping XDS to
> eDirectory.
> [08/24/10 10:14:09.616]RIVER-XML PT: Performing operation
> query for \dest\some\thing.
> [08/24/10 10:14:09.624]RIVER-XML PT: Query from policy
> result
> [08/24/10 10:14:09.625]RIVER-XML PT:
> <nds dtdversion="3.5" ndsversion="8.x">
> <source>
> <product version="3.6.11.4904">DirXML</product>
> <contact>Novell, Inc.</contact>
> </source>
> <output>
> <status event-id="0" level="success"></status>
> </output>
> </nds>
> [08/24/10 10:14:09.628]RIVER-XML PT: Token Value: {}.
> [08/24/10 10:14:09.628]RIVER-XML PT: Arg Value: {}.
> [08/24/10 10:14:09.629]RIVER-XML PT: Action:
> do-delete-dest-object(class-name="appvalue",arg-dn(token-local-variable("destdnobject"))).
> [08/24/10 10:14:09.630]RIVER-XML PT:
> arg-dn(token-local-variable("destdnobject"))
> [08/24/10 10:14:09.631]RIVER-XML PT:
> token-local-variable("destdnobject")
> [08/24/10 10:14:09.632]RIVER-XML PT: Token Value: "".
> [08/24/10 10:14:09.634]RIVER-XML PT: Arg Value: "".


Thanks


--
srive99
------------------------------------------------------------------------
srive99's Profile: http://forums.novell.com/member.php?userid=10665
View this thread: http://forums.novell.com/showthread.php?t=419156