public class AutoWireEscalationCauseRouteWorkSource extends AbstractWorkSource<AutoWireEscalationCauseRouteWorkSource.AutoWireEscalationCauseRouteTask>
WorkSource
to route the cause of an Escalation
.Modifier and Type | Class and Description |
---|---|
static class |
AutoWireEscalationCauseRouteWorkSource.AutoWireEscalationCauseRouteTask
Task for the routing the Escalation cause. |
static class |
AutoWireEscalationCauseRouteWorkSource.Dependencies
Keys for the dependencies.
|
AbstractWorkSource.SpecificationContext
Modifier and Type | Field and Description |
---|---|
static String |
HANDLER_TASK_NAME
Name of the
Task handling the Escalation . |
static String |
PROPERTY_PREFIX_ESCALATION_TYPE
Name of
Property prefix containing the Escalation type. |
Constructor and Description |
---|
AutoWireEscalationCauseRouteWorkSource() |
Modifier and Type | Method and Description |
---|---|
static void |
configureEscalationCause(AutoWireSection section,
Class<? extends Throwable> causeType)
Configures handling the
Escalation cause. |
protected void |
loadSpecification(AbstractWorkSource.SpecificationContext context)
Loads the
WorkSourceSpecification . |
void |
sourceWork(WorkTypeBuilder<AutoWireEscalationCauseRouteWorkSource.AutoWireEscalationCauseRouteTask> workTypeBuilder,
WorkSourceContext context)
Sources the
WorkType by populating it via the input
WorkTypeBuilder . |
getSpecification
public static final String HANDLER_TASK_NAME
Task
handling the Escalation
.public static final String PROPERTY_PREFIX_ESCALATION_TYPE
Property
prefix containing the Escalation
type.
This is is indexed from 0
to provide the listing of
Escalation
causes to handle.public AutoWireEscalationCauseRouteWorkSource()
public static void configureEscalationCause(AutoWireSection section, Class<? extends Throwable> causeType)
Escalation
cause.section
- AutoWireSection
for the WorkSectionSource
containing the AutoWireEscalationCauseRouteWorkSource
being configured.causeType
- Type of cause.protected void loadSpecification(AbstractWorkSource.SpecificationContext context)
AbstractWorkSource
WorkSourceSpecification
.loadSpecification
in class AbstractWorkSource<AutoWireEscalationCauseRouteWorkSource.AutoWireEscalationCauseRouteTask>
context
- AbstractWorkSource.SpecificationContext
.public void sourceWork(WorkTypeBuilder<AutoWireEscalationCauseRouteWorkSource.AutoWireEscalationCauseRouteTask> workTypeBuilder, WorkSourceContext context) throws Exception
WorkSource
WorkType
by populating it via the input
WorkTypeBuilder
.workTypeBuilder
- WorkTypeBuilder
to be populated with the
type definition
of the Work
.context
- WorkSourceContext
to source details to populate the
WorkTypeBuilder
.Exception
- If fails to populate the WorkTypeBuilder
.Copyright © 2005–2016. All rights reserved.