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 java.lang.Object implements JavaDelegate, ExecutionListener
- Author:
- Thorben Lindhauer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ThrowBpmnErrorDelegate.ThrowBpmnErrorDelegateException
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_ERROR_NAME
static java.lang.String
DEFAULT_EXCEPTION_MESSAGE
static java.lang.String
ERROR_INDICATOR_VARIABLE
static java.lang.String
ERROR_NAME_VARIABLE
static java.lang.String
EXCEPTION_INDICATOR_VARIABLE
static java.lang.String
EXCEPTION_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 void
execute(DelegateExecution execution)
void
notify(DelegateExecution execution)
protected void
throwErrorIfRequested(DelegateExecution execution)
protected void
throwExceptionIfRequested(DelegateExecution execution)
-
-
-
Field Detail
-
ERROR_INDICATOR_VARIABLE
public static final java.lang.String ERROR_INDICATOR_VARIABLE
- See Also:
- Constant Field Values
-
ERROR_NAME_VARIABLE
public static final java.lang.String ERROR_NAME_VARIABLE
- See Also:
- Constant Field Values
-
EXCEPTION_INDICATOR_VARIABLE
public static final java.lang.String EXCEPTION_INDICATOR_VARIABLE
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_VARIABLE
public static final java.lang.String EXCEPTION_MESSAGE_VARIABLE
- See Also:
- Constant Field Values
-
DEFAULT_ERROR_NAME
public static final java.lang.String DEFAULT_ERROR_NAME
-
DEFAULT_EXCEPTION_MESSAGE
public static final java.lang.String DEFAULT_EXCEPTION_MESSAGE
-
-
Method Detail
-
execute
public void execute(DelegateExecution execution) throws java.lang.Exception
- Specified by:
execute
in interfaceJavaDelegate
- Throws:
java.lang.Exception
-
notify
public void notify(DelegateExecution execution) throws java.lang.Exception
- Specified by:
notify
in interfaceDelegateListener<DelegateExecution>
- Specified by:
notify
in interfaceExecutionListener
- Throws:
java.lang.Exception
-
throwErrorIfRequested
protected void throwErrorIfRequested(DelegateExecution execution)
-
throwExceptionIfRequested
protected void throwExceptionIfRequested(DelegateExecution execution)
-
-