Package org.camunda.bpm.qa.upgrade.util
Class ThrowBpmnErrorDelegate
- java.lang.Object
-
- org.camunda.bpm.qa.upgrade.util.ThrowBpmnErrorDelegate
-
- All Implemented Interfaces:
DelegateListener<DelegateExecution>,ExecutionListener,JavaDelegate
public class ThrowBpmnErrorDelegate extends Object implements JavaDelegate, ExecutionListener
- Author:
- Thorben Lindhauer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classThrowBpmnErrorDelegate.ThrowBpmnErrorDelegateException
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_ERROR_NAMEstatic StringDEFAULT_EXCEPTION_MESSAGEstatic StringERROR_INDICATOR_VARIABLEstatic StringERROR_NAME_VARIABLEstatic StringEXCEPTION_INDICATOR_VARIABLEstatic StringEXCEPTION_MESSAGE_VARIABLE-
Fields inherited from interface org.camunda.bpm.engine.delegate.ExecutionListener
EVENTNAME_END, EVENTNAME_START, EVENTNAME_TAKE
-
-
Constructor Summary
Constructors Constructor Description ThrowBpmnErrorDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(DelegateExecution execution)voidnotify(DelegateExecution execution)protected voidthrowErrorIfRequested(DelegateExecution execution)protected voidthrowExceptionIfRequested(DelegateExecution execution)
-
-
-
Field Detail
-
ERROR_INDICATOR_VARIABLE
public static final String ERROR_INDICATOR_VARIABLE
- See Also:
- Constant Field Values
-
ERROR_NAME_VARIABLE
public static final String ERROR_NAME_VARIABLE
- See Also:
- Constant Field Values
-
EXCEPTION_INDICATOR_VARIABLE
public static final String EXCEPTION_INDICATOR_VARIABLE
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_VARIABLE
public static final String EXCEPTION_MESSAGE_VARIABLE
- See Also:
- Constant Field Values
-
DEFAULT_ERROR_NAME
public static final String DEFAULT_ERROR_NAME
-
DEFAULT_EXCEPTION_MESSAGE
public static final String DEFAULT_EXCEPTION_MESSAGE
-
-
Method Detail
-
execute
public void execute(DelegateExecution execution) throws Exception
- Specified by:
executein interfaceJavaDelegate- Throws:
Exception
-
notify
public void notify(DelegateExecution execution) throws Exception
- Specified by:
notifyin interfaceDelegateListener<DelegateExecution>- Specified by:
notifyin interfaceExecutionListener- Throws:
Exception
-
throwErrorIfRequested
protected void throwErrorIfRequested(DelegateExecution execution)
-
throwExceptionIfRequested
protected void throwExceptionIfRequested(DelegateExecution execution)
-
-