org.jbpm.command
Class DeployProcessCommand

java.lang.Object
  extended by org.jbpm.command.AbstractBaseCommand
      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 or process archive. If both are given, the byte-array will be preferred The deployed 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()
           
 DeployProcessCommand par(byte[] par)
           
 void setPar(byte[] par)
           
 void setXml(java.lang.String xml)
           
 DeployProcessCommand xml(java.lang.String xml)
           
 
Methods inherited from class org.jbpm.command.AbstractGetObjectBaseCommand
getJbpmContext, getVariablesToInclude, includeAllVariables, isIncludeAllVariables, retrieveNode, retrieveProcessDefinition, retrieveProcessInstance, retrieveTaskInstanceDetails, retrieveToken, retrieveVariables, retrieveVariables, setIncludeAllVariables, setJbpmContext, setVariablesToInclude, setVariablesToInclude, variablesToInclude, variablesToInclude
 
Methods inherited from class org.jbpm.command.AbstractBaseCommand
getAdditionalToStringInformation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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)

xml

public DeployProcessCommand xml(java.lang.String xml)

par

public DeployProcessCommand par(byte[] par)


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.