org.camunda.bpm.data
Class ActivityGuard
java.lang.Object
org.camunda.bpm.data.ActivityGuard
- All Implemented Interfaces:
- Serializable, Guard, org.camunda.bpm.engine.delegate.ExecutionListener
public abstract class ActivityGuard
- extends Object
- implements org.camunda.bpm.engine.delegate.ExecutionListener, Serializable, Guard
Activity guard base.
Is intended to be used as a base class for pre- and post-condition guard on
regular activities. This class is intended to be subclassed and the subclass
should be registered as an execution listener for start and end events on the
activity.
- Author:
- Simon Zambrovski, holisticon AG.
- See Also:
- Serialized Form
| Fields inherited from interface org.camunda.bpm.engine.delegate.ExecutionListener |
EVENTNAME_END, EVENTNAME_START, EVENTNAME_TAKE |
|
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.DelegateExecution delegateExecution)
Implementation of the event dispatching. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActivityGuard
public ActivityGuard()
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.DelegateExecution delegateExecution)
throws Exception
- Implementation of the event dispatching.
- Specified by:
notify in interface org.camunda.bpm.engine.delegate.ExecutionListener
- Parameters:
delegateExecution - process execution
- Throws:
Exception
Copyright © 2014 camunda services GmbH. All rights reserved.