org.jbpm.command
Class StartProcessInstanceCommand

java.lang.Object
  extended by org.jbpm.command.AbstractBaseCommand
      extended by org.jbpm.command.NewProcessInstanceCommand
          extended by org.jbpm.command.StartProcessInstanceCommand
All Implemented Interfaces:
java.io.Serializable, Command

public class StartProcessInstanceCommand
extends NewProcessInstanceCommand

Graph command to start a new process and signal it immidiatly. The transition named in startTransitionName is used (or the default transition if it is null). The result of this command, if requested, is a Long value containing the process instance id.

Author:
Jim Rigsbee, Tom Baeyens, Bernd Ruecker
See Also:
Serialized Form

Constructor Summary
StartProcessInstanceCommand()
           
 
Method Summary
 java.lang.Object execute(JbpmContext jbpmContext)
          return the id of the newly created process instance.
 java.lang.String getAdditionalToStringInformation()
           
 java.lang.String getStartTransitionName()
           
 void setStartTransitionName(java.lang.String startTransitionName)
           
 StartProcessInstanceCommand startTransitionName(java.lang.String startTransitionName)
           
 
Methods inherited from class org.jbpm.command.NewProcessInstanceCommand
actorId, createStartTask, getActorId, getKey, getProcessDefinitionId, getProcessDefinitionName, getProcessId, getProcessName, getVariables, isCreateStartTask, key, processDefinitionId, processDefinitionName, setActorId, setCreateStartTask, setKey, setProcessDefinitionId, setProcessDefinitionName, setProcessId, setProcessName, setVariables, variables
 
Methods inherited from class org.jbpm.command.AbstractBaseCommand
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StartProcessInstanceCommand

public StartProcessInstanceCommand()
Method Detail

execute

public java.lang.Object execute(JbpmContext jbpmContext)
                         throws java.lang.Exception
Description copied from class: NewProcessInstanceCommand
return the id of the newly created process instance.

Specified by:
execute in interface Command
Overrides:
execute in class NewProcessInstanceCommand
Throws:
java.lang.Exception

getStartTransitionName

public java.lang.String getStartTransitionName()

setStartTransitionName

public void setStartTransitionName(java.lang.String startTransitionName)

getAdditionalToStringInformation

public java.lang.String getAdditionalToStringInformation()
Overrides:
getAdditionalToStringInformation in class NewProcessInstanceCommand

startTransitionName

public StartProcessInstanceCommand startTransitionName(java.lang.String startTransitionName)


Copyright © 2010 JBoss Community. All Rights Reserved.