org.jbpm.command
Class TaskInstanceEndCommand

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

public class TaskInstanceEndCommand
extends AbstractBaseCommand

end the task with the given id if variables are given as a map, they are added/changed bevore ending the task

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

Constructor Summary
TaskInstanceEndCommand()
           
TaskInstanceEndCommand(long taskInstanceId, String transitionName)
           
TaskInstanceEndCommand(long taskInstanceId, String transitionName, Map variables)
           
 
Method Summary
 Object execute(JbpmContext jbpmContext)
           
 String getAdditionalToStringInformation()
           
protected  TaskInstance getTaskInstance(JbpmContext jbpmContext)
           
 long getTaskInstanceId()
           
 String getTransitionName()
           
 Map getVariables()
           
 void setTaskInstanceId(long taskInstanceId)
           
 void setTransitionName(String transitionName)
           
 void setVariables(Map variables)
           
 TaskInstanceEndCommand taskInstanceId(long taskInstanceId)
           
 TaskInstanceEndCommand transitionName(String transitionName)
           
 TaskInstanceEndCommand variables(Map 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

TaskInstanceEndCommand

public TaskInstanceEndCommand()

TaskInstanceEndCommand

public TaskInstanceEndCommand(long taskInstanceId,
                              String transitionName)

TaskInstanceEndCommand

public TaskInstanceEndCommand(long taskInstanceId,
                              String transitionName,
                              Map variables)
Method Detail

execute

public Object execute(JbpmContext jbpmContext)

getTaskInstance

protected TaskInstance getTaskInstance(JbpmContext jbpmContext)

getTaskInstanceId

public long getTaskInstanceId()

setTaskInstanceId

public void setTaskInstanceId(long taskInstanceId)

getTransitionName

public String getTransitionName()

setTransitionName

public void setTransitionName(String transitionName)

getVariables

public Map getVariables()

setVariables

public void setVariables(Map variables)

getAdditionalToStringInformation

public String getAdditionalToStringInformation()
Overrides:
getAdditionalToStringInformation in class AbstractBaseCommand

taskInstanceId

public TaskInstanceEndCommand taskInstanceId(long taskInstanceId)

transitionName

public TaskInstanceEndCommand transitionName(String transitionName)

variables

public TaskInstanceEndCommand variables(Map variables)


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