Skip to main content
Administrator Guide
Last Updated: 2023-06-23
Reference: Custom-Error-Handler Component Properties

Reference: Custom-Error-Handler Component Properties

Common Tab

Property
XML Attribute Name
Description
Error Handler ID
id
The unique ID of the
custom-error-handler
component within the assembly.
Rethrow Error
rethrow-error
Specifies whether the
custom-error-handler
component passes the error back to any upstream error handlers when it has completed processing. The default value is
false
, meaning that the
custom-error-handler
component processes the error alone, then marks it as having been handled.
You can also mark errors as having been handled by calling the
setErrorHandled
method on the
MediationContext
object. Example:
mediationContext.setErrorHandled(true)
.
Spring Bean
ref
The ID of a Spring bean that implements one of these 2 interface classes:
  • OnErrorHandler
    .
  • ConditionalOnErrorHandler
    , which extends
    OnErrorHandler
    with a Boolean method,
    invokeHandleError(MediationContext context)
    . If this method returns
    true
    , Workday invokes the
    handleError(MediationContext context)
    method.
    • If you implement the
      ConditionalOnErrorHandler
      interface, you override any conditional expressions you defined.

Expressions Tab

Property
XML Attribute Name
Description
Condition Expression
condition-expression
Enables you to enter MVEL condition expressions directly.
If all the expressions evaluate to
true
, or if you don't provide an expression, the error handler is invoked. Otherwise, the error handler isn't invoked, error handling continues along the processing chain, and Workday adds an
Audit Log
entry of type
ERROR_HANDLER_SKIPPED
.
To add a new expression below any existing rows, click
Add
, then enter the expression.
To add a new expression above an existing row, place the cursor in that row, then click
Insert
on the
Add
drop-down menu.
Use the buttons to the right of the
Expressions
tab to delete rows or reorder them.