| java.lang.Object org.openharmonise.rm.commands.CommandProcessHandler
CommandProcessHandler | public class CommandProcessHandler implements Publishable(Code) | | This class processes commands specified in HaRP to be executed within
Harmonise and possibly on a Harmoniseobject. Multiple commands and
objects can be handled and the output will be published to HaRP.
author: Michael Bell version: $Revision: 1.3 $ |
COMMANDS_NAMESPACE | final public static String COMMANDS_NAMESPACE(Code) | | The standard command namespace for the Harmonise framework, this namespace
forms the prefix to all the standard command class names, for example
the 'Save' command is represented by a class of the name
COMMANDS_NAMESPACE + "Save'
|
JMPIF_CMD | final public static String JMPIF_CMD(Code) | | The 'jump if'/'skip if' command tag name
|
JMP_CMD | final public static String JMP_CMD(Code) | | The 'jump'/'skip' command tag name
|
PROJECT_COMMAND | final public static String PROJECT_COMMAND(Code) | | Prefix for configuration parameters which specify project specific
command classes
|
STOP_CMD | final public static String STOP_CMD(Code) | | The 'stop' command tage name
|
TAG_WORKFLOW | final public static String TAG_WORKFLOW(Code) | | The 'WorkflowEvent' tag name
|
CommandProcessHandler | public CommandProcessHandler(AbstractDataStoreInterface dsi)(Code) | | Creates a new command process handler with a an interface to
the data store.
Parameters: dsi - the data store interface |
addResult | protected void addResult(Element result_root)(Code) | | Adds a result child element, the result of publishing the result
of one command execution, to the overall result element of this
command process.
Parameters: result_root - the result XML element |
executeCommands | protected void executeCommands(Object commandObject) throws PublishException(Code) | | Executes the loaded commands on the specified object.
Parameters: commandObject - the object commands are to be executed on throws: PublishException - if any errors occur, caused either by a reference to an invalid command, invalid object or if there isan error executing the command |
getState | public State getState()(Code) | | Returns the State associated to this command processor.
the State associated to this command processor. |
getWorkflowParameters | protected Map getWorkflowParameters(NodeList param_nodes)(Code) | | Returns a Map of the workflow parameters represented in the
NodeList .
Parameters: param_nodes - the list of nodes representing parameters a Map of the workflow parameters represented in the NodeList |
getXMLDocument | public org.w3c.dom.Document getXMLDocument()(Code) | | Returns the XML document associated to this command processor.
the XML document associated to this command processor. |
|
|