Hi all,
I want to write certain changes of attributes into operation-data in
order to process these changes later. So I catch all of these changes
write them into the op-data, but have to face the fact that the first
element allways contains ALL changes of ALL attributes !!!
Something the trace does not suggest:
Meta2ADS :Applying policy: %+C%14CCTR%-C.
Meta2ADS : Applying to modify #1.
Meta2ADS : Evaluating selection criteria for rule 'CTR-Add event
audit information for reporting from status documents processed by input
transform'.
Meta2ADS : (if-operation equal "modify") = TRUE.
Meta2ADS : Rule selected.
Meta2ADS : Applying rule 'CTR-Add event audit information for
reporting from status documents processed by input transform'.
Meta2ADS : Action:
do-set-local-variable("lvModifiedAttributeValues",token-operation()+";").
Meta2ADS : arg-string(token-operation()+";")
Meta2ADS : token-operation()
Meta2ADS : Token Value: "modify".
Meta2ADS : token-text(";")
Meta2ADS : Arg Value: "modify;".
Meta2ADS : Action:
do-trace-message(token-local-variable("lvModifiedAttributeValues")).
Meta2ADS :
arg-string(token-local-variable("lvModifiedAttributeValues"))
Meta2ADS : token-local-variable("lvModifiedAttributeValues")
Meta2ADS : Token Value: "modify;".
Meta2ADS : Arg Value: "modify;".
Meta2ADS :modify;
Meta2ADS : Action: do-append-xml-element("operation-data",".").
Meta2ADS : Action:
do-append-xml-element("event-audit","operation-data").
Meta2ADS : Action:
do-append-xml-element("classname","operation-data/event-audit").
Meta2ADS : Action:
do-append-xml-text("operation-data/event-audit/classname",token-class-name()).
Meta2ADS : arg-string(token-class-name())
Meta2ADS : token-class-name()
Meta2ADS : Token Value: "User".
Meta2ADS : Arg Value: "User".
Meta2ADS : Action:
do-append-xml-element("assocVal","operation-data/event-audit").
Meta2ADS : Action:
do-append-xml-text("operation-data/event-audit/assocVal",token-association()).
Meta2ADS : arg-string(token-association())
Meta2ADS : token-association()
Meta2ADS : Token Value: "Assoc123".
Meta2ADS : Arg Value: "Assoc123".
Meta2ADS : Action:
do-for-each(arg-node-set(token-xpath("./modify-attr"))).
Meta2ADS : arg-node-set(token-xpath("./modify-attr"))
Meta2ADS : token-xpath("./modify-attr")
Meta2ADS : Token Value: {<modify-attr> @attr-name =
"city",<modify-attr> @attr-name = "company"}.
Meta2ADS : Arg Value: {<modify-attr> @attr-name =
"city",<modify-attr> @attr-name = "company"}.
Meta2ADS : Performing actions for local-variable(current-node) =
<modify-attr> @attr-name = "city".
Meta2ADS : Action: do-set-local-variable("lvMAVTemp","").
Meta2ADS : arg-string("")
Meta2ADS : Arg Value: "".
Meta2ADS : Action: do-set-local-variable("lvMAVTemp","ATTR:
"+token-xpath("$current-node/@attr-name")+",REMOVED:
"+token-xpath("$current-node/remove-value/value|$current-node/remove-all-values")+",ADD:
"+token-xpath("$current-node/add-value/value")+";").
Meta2ADS : arg-string("ATTR:
"+token-xpath("$current-node/@attr-name")+",REMOVED:
"+token-xpath("$current-node/remove-value/value|$current-node/remove-all-values")+",ADD:
"+token-xpath("$current-node/add-value/value")+";")
Meta2ADS : token-text("ATTR: ")
Meta2ADS : token-xpath("$current-node/@attr-name")
Meta2ADS : Token Value: "city".
Meta2ADS : token-text(",REMOVED: ")
Meta2ADS :
token-xpath("$current-node/remove-value/value|$current-node/remove-all-values")
Meta2ADS : Token Value: "".
Meta2ADS : token-text(",ADD: ")
Meta2ADS : token-xpath("$current-node/add-value/value")
Meta2ADS : Token Value: "Cologne".
Meta2ADS : token-text(";")
Meta2ADS : Arg Value: "ATTR: city,REMOVED: ,ADD:
Cologne;".
Meta2ADS : Action:
do-trace-message(token-local-variable("lvMAVTemp")).
Meta2ADS : arg-string(token-local-variable("lvMAVTemp"))
Meta2ADS : token-local-variable("lvMAVTemp")
Meta2ADS : Token Value: "ATTR: city,REMOVED: ,ADD:
Cologne;".
Meta2ADS : Arg Value: "ATTR: city,REMOVED: ,ADD:
Cologne;".
Meta2ADS :ATTR: city,REMOVED: ,ADD: Cologne;
Meta2ADS : Action:
do-append-xml-element("Info","operation-data/event-audit").
Meta2ADS : Action:
do-append-xml-text("operation-data/event-audit/Info",token-local-variable("lvMAVTemp")).
Meta2ADS : arg-string(token-local-variable("lvMAVTemp"))
Meta2ADS : token-local-variable("lvMAVTemp")
Meta2ADS : Token Value: "ATTR: city,REMOVED: ,ADD:
Cologne;".
Meta2ADS : Arg Value: "ATTR: city,REMOVED: ,ADD:
Cologne;".
Meta2ADS : Performing actions for local-variable(current-node) =
<modify-attr> @attr-name = "company".
Meta2ADS : Action: do-set-local-variable("lvMAVTemp","").
Meta2ADS : arg-string("")
Meta2ADS : Arg Value: "".
Meta2ADS : Action: do-set-local-variable("lvMAVTemp","ATTR:
"+token-xpath("$current-node/@attr-name")+",REMOVED:
"+token-xpath("$current-node/remove-value/value|$current-node/remove-all-values")+",ADD:
"+token-xpath("$current-node/add-value/value")+";").
Meta2ADS : arg-string("ATTR:
"+token-xpath("$current-node/@attr-name")+",REMOVED:
"+token-xpath("$current-node/remove-value/value|$current-node/remove-all-values")+",ADD:
"+token-xpath("$current-node/add-value/value")+";")
Meta2ADS : token-text("ATTR: ")
Meta2ADS : token-xpath("$current-node/@attr-name")
Meta2ADS : Token Value: "company".
Meta2ADS : token-text(",REMOVED: ")
Meta2ADS :
token-xpath("$current-node/remove-value/value|$current-node/remove-all-values")
Meta2ADS : Token Value: "".
Meta2ADS : token-text(",ADD: ")
Meta2ADS : token-xpath("$current-node/add-value/value")
Meta2ADS : Token Value: "Testcompany".
Meta2ADS : token-text(";")
Meta2ADS : Arg Value: "ATTR: company,REMOVED: ,ADD:
Testcompany;".
Meta2ADS : Action:
do-trace-message(token-local-variable("lvMAVTemp")).
Meta2ADS : arg-string(token-local-variable("lvMAVTemp"))
Meta2ADS : token-local-variable("lvMAVTemp")
Meta2ADS : Token Value: "ATTR: company,REMOVED: ,ADD:
Testcompany;".
Meta2ADS : Arg Value: "ATTR: company,REMOVED: ,ADD:
Testcompany;".
Meta2ADS :ATTR: company,REMOVED: ,ADD: Testcompany;
Meta2ADS : Action:
do-append-xml-element("Info","operation-data/event-audit").
Meta2ADS : Action:
do-append-xml-text("operation-data/event-audit/Info",token-local-variable("lvMAVTemp")).
Meta2ADS : arg-string(token-local-variable("lvMAVTemp"))
Meta2ADS : token-local-variable("lvMAVTemp")
Meta2ADS : Token Value: "ATTR: company,REMOVED: ,ADD:
Testcompany;".
Meta2ADS : Arg Value: "ATTR: company,REMOVED: ,ADD:
Testcompany;".
Meta2ADS : Action:
do-set-local-variable("format",arg-object(token-xpath("jdateform:new('dd.MM.yyyy
HH:mm:ss')"))).
Meta2ADS : arg-object(token-xpath("jdateform:new('dd.MM.yyyy
HH:mm:ss')"))
Meta2ADS : token-xpath("jdateform:new('dd.MM.yyyy
HH:mm:ss')")
Meta2ADS : Action:
do-set-local-variable("date",arg-object(token-xpath("jdate:new()"))).
Meta2ADS : arg-object(token-xpath("jdate:new()"))
Meta2ADS : token-xpath("jdate:new()")
Meta2ADS : Action:
do-append-xml-element("timeStamp","operation-data/event-audit").
Meta2ADS : Action:
do-append-xml-text("operation-data/event-audit/timeStamp",token-xpath("jdateform:format($format,$date)")).
Meta2ADS :
arg-string(token-xpath("jdateform:format($format,$date)"))
Meta2ADS : token-xpath("jdateform:format($format,$date)")
Meta2ADS : Token Value: "21.01.2011 09:11:16".
Meta2ADS : Arg Value: "21.01.2011 09:11:16".
Meta2ADS :Policy returned:
Meta2ADS :
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="?.?.?.?">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<modify class-name="User" event-id="676767"
qualified-src-dn="O=SAP\OU=Z2F\OU=100\CN=ERNSTW"
src-dn="\SD-SAP\SAP\Z2F\100\ERNSTW" src-entry-id="3654024"
timestamp="1295526148#2">
<association state="associated">Assoc123</association>
<modify-attr attr-name="city">
<remove-all-values/>
<add-value>
<value type="string">Cologne</value>
</add-value>
</modify-attr>
<modify-attr attr-name="company">
<remove-all-values/>
<add-value>
<value type="string">Testcompany</value>
</add-value>
</modify-attr>
<operation-data>
<event-audit>
<classname>User</classname>
<assocVal>Assoc123</assocVal>
<Info>ATTR: city,REMOVED: ,ADD: Cologne;ATTR:
company,REMOVED: ,ADD: Testcompany;</Info>
<Info>ATTR: company,REMOVED: ,ADD: Testcompany;</Info>
<timeStamp>21.01.2011 09:11:16</timeStamp>
</event-audit>
</operation-data>
</modify>
</input>
</nds>


Any idea what happens here ? BTW - tried that with different drivers,
but the behaviour remains.


--
Cheers,
Rolf
------------------------------------------------------------------------
rbollig's Profile: http://forums.novell.com/member.php?userid=5398
View this thread: http://forums.novell.com/showthread.php?t=430516