Hi All

I am trying to create a Workorder that will delete in X period of time
from current time. I've got the current time + working to populate the
local variable. I've used the HR driver example in the 3.5.1 workorder
driver guide. So in my loopbackdriver i am looking for a trigger and
when that trigger is successful it caluclates the future time and then
sends the stuff to the workorder. All seems to be working and there are
no error messages, BUT when I go to the workorder management screen in
imanager it lists the Workorder with an UNKNOWN status and when I go
into the object there DueDate and nwocontent are blank

The following is sitting in the same Policy in the Loopback called
"Business Logic" and traces below.

The time formatla is;

<do-set-local-variable name="WODeleteTime" scope="policy">
<arg-string>
<token-convert-time dest-format="!LONG.DATETIME" dest-tz="EST"
src-format="!CTIME" src-tz="EST">
<token-local-variable name="AddFutureTime"/>
</token-convert-time>
</arg-string>
</do-set-local-variable>

This works and gives me November 29, 2009 3:18:15 PM EST

And the formula that creates the workflow

<do-set-local-variable name="order-dest-dn" scope="policy">
<arg-string>
<token-src-dn/>
</arg-string>
</do-set-local-variable>

<do-add-dest-object class-name="DirXML-WorkOrder" direct="true">
<arg-dn>
<token-text xml:space="preserve">idv\services\WorkOrders</token-text>
<token-text xml:space="preserve">\WorkOrder-</token-text>
<token-attr name="CN"/>
</arg-dn>
</do-add-dest-object>

<do-add-dest-attr-value class-name="DirXML-WorkOrder" direct="true"
name="DirXML-nwoContent">
<arg-dn>
<token-text xml:space="preserve">idv\services\WorkOrders</token-text>
<token-text xml:space="preserve">\WorkOrder-</token-text>
<token-attr name="CN"/>
</arg-dn>
<arg-value type="string">
<token-local-variable name="order-dest-dn"/>
</arg-value>
</do-add-dest-attr-value>

<do-add-dest-attr-value class-name="DirXML-WorkOrder" direct="true"
name="DirXML-DueDate">
<arg-dn>
<token-text xml:space="preserve">idv\services\WorkOrders</token-text>
<token-text xml:space="preserve">\WorkOrder-</token-text>
<token-attr name="CN"/>
</arg-dn>
<arg-value type="string">
<token-local-variable name="WODeleteTime"/>
</arg-value>
</do-add-dest-attr-value>

<do-add-dest-attr-value class-name="DirXML-WorkOrder" direct="true"
name="DirXML-nwoStatus">
<arg-dn>
<token-text xml:space="preserve">idv\services\WorkOrders</token-text>
<token-text xml:space="preserve">\WorkOrder-</token-text>
<token-attr name="CN"/>
</arg-dn>
<arg-value type="string">
<token-text xml:space="preserve">Pending</token-text>
</arg-value>
</do-add-dest-attr-value>

I don't see any errors. I see the DirXML-DueDate, DirXML-nwoStatus and
the DirXML-nwoContent being filled in;

<input>
<add class-name="DirXML-WorkOrder"
dest-dn="idv\services\WorkOrders\WorkOrder-JohnSmith"
event-id="idv#20091129201745#1#1">
<add-attr attr-name="DirXML-nwoContent">
<value type="string">\IDV-T\idv\users\testing\JohnSmith</value>
</add-attr>
<add-attr attr-name="DirXML-DueDate">
<value type="string">November 29, 2009 3:18:15 PM EST</value>
</add-attr>
<add-attr attr-name="DirXML-nwoStatus">
<value type="string">Pending</value>
</add-attr>
</add>
</input>



Anyone see what I am doing wrong?