For a variety of reasons, when one object in the application changes, I
need to migrate in a user that it is associated with. They have no
intention (nor ability) to make a change to the user at the same time to
give me two events, alas.

So my thinking was, Signature object comes with a reference to the
user, I want to use dxcmd to send a migrate for the User object it
references from the application.

Shon previously posted that you can use the functionality described
here:
'DxCommand'
(http://developer.novell.com/document...DxCommand.html)

Ok, so I defined a Java namespace as Designer shows it in the UI:
<namespace-def name="dxcmd"
value="http://www.novell.com/nxsl/java/com.novell.nds.dirxml.util.DxCommand"/>
or in the policy node as:
xmlns:dxcmd="http://www.novell.com/nxsl/java/com.novell.nds.dirxml.util.DxCommand"

Ok, call dxcmd:commandLine($MIG-DOC) in an XPATH with a nodeset
variable as MIG-DOC, (only an XDS doc right now, that is question two!)


Returns:
[05/17/10 13:25:59.799]:spml ST:
arg-string(token-xpath("dxcmd:commandLine($MIG-DOC)"))
[05/17/10 13:25:59.799]:spml ST:
token-xpath("dxcmd:commandLine($MIG-DOC)")
[05/17/10 13:25:59.800]:spml ST:
DirXML Log Event -------------------
Driver: \IDVAULT-LAB\com\ACME\Drivers\IDM\SOAP-SPML
Channel: Subscriber
Status: Error
Message: Code(-9131) Error in
vnd.nds.stream://IDVAULT-LAB/com/ACME/Drivers/IDM/SOAP-SPML/Subscriber/%5BACME%5D+DEBUG+-+Test+cases#XmlData:1092
: Error evaluating XPATH expression
'token-xpath("dxcmd:commandLine($MIG-DOC)")' :
com.novell.xml.xpath.XPathEvaluationException: Multiple matching Java
methods for 'dxcmd:commandLine($MIG-DOC)'.


Ok, line 1092 is my call.

Well dxcmd does not seem to be one of the predefined possibilities like
srcCommandProcessor or the like.

I am sure I am doing something simple and obviously incorrect.

Second question: What format is the nodeset it is expecting? I.e.
Since I am providing command line parameters, how much do I need to
provide? Even auth credentails? How would that 'look'? I will be
building it in policy, since it is a well defined event I need to
generate in just a single case.

I have a nodeset of the document I want to send. Now how do I select
migrate command, and specify the nodeset (instead of the filename,
typically used in the real command line version).

The docs say:
commandLine

public static int commandLine(NodeSet argSet)

Run DxCommand with arguments in a NodeSet. The XPath node value of
each node in the node set is obtained and used as one of the command
line arguments.

Parameters:
argSet - node set with command line arguments


But what does that actually mean? I.e. As much as Shon tells me
not too, I still think of nodesets as the text representation of them,
and work best with that approach.


--
geoffc
------------------------------------------------------------------------
geoffc's Profile: http://forums.novell.com/member.php?userid=1904
View this thread: http://forums.novell.com/showthread.php?t=410738