Class ElementInfoPanelModel
- java.lang.Object
-
- de.xima.fc.workflow.designer.model.ElementInfoPanelModel
-
- All Implemented Interfaces:
Serializable
public final class ElementInfoPanelModel extends Object implements Serializable
View Model storing the data that shown in the element info dialog of the flowchart.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ElementInfoPanelModel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ElementInfoPanelModel
empty()
Creates an empty instance of the element info panel model with no data.List<ValueDescriptorRow>
getAlwaysRows()
A list of rows containing the values the node always provides, regardless of its mode of complete (normally or abruptly).List<FileDescriptorRow>
getCurrentFileRows()
A list of rows containing the files the node provides while being executed.List<ValueDescriptorRow>
getCurrentRows()
A list of rows containing the values the node provides while being executed.IElementHelpLocation
getElementHelp()
Info related to further help for the element, such as an inline HTML page or external web page.EWorkflowElementType
getElementType()
Whether this info panel instance is for aWorkflowNode
orWorkflowTrigger
.String
getElementTypeString()
The type of the node or trigger, seeIWorkflowElementTypeProviding.getType()
.List<ErrorCodeSection>
getErrorCodeSections()
A list with error code sections.List<FileDescriptorRow>
getFileRows()
A list of rows containing the files the node provides.List<ErrorCodeSection>
getSoftErrorCodeSections()
A list with soft error code sections.List<ValueDescriptorRow>
getSuccessRows()
A list of rows containing the values the node provides after its execution completes normally.Object
getSummaryModel()
Custom model instance for the summary of the node or trigger.String
getSummaryXhtml()
Custom facelet page containing the UI for the summary of the node or trigger.List<ValueDescriptorRow>
getTriggerDataRows()
A list of rows containing the values the trigger provides when is fires.List<FileDescriptorRow>
getTriggerFileRows()
A list of rows containing the files the trigger provides.boolean
isEmpty()
Checks whether this info panel is empty and does not contain any content at all.boolean
isNode()
Whether this info instance is for aWorkflowNode
(or trigger).boolean
isShowDetails()
Whether additional details should be shown on the UI.boolean
isTrigger()
Whether this info instance is for aWorkflowTrigger
(or node).void
setAlwaysRows(List<ValueDescriptorRow> alwaysRows)
A list of rows containing the values the node always provides, regardless of its mode of complete (normally or abruptly).void
setCurrentFileRows(List<FileDescriptorRow> currentFileRows)
A list of rows containing the files the node provides while being executed.void
setCurrentRows(List<ValueDescriptorRow> currentRows)
A list of rows containing the values the node provides while being executed.void
setElementHelp(IElementHelpLocation elementHelp)
Info related to further help for the element, such as an inline HTML page or external web page.void
setElementType(EWorkflowElementType elementType)
Whether this info panel instance is for aWorkflowNode
orWorkflowTrigger
.void
setElementTypeString(String elementTypeString)
The type of the node or trigger, seeIWorkflowElementTypeProviding.getType()
.void
setErrorCodeSections(List<ErrorCodeSection> errorCodeSections)
A list with error code sections.void
setFileRows(List<FileDescriptorRow> fileRows)
A list of rows containing the files the node provides.void
setShowDetails(boolean showDetails)
Whether additional details should be shown on the UI.void
setSoftErrorCodeSections(List<ErrorCodeSection> softErrorCodeSections)
A list with soft error code sections.void
setSuccessRows(List<ValueDescriptorRow> successRows)
A list of rows containing the values the node provides after its execution completes normally.void
setSummaryModel(Object summaryModel)
Custom model instance for the summary of the node or trigger.void
setSummaryXhtml(String summaryXhtml)
Custom facelet page containing the UI for the summary of the node or trigger.void
setTriggerDataRows(List<ValueDescriptorRow> triggerDataRows)
A list of rows containing the values the trigger provides when is fires.void
setTriggerFileRows(List<FileDescriptorRow> triggerFileRows)
A list of rows containing the files the trigger provides.
-
-
-
Method Detail
-
getAlwaysRows
public List<ValueDescriptorRow> getAlwaysRows()
A list of rows containing the values the node always provides, regardless of its mode of complete (normally or abruptly). Corresponds to the entries in theIValueDescriptor
of the node, seegetAlwaysValueDescriptor()
.- Returns:
- List of always value rows.
-
setAlwaysRows
public void setAlwaysRows(List<ValueDescriptorRow> alwaysRows)
A list of rows containing the values the node always provides, regardless of its mode of complete (normally or abruptly). Corresponds to the entries in theIValueDescriptor
of the node, seegetAlwaysValueDescriptor()
.- Parameters:
alwaysRows
- List of always value rows.
-
getCurrentFileRows
public List<FileDescriptorRow> getCurrentFileRows()
A list of rows containing the files the node provides while being executed. Corresponds to the entries in theIFileValueDescriptor
of the node. See alsogetCurrentFileValueDescriptor()
.- Returns:
- List of file rows.
-
setCurrentFileRows
public void setCurrentFileRows(List<FileDescriptorRow> currentFileRows)
A list of rows containing the files the node provides while being executed. Corresponds to the entries in theIFileValueDescriptor
of the node. See alsogetCurrentFileValueDescriptor()
.- Parameters:
currentFileRows
- List of file rows.
-
getCurrentRows
public List<ValueDescriptorRow> getCurrentRows()
A list of rows containing the values the node provides while being executed. This is used e.g. by loops. Corresponds to the entries in theIValueDescriptor
of the node, seegetCurrentValueDescriptor()
.- Returns:
- List of current value rows.
-
setCurrentRows
public void setCurrentRows(List<ValueDescriptorRow> currentRows)
A list of rows containing the values the node provides while being executed. This is used e.g. by loops. Corresponds to the entries in theIValueDescriptor
of the node, seegetCurrentValueDescriptor()
.- Parameters:
currentRows
- List of current value rows.
-
getElementHelp
public IElementHelpLocation getElementHelp()
Info related to further help for the element, such as an inline HTML page or external web page.- Returns:
- The element's in-depth help.
-
setElementHelp
public void setElementHelp(IElementHelpLocation elementHelp)
Info related to further help for the element, such as an inline HTML page or external web page.- Parameters:
elementHelp
- The element's in-depth help.
-
getElementType
public EWorkflowElementType getElementType()
Whether this info panel instance is for aWorkflowNode
orWorkflowTrigger
.- Returns:
- Whether this info panel is for a node or trigger.
-
setElementType
public void setElementType(EWorkflowElementType elementType)
Whether this info panel instance is for aWorkflowNode
orWorkflowTrigger
.- Parameters:
elementType
- Whether this info panel is for a node or trigger.
-
getElementTypeString
public String getElementTypeString()
The type of the node or trigger, seeIWorkflowElementTypeProviding.getType()
. Each type has a handler with custom logic for that node or trigger.- Returns:
- The element's type.
-
setElementTypeString
public void setElementTypeString(String elementTypeString)
The type of the node or trigger, seeIWorkflowElementTypeProviding.getType()
. Each type has a handler with custom logic for that node or trigger.- Parameters:
elementTypeString
- The element's type.
-
getErrorCodeSections
public List<ErrorCodeSection> getErrorCodeSections()
A list with error code sections. A node's execution can fail with different types of errors. Each error may provide different details (exception data) when it occurs. Each section corresponds to one of the union members of the node'serror value descriptor
.- Returns:
- List of error code sections.
-
setErrorCodeSections
public void setErrorCodeSections(List<ErrorCodeSection> errorCodeSections)
A list with error code sections. A node's execution can fail with different types of errors. Each error may provide different details (exception data) when it occurs. Each section corresponds to one of the union members of the node'serror value descriptor
.- Parameters:
errorCodeSections
- List of error code sections.
-
getFileRows
public List<FileDescriptorRow> getFileRows()
A list of rows containing the files the node provides. Corresponds to the entries in theIFileValueDescriptor
of the node or trigger. See alsogetFileValueDescriptor()
.- Returns:
- List of file rows.
-
setFileRows
public void setFileRows(List<FileDescriptorRow> fileRows)
A list of rows containing the files the node provides. Corresponds to the entries in theIFileValueDescriptor
of the node or trigger. See alsogetFileValueDescriptor()
.- Parameters:
fileRows
- List of file rows.
-
getSoftErrorCodeSections
public List<ErrorCodeSection> getSoftErrorCodeSections()
A list with soft error code sections. A node's execution can issue different types of soft errors (warnings). Each soft error may provide different details (exception data) when it occurs. Each section corresponds to one of the union members of the node'ssoft error value descriptor
.- Returns:
- List of soft error code sections.
-
setSoftErrorCodeSections
public void setSoftErrorCodeSections(List<ErrorCodeSection> softErrorCodeSections)
A list with soft error code sections. A node's execution can issue different types of soft errors (warnings). Each soft error may provide different details (exception data) when it occurs. Each section corresponds to one of the union members of the node'ssoft error value descriptor
.- Parameters:
softErrorCodeSections
- List of soft error code sections.
-
getSuccessRows
public List<ValueDescriptorRow> getSuccessRows()
A list of rows containing the values the node provides after its execution completes normally. This is used e.g. by most actions with business logic, such as SQL statements or sending emails. Corresponds to the entries in theIValueDescriptor
of the node, seegetSuccessValueDescriptor()
.- Returns:
- List of current value rows.
-
setSuccessRows
public void setSuccessRows(List<ValueDescriptorRow> successRows)
A list of rows containing the values the node provides after its execution completes normally. This is used e.g. by most actions with business logic, such as SQL statements or sending emails. Corresponds to the entries in theIValueDescriptor
of the node, seegetSuccessValueDescriptor()
.- Parameters:
successRows
- List of current value rows.
-
getSummaryModel
public Object getSummaryModel()
Custom model instance for the summary of the node or trigger. Each handler can provide custom logic for how that model is rendered in the UI, using thegetSummaryXhtml()
.- Returns:
- The custom summary model.
-
setSummaryModel
public void setSummaryModel(Object summaryModel)
Custom model instance for the summary of the node or trigger. Each handler can provide custom logic for how that model is rendered in the UI, using thegetSummaryXhtml()
.- Parameters:
summaryModel
- The custom summary model.
-
getSummaryXhtml
public String getSummaryXhtml()
Custom facelet page containing the UI for the summary of the node or trigger. Each handler can provide custom logic for how that page is rendered in the UI. ThegetSummaryModel()
is made available to the facelet page.- Returns:
- The custom summary facelet page.
-
setSummaryXhtml
public void setSummaryXhtml(String summaryXhtml)
Custom facelet page containing the UI for the summary of the node or trigger. Each handler can provide custom logic for how that page is rendered in the UI. ThegetSummaryModel()
is made available to the facelet page.- Parameters:
summaryXhtml
- The custom summary facelet page.
-
getTriggerDataRows
public List<ValueDescriptorRow> getTriggerDataRows()
A list of rows containing the values the trigger provides when is fires. This is used e.g. by a form record message posted trigger to offer data regarding the message that was posted. Corresponds to the entries in theIValueDescriptor
of the trigger, seegetTriggerFilesDescriptor
.- Returns:
- List of trigger data rows.
-
setTriggerDataRows
public void setTriggerDataRows(List<ValueDescriptorRow> triggerDataRows)
A list of rows containing the values the trigger provides when is fires. This is used e.g. by a form record message posted trigger to offer data regarding the message that was posted. Corresponds to the entries in theIValueDescriptor
of the trigger, seegetTriggerFilesDescriptor
.- Parameters:
triggerDataRows
- List of trigger data rows.
-
getTriggerFileRows
public List<FileDescriptorRow> getTriggerFileRows()
A list of rows containing the files the trigger provides. Corresponds to the entries in theIFileValueDescriptor
of the trigger. See alsogetTriggerFilesDescriptor()
.- Returns:
- List of file rows.
-
setTriggerFileRows
public void setTriggerFileRows(List<FileDescriptorRow> triggerFileRows)
A list of rows containing the files the trigger provides. Corresponds to the entries in theIFileValueDescriptor
of the trigger. See alsogetTriggerFilesDescriptor()
.- Parameters:
triggerFileRows
- List of file rows.
-
isEmpty
public boolean isEmpty()
Checks whether this info panel is empty and does not contain any content at all.- Returns:
- True if the info panel is empty, false otherwise.
-
isNode
public boolean isNode()
Whether this info instance is for aWorkflowNode
(or trigger).- Returns:
- True if this info instance is for a node, false otherwise.
-
isShowDetails
public boolean isShowDetails()
Whether additional details should be shown on the UI.- Returns:
- True if additional details should be shown, false otherwise.
-
setShowDetails
public void setShowDetails(boolean showDetails)
Whether additional details should be shown on the UI.- Parameters:
showDetails
- True if additional details should be shown, false otherwise.
-
isTrigger
public boolean isTrigger()
Whether this info instance is for aWorkflowTrigger
(or node).- Returns:
- True if this info instance is for a trigger, false otherwise.
-
empty
public static ElementInfoPanelModel empty()
Creates an empty instance of the element info panel model with no data.- Returns:
- An empty instance of the element info panel model.
-
-