Hi,

I have a delimited text driver with a rule on an Output Transformation
Policy that logs errors on the Publisher Channel:

<rule>
<description>Write to log</description>
<conditions>
<and>
<if-operation op="equal">status</if-operation>
<if-xpath op="true">self::status[@level != 'success']</if-xpath>
</and>
</conditions>
<actions>
<do-set-local-variable name="msglog" scope="policy">
<arg-string>
<token-text xml:space="preserve">"</token-text>
<token-local-variable name="msglog"/>
<token-text xml:space="preserve">"</token-text>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="tm" scope="policy">
<arg-string>
<token-xpath expression="utils:writeLog($FichLog,$msglog)"/>
</arg-string>
</do-set-local-variable>
</actions>
</rule>

This rule works OK if the error is the Creation Policy. For example I
have a rule that checks for required attributes and if the user doesn't
have them it vetoes the operation.

<rule>
<description>Required attributes</description>
<conditions>
<and>
<if-class-name op="equal">User</if-class-name>
<if-op-attr name="CN" op="not-available"/>
</and>
</conditions>
<actions>
<do-veto/>
</actions>
</rule>

This rule genenaretes a status event:

DirXML Log Event -------------------
Driver: xxx
Channel: Publisher
Status: Warning
Message: Code(-8017) Operation vetoed by object creation policy.

And this status event is processed for the "write to log" rule.

But, if I send a "do-veto" due an error condition on an Event
Transformation Policy, this doesn't generate an status event and
therefore it's not processed for the "write to log" rule.

Even if I send a "do-status" action before the "do-veto", it's no
processed for the "write to log" rule.

Anybody knows why this behavior and how to send an status event in the
"Event Transformation Policiy" that then can be processed in the "Output
Transformation Policy"?

Thanks,


--
jlmasmit
------------------------------------------------------------------------
jlmasmit's Profile: http://forums.novell.com/member.php?userid=20336
View this thread: http://forums.novell.com/showthread.php?t=432759