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 class
ThrowBpmnErrorDelegate.ThrowBpmnErrorDelegateException
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_ERROR_NAME
static String
DEFAULT_EXCEPTION_MESSAGE
static String
ERROR_INDICATOR_VARIABLE
static String
ERROR_NAME_VARIABLE
static String
EXCEPTION_INDICATOR_VARIABLE
static 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 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:
execute
in interfaceJavaDelegate
- Throws:
Exception
-
notify
public void notify(DelegateExecution execution) throws Exception
- Specified by:
notify
in interfaceDelegateListener<DelegateExecution>
- Specified by:
notify
in interfaceExecutionListener
- Throws:
Exception
-
throwErrorIfRequested
protected void throwErrorIfRequested(DelegateExecution execution)
-
throwExceptionIfRequested
protected void throwExceptionIfRequested(DelegateExecution execution)
-
-