hi,
hopefully a short to answer question :)
--------------
i start processing with that trigger document below
after some time i get:
what i´d like to have is:
i´ve tried to strip the trigger operation with
from the document, but that not leaves the modify alone (as was expected), but results in a looong
error and breaking the operation.
i could let the modify get done directly, and let the trigger run dead against the filter, but i´d prefer to have it stripped out in the first place and let the modify run through to the (successful) end.
my questions are:
1. why does that happen?
2. how could a clean document, solely containing the modify, be achieved?
thanks in advance for your comment(s), florian
hopefully a short to answer question :)
--------------
i start processing with that trigger document below
Code:
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.6.10.4747">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<trigger event-id="trigger-job:Spray#20120105165841#0#0" source="Spray">
<operation-data source="Spray"/>
</trigger>
</input>
</nds>
Code:
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.6.10.4747">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<trigger event-id="trigger-job:Spray#20120105165841#0#0" source="Spray">
<operation-data source="Spray"/>
</trigger>
<modify dest-dn="\test\cocoon\secoly\groups\myGroup001" event-id="trigger-job:Spray#20120105165841#0#0">
<modify-attr attr-name="Member">
<add-value>
<value>\test\cocoon\onely\r303cgrh</value>
</add-value>
</modify-attr>
</modify>
</input>
</nds>
what i´d like to have is:
Code:
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.6.10.4747">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<modify dest-dn="\test\cocoon\secoly\groups\myGroup001" event-id="trigger-job:Spray#20120105165841#0#0">
<modify-attr attr-name="Member">
<add-value>
<value>\test\cocoon\onely\r303cgrh</value>
</add-value>
</modify-attr>
</modify>
</input>
</nds>
i´ve tried to strip the trigger operation with
Code:
<do-strip-xpath expression="."/>
Code:
Message: Code(-9010) An exception occurred: java.lang.NullPointerException
at com.novell.nds.dirxml.engine.rules.RuleUtil.findOrCreateModOperation(RuleUtil.java:1394)
at com.novell.nds.dirxml.engine.rules.DoAddDestAttrValue.apply(DoAddDestAttrValue.java:185)
at com.novell.nds.dirxml.engine.rules.ActionSet.apply(ActionSet.java:177)
at com.novell.nds.dirxml.engine.rules.DoIf.apply(DoIf.java:84)
at com.novell.nds.dirxml.engine.rules.ActionSet.apply(ActionSet.java:177)
at com.novell.nds.dirxml.engine.rules.DoForEach.apply(DoForEach.java:137)
at com.novell.nds.dirxml.engine.rules.ActionSet.apply(ActionSet.java:177)
at com.novell.nds.dirxml.engine.rules.DoForEach.apply(DoForEach.java:137)
at com.novell.nds.dirxml.engine.rules.ActionSet.apply(ActionSet.java:177)
at com.novell.nds.dirxml.engine.rules.DirXMLScriptProcessor.applyRules(DirXMLScriptProcessor.java:298)
at com.novell.nds.dirxml.engine.Subscriber.processEvents(Subscriber.java:854)
at com.novell.nds.dirxml.engine.Driver.submitTransaction(Driver.java:624)
at com.novell.nds.dirxml.engine.DriverEntry.submitTransaction(DriverEntry.java:1050)
at com.novell.nds.dirxml.engine.DriverEntry.processCachedTransaction(DriverEntry.java:934)
at com.novell.nds.dirxml.engine.DriverEntry.eventLoop(DriverEntry.java:756)
at com.novell.nds.dirxml.engine.DriverEntry.run(DriverEntry.java:561)
at java.lang.Thread.run(Thread.java:619)
i could let the modify get done directly, and let the trigger run dead against the filter, but i´d prefer to have it stripped out in the first place and let the modify run through to the (successful) end.
my questions are:
1. why does that happen?
2. how could a clean document, solely containing the modify, be achieved?
thanks in advance for your comment(s), florian