Class FlowableGuardrailViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.flowable.common.engine.api.FlowableException
org.flowable.common.engine.api.delegate.BusinessError
com.flowable.agent.engine.impl.guardrail.FlowableGuardrailViolationException
- All Implemented Interfaces:
Serializable
public class FlowableGuardrailViolationException
extends org.flowable.common.engine.api.delegate.BusinessError
A business error thrown when a guardrail violation occurs with
onFailure = "error".
Extends BusinessError so it can be caught by:
- BPMN error boundary events (matching on
BusinessError.getErrorCode()) - CMMN fault sentries (via fault propagation)
The violation details are available as additional data on the error, accessible as variables in the error handler scope.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringAdditional-data key under which the recorded guardrail exchanges are surfaced on the error (accessed viagetGuardrailExchanges()/setGuardrailExchanges(java.util.List)), so they can be rebuilt even though the business error bypasses the normal audit path.protected final List<GuardrailViolation> Fields inherited from class org.flowable.common.engine.api.delegate.BusinessError
additionalDataContainer, errorCodeFields inherited from class org.flowable.common.engine.api.FlowableException
isLogged, reduceLogLevel -
Constructor Summary
ConstructorsConstructorDescriptionFlowableGuardrailViolationException(String errorCode, String message, List<GuardrailViolation> violations) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalData(String name, Object value) voidsetGuardrailExchanges(List<AgentInvocationResultResponse.Exchange> guardrailExchanges) Methods inherited from class org.flowable.common.engine.api.delegate.BusinessError
getAdditionalDataContainer, getErrorCode, setAdditionalDataContainer, setErrorCodeMethods inherited from class org.flowable.common.engine.api.FlowableException
isLogged, isReduceLogLevel, setLogged, setReduceLogLevelMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
GUARDRAIL_EXCHANGES_KEY
Additional-data key under which the recorded guardrail exchanges are surfaced on the error (accessed viagetGuardrailExchanges()/setGuardrailExchanges(java.util.List)), so they can be rebuilt even though the business error bypasses the normal audit path.- See Also:
-
violations
-
-
Constructor Details
-
FlowableGuardrailViolationException
public FlowableGuardrailViolationException(String errorCode, String message, List<GuardrailViolation> violations)
-
-
Method Details
-
getViolations
-
setGuardrailExchanges
-
getGuardrailExchanges
-
addAdditionalData
-