public class WorkSectionSource extends AbstractSectionSource
SectionSource
implementation that wraps a WorkSource
to
expose it as a section.AbstractSectionSource.SpecificationContext
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_PARAMETER_PREFIX
Name of property prefix to specify the index of the parameter on the
Work . |
static String |
PROPERTY_TASKS_NEXT_TO_OUTPUTS
Name of property specifying a comma separated list of
Task names
that will have a SectionOutput created and linked as next. |
Constructor and Description |
---|
WorkSectionSource() |
Modifier and Type | Method and Description |
---|---|
protected void |
loadSpecification(AbstractSectionSource.SpecificationContext context)
Loads the
SectionSourceSpecification . |
void |
sourceSection(SectionDesigner designer,
SectionSourceContext context)
Sources the
OfficeSection by constructing it via the input
SectionDesigner . |
getSpecification
public static final String PROPERTY_PARAMETER_PREFIX
Work
. The resulting parameter name and value are as:
PROPERTY_PARAMETER_PREFIX + "TaskName" = "index in objects for the parameter (starting at 1)"
public static final String PROPERTY_TASKS_NEXT_TO_OUTPUTS
Task
names
that will have a SectionOutput
created and linked as next.protected void loadSpecification(AbstractSectionSource.SpecificationContext context)
AbstractSectionSource
SectionSourceSpecification
.loadSpecification
in class AbstractSectionSource
context
- AbstractSectionSource.SpecificationContext
.public void sourceSection(SectionDesigner designer, SectionSourceContext context) throws Exception
SectionSource
OfficeSection
by constructing it via the input
SectionDesigner
.designer
- SectionDesigner
to construct the structure of the
OfficeSection
.context
- SectionSourceContext
to source details to construct
the OfficeSection
.Exception
- If fails to construct the OfficeSection
.Copyright © 2005–2016. All rights reserved.