org.camunda.bpm.data
Class TaskGuard
java.lang.Object
org.camunda.bpm.data.TaskGuard
- All Implemented Interfaces:
- Serializable, Guard, org.camunda.bpm.engine.delegate.TaskListener
public class TaskGuard
- extends Object
- implements org.camunda.bpm.engine.delegate.TaskListener, Guard, Serializable
Task guard base.
Is intended to be used as a base class for pre- and post-condition guard on
user tasks. This class is intended to be subclassed and the subclass should
be registered as a task listener for start and end events on the user task.
- Author:
- Simon Zambrovski, holisticon AG.
- See Also:
- Serialized Form
| Fields inherited from interface org.camunda.bpm.engine.delegate.TaskListener |
EVENTNAME_ASSIGNMENT, EVENTNAME_COMPLETE, EVENTNAME_CREATE, EVENTNAME_DELETE |
|
Method Summary |
void |
checkPostconditions(org.camunda.bpm.engine.delegate.DelegateExecution execution)
Empty implementation of pre-condition checks. |
void |
checkPreconditions(org.camunda.bpm.engine.delegate.DelegateExecution execution)
Empty implementation of post-condition checks. |
void |
notify(org.camunda.bpm.engine.delegate.DelegateTask delegateTask)
Implementation of the event dispatching. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskGuard
public TaskGuard()
checkPostconditions
public void checkPostconditions(org.camunda.bpm.engine.delegate.DelegateExecution execution)
throws IllegalStateException
- Empty implementation of pre-condition checks.
Override this method to implement your own. Please throw
IllegalStateException on contract violations.
- Specified by:
checkPostconditions in interface Guard
- Parameters:
execution - current execution.
- Throws:
IllegalStateException - thrown if post-condition is not met.
checkPreconditions
public void checkPreconditions(org.camunda.bpm.engine.delegate.DelegateExecution execution)
throws IllegalStateException
- Empty implementation of post-condition checks.
Override this method to implement your own. Please throw
IllegalStateException on contract violations.
- Specified by:
checkPreconditions in interface Guard
- Parameters:
execution - current execution.
- Throws:
IllegalStateException - thrown if pre-condition is not met.
notify
public final void notify(org.camunda.bpm.engine.delegate.DelegateTask delegateTask)
- Implementation of the event dispatching.
- Specified by:
notify in interface org.camunda.bpm.engine.delegate.TaskListener
- Parameters:
delegateExecution - process execution
Copyright © 2014 camunda services GmbH. All rights reserved.