public abstract class MappingRuleActionBase extends Object implements MappingRuleAction
Constructor and Description |
---|
MappingRuleActionBase() |
Modifier and Type | Method and Description |
---|---|
abstract MappingRuleResult |
execute(VariableContext variables)
This method is the main logic of the action, it shall determine based on
the mapping context, what should be the action's result.
|
MappingRuleResult |
getFallback()
Returns the fallback action to be taken if the main action (result returned
by the execute method) fails.
|
MappingRuleAction |
setFallbackDefaultPlacement()
Sets the fallback method to place to default, if the action cannot be
executed the application will be placed into the default queue, if the
default queue does not exist the application will get rejected.
|
MappingRuleAction |
setFallbackReject()
Sets the fallback method to reject, if the action cannot be executed the
application will get rejected.
|
MappingRuleAction |
setFallbackSkip()
Sets the fallback method to skip, if the action cannot be executed
We move onto the next rule, ignoring this one.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validate
public MappingRuleResult getFallback()
getFallback
in interface MappingRuleAction
public MappingRuleAction setFallbackReject()
setFallbackReject
in interface MappingRuleAction
public MappingRuleAction setFallbackSkip()
setFallbackSkip
in interface MappingRuleAction
public MappingRuleAction setFallbackDefaultPlacement()
setFallbackDefaultPlacement
in interface MappingRuleAction
public abstract MappingRuleResult execute(VariableContext variables)
execute
in interface MappingRuleAction
variables
- The variable context, which contains all the variablesCopyright © 2008–2024 Apache Software Foundation. All rights reserved.