org.jbpm.command
Class DeployProcessCommand

java.lang.Object
  extended by org.jbpm.command.AbstractGetObjectBaseCommand
      extended by org.jbpm.command.DeployProcessCommand
All Implemented Interfaces:
java.io.Serializable, Command

public class DeployProcessCommand
extends AbstractGetObjectBaseCommand

Deploys a process, given as XML-String (be patient with Umlauts or something like that) or par archive (byte-array). if both is given, the byte-array will be preferred The deplpoyed process definition is returned

Author:
Bernd Ruecker (bernd.ruecker@camunda.com)
See Also:
Serialized Form

Constructor Summary
DeployProcessCommand()
           
DeployProcessCommand(byte[] par)
           
DeployProcessCommand(java.lang.String xml)
           
 
Method Summary
 java.lang.Object execute(JbpmContext jbpmContext)
           
 byte[] getPar()
           
 java.lang.String getXml()
           
 void setPar(byte[] par)
           
 void setXml(java.lang.String xml)
           
 
Methods inherited from class org.jbpm.command.AbstractGetObjectBaseCommand
getJbpmContext, getVariablesToInclude, isIncludeAllVariables, retrieveNode, retrieveProcessDefinition, retrieveProcessInstance, retrieveTaskInstanceDetails, retrieveToken, retrieveVariables, retrieveVariables, setIncludeAllVariables, setJbpmContext, setVariablesToInclude, setVariablesToInclude
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeployProcessCommand

public DeployProcessCommand()

DeployProcessCommand

public DeployProcessCommand(byte[] par)

DeployProcessCommand

public DeployProcessCommand(java.lang.String xml)
Method Detail

execute

public java.lang.Object execute(JbpmContext jbpmContext)
                         throws java.lang.Exception
Returns:
deployed ProcessDefinition
Throws:
java.lang.Exception

getPar

public byte[] getPar()

setPar

public void setPar(byte[] par)

getXml

public java.lang.String getXml()

setXml

public void setXml(java.lang.String xml)