Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jbpm.command
Class CancelProcessInstanceCommand

    java.lang.Object
      org.jbpm.command.AbstractCancelCommand
          org.jbpm.command.CancelProcessInstanceCommand

All Implemented Interfaces:
  java.io.Serializable, Command

    public class CancelProcessInstanceCommand

extends AbstractCancelCommand
implements Command

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

Field Summary

Fields inherited from class org.jbpm.command.AbstractCancelCommand
`jbpmContext, log`

Constructor Summary
`CancelProcessInstanceCommand()`
`CancelProcessInstanceCommand(long processId)`

Method Summary
`protected void` | `cancelProcess(long processIdToCancel)`
`protected void` | `cancelSubProcesses(long processId)` cancel all sub processes of the process with the given id calls "cancelProcess" recursivly until all processes are ended
`java.lang.Object` | `execute(JbpmContext jbpmContext)`
`long` | `getProcessId()`
`boolean` | `isCancelSubProcesses()`
`void` | `setCancelSubProcesses(boolean cancelSubProcesses)`
`void` | `setProcessId(long processId)`

Methods inherited from class org.jbpm.command.AbstractCancelCommand
`cancelTasks, cancelToken, cancelTokens, getTasksForToken`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CancelProcessInstanceCommand

    public CancelProcessInstanceCommand()

### CancelProcessInstanceCommand

    public CancelProcessInstanceCommand(long processId)

Method Detail

### execute

    public java.lang.Object execute(JbpmContext jbpmContext)
                             throws java.lang.Exception

  Specified by:
    `execute` in interface `Command`
  Throws:
    `java.lang.Exception`

### cancelProcess

    protected void cancelProcess(long processIdToCancel)

### cancelSubProcesses

    protected void cancelSubProcesses(long processId)

  cancel all sub processes of the process with the given id calls "cancelProcess" recursivly until all processes are ended

  Parameters:
    `processId` -

### isCancelSubProcesses

    public boolean isCancelSubProcesses()

### setCancelSubProcesses

    public void setCancelSubProcesses(boolean cancelSubProcesses)

### getProcessId

    public long getProcessId()

### setProcessId

    public void setProcessId(long processId)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD