Hi to all, I'm working with policy builder and I need your help. Before
posting this one I've made a deep search on the forum but I can't find
anything.

FIRST QUESTION

I'm working with two drivers, one of them is a WorkOrder Driver. What i
want is postpone an entire operation.
The first driver on publisher side sends a modify operation to IDM.
In this scenario I have saved the "modify operation" into a local
variable (nodeset type). Then I have created a Workorder object and in
the DirXML-nwoContent attribute I have attached the modify operation
using XMLSerialize method:

<arg-value type="string">
<token-xml-serialize>
<token-local-variable name="local.operation"/>
</token-xml-serialize>
</arg-value>

All this works fine.

When the workorder is being processed, in the WorkOrder Driver
Publisher Channel i would be able to copy the DirXML-nwoContent after
the "worktodo add" operation

<do-append-xml-text expression=".">
<arg-string>
<token-op-attr name="DirXML-nwoContent"/>
</arg-string>
</do-append-xml-text>

Here is the problem: DirXML-nwoContent has been serialized and it is
added as you can see here:

&lt;modify class-name="User" dest-dn="otb\Staging\AB"
dest-entry-id="48930" event-id="PeopleSoft+560" src-dn="AB">
&lt;association>ZZ_SCHEMA_CI/AB&lt;/association>
&lt;modify-attr attr-name="DeptCode">
&lt;remove-value>
&lt;value>RD&lt;/value>
&lt;/remove-value>
&lt;/modify-attr>
&lt;modify-attr attr-name="LeaveAt">
&lt;remove-value>
&lt;value timestamp="1199792208#5"
type="string">31/01/2007&lt;/value>
&lt;/remove-value>
&lt;/modify-attr>
&lt;modify-attr attr-name="EffectiveDate">
&lt;remove-value>
&lt;value timestamp="1199712843#14"
type="string">19/12/2007&lt;/value>
&lt;/remove-value>
&lt;/modify-attr>
...
...
...

This XML cannot be processed by the Shim.
I could use XMLParse and reconvert the entire DirXML-nwoContent into a
Local Variable (type=nodeset) using XMLParse() but in this case I'm not
able to append it using Append XML text, because his format is XML
nodeset.

I can see two ways:
1- Find a way to deserialize DirXML-nwoContent transform "&lt; into <"
2- Find a way to add the Nodeset local variable into XML processed by
the WorkOrderChannel

If anyone has some ideas....

SECOND QUESTION

For now i'm adding the xml inside the "add workorder operation"

<do-append-xml-text *expression=".">*
<arg-string>
<token-op-attr name="DirXML-nwoContent"/>
</arg-string>
</do-append-xml-text>

How can i add the operation to his ancestor?

I've tried without success:
<do-append-xml-text *expression="..">*
<do-append-xml-text *expression="../">*
<do-append-xml-text *expression="../../input">*

Thank you in advance

Natan


--
n.sanson
------------------------------------------------------------------------
n.sanson's Profile: http://forums.novell.com/member.php?userid=1637
View this thread: http://forums.novell.com/showthread.php?t=306810