I trying to make a workordre where I'm setting the The DirXML-DueTime from a String attribute with the name hiredate, the value i the attribute hiredate is set from the userapp driver wwirk datepicker and the value is looks like "20070624015959000+0200" In the dstrace I'm receving


EnabelUser ST:##WorkOrder Sub -----:: WOSubscriptionShimm execute
EnabelUser ST:##WorkOrder Sub -----:: commandClass = class com.novell.nds..dirxml.driver.xds.XDSAddElement
EnabelUser ST:##WorkOrder Sub -----:: WOSubscriptionShim addHandler driverDN = \EnabelUser\Object DN =null
EnabelUser ST:##WorkOrder Sub -----:: commandClass = class com.novell.nds..dirxml.driver.xds.XDSAddElement
EnabelUser ST:##WorkOrder Sub -----:: WOSubscriptionShim addHandler driverDN = \EnabelUser\Object DN =\EnabelUser\haol
EnabelUser ST:##WorkOrder Sub -----:: WOSubscriptionShim addHandler: class == 'WorkOrder'
EnabelUser ST:##WorkOrder Sub -----:: WOSubscriptionShim addHandler: AttrName == Description
EnabelUser ST:##WorkOrder Sub -----:: WOSubscriptionShim addHandler: AttrName = Description AttrValue == \TDMUMASTER-TREE\DMU\ROS\IT\haol
EnabelUser ST:##WorkOrder Sub -----:: buildWorkOrder attrName = Description attrValue = \TDMUMASTER-TREE\DMU\ROS\IT\haol
EnabelUser ST:##WorkOrder Sub -----:: WOSubscriptionShim addHandler: AttrName == Content
EnabelUser ST:##WorkOrder Sub -----:: WOSubscriptionShim addHandler: AttrName = Content AttrValue == \TDMUMASTER-TREE\DMU\ROS\IT\haol
EnabelUser ST:##WorkOrder Sub -----:: buildWorkOrder attrName = Content attrValue = \TDMUMASTER-TREE\DMU\ROS\IT\haol
EnabelUser ST:##WorkOrder Sub -----:: WOSubscriptionShim addHandler: AttrName == DueDate
EnabelUser ST:##WorkOrder Sub -----:: WOSubscriptionShim addHandler: AttrName = DueDate AttrValue == 20070624015959000+0200
EnabelUser ST:##WorkOrder Sub -----:: buildWorkOrder attrName = DueDate attrValue = 20070624015959000+0200
EnabelUser ST:##WorkOrder Sub -----:: *** Error *** buildWorkOrder NumberFormatException
EnabelUser ST:##WorkOrder Sub -----:: WOSubscriptionShim dispatch send workorder to publisher?? workorder is not null
EnabelUser ST:##WorkOrder Sub -----:: WOSubscriptionShim dispatch do not send workorder to publisher. sendToPublisher = false doItNow = false
EnabelUser ST:SubscriptionShim.execute() returned:
EnabelUser ST:
<nds dtdversion="2.0">
<source>
<product build="20070301_0812" instance="EnabelUser" version="3.5">DirXML WorkOrder Driver (Java)</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<status event-id="TDMUMASTER01-NDS#20070622125014#1#1" level="error" type="driver-general">
<description>Destination DN is null</description>
</status>
<add-association event-id="TDMUMASTER01-NDS#20070622125014#1#1">\EnabelUser\haol 06/22/2007 14:50</add-association>
<status event-id="TDMUMASTER01-NDS#20070622125014#1#1" level="success" type="driver-general"/>
</output>
</nds>


On publish cahannel in the command rule I. creating the workordre from

<rule>
<description>Create Work Order from User Add</description>
<conditions>
<and>
<if-operation op="equal">add</if-operation>
<if-class-name op="equal">User</if-class-name>
<if-op-attr mode="nocase" name="Login Disabled" op="equal">True</if-op-attr>
</and>
</conditions>
<actions>
<do-set-local-variable name="order-dest-dn" scope="policy">
<arg-string>
<token-text xml:space="preserve">\EnabelUser\</token-text>
<token-src-name/>
</arg-string>
</do-set-local-variable>
<do-add-dest-object class-name="DirXML-WorkOrder" when="after">
<arg-dn>
<token-local-variable name="order-dest-dn"/>
</arg-dn>
</do-add-dest-object>
<do-add-dest-attr-value class-name="DirXML-WorkOrder" name="Description" when="after">
<arg-dn>
<token-local-variable name="order-dest-dn"/>
</arg-dn>
<arg-value type="string">
<token-src-dn/>
</arg-value>
</do-add-dest-attr-value>
<do-add-dest-attr-value class-name="DirXML-WorkOrder" name="DirXML-nwoContent" when="after">
<arg-dn>
<token-local-variable name="order-dest-dn"/>
</arg-dn>
<arg-value type="string">
<token-src-dn/>
</arg-value>
</do-add-dest-attr-value>
<do-add-dest-attr-value class-name="DirXML-WorkOrder" name="DirXML-DueDate" when="after">
<arg-dn>
<token-local-variable name="order-dest-dn"/>
</arg-dn>
<arg-value type="string">
<token-op-attr name="Hiredate"/>
</arg-value>
</do-add-dest-attr-value>
<do-veto/>
</actions>
</rule>
<rule>
<description>Set Synthesized WorkOrders Source DN</description>
<conditions>
<and>
<if-operation op="equal">add</if-operation>
<if-class-name op="equal">DirXML-WorkOrder</if-class-name>
<if-src-dn op="not-available"/>
</and>
</conditions>
<actions>
<do-set-op-src-dn>
<arg-dn>
<token-attr name="Description"/>
</arg-dn>
</do-set-op-src-dn>
<do-add-dest-attr-value class-name="DirXML-WorkOrder" name="DirXML-nwoSendToPublisher">
<arg-value type="string">
<token-text xml:space="preserve">true</token-text>
</arg-value>
</do-add-dest-attr-value>
<do-add-dest-attr-value class-name="DirXML-WorkOrder" name="DirXML-nwoStatus">
<arg-value type="string">
<token-text xml:space="preserve">pending</token-text>
</arg-value>
</do-add-dest-attr-value>
</actions>
</rule>

How shal the DirXML-Duetime value bee (how to convert IT from the hiredate attibute ??

I also receive

EnabelUser ST:##WorkOrder Sub -----:: WOSubscriptionShim addHandler driverDN = \EnabelUser\Object DN =null

but 2 lines later in the trace I receive

EnabelUser ST:##WorkOrder Sub -----:: WOSubscriptionShim addHandler driverDN = \EnabelUser\Object DN =\EnabelUser\haol




Niels Olsen
NetWork Service
Vestre Gade 5D
2605 Brøndby
Phone 45)36485008
Mobil Phone 45)21244799
Email:
nol@nwservice.dk
Web:
www.nwservice.dk