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 ElementInfoPanelModelempty()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.IElementHelpLocationgetElementHelp()Info related to further help for the element, such as an inline HTML page or external web page.EWorkflowElementTypegetElementType()Whether this info panel instance is for aWorkflowNodeorWorkflowTrigger.StringgetElementTypeString()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.ObjectgetSummaryModel()Custom model instance for the summary of the node or trigger.StringgetSummaryXhtml()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.booleanisEmpty()Checks whether this info panel is empty and does not contain any content at all.booleanisNode()Whether this info instance is for aWorkflowNode(or trigger).booleanisShowDetails()Whether additional details should be shown on the UI.booleanisTrigger()Whether this info instance is for aWorkflowTrigger(or node).voidsetAlwaysRows(List<ValueDescriptorRow> alwaysRows)A list of rows containing the values the node always provides, regardless of its mode of complete (normally or abruptly).voidsetCurrentFileRows(List<FileDescriptorRow> currentFileRows)A list of rows containing the files the node provides while being executed.voidsetCurrentRows(List<ValueDescriptorRow> currentRows)A list of rows containing the values the node provides while being executed.voidsetElementHelp(IElementHelpLocation elementHelp)Info related to further help for the element, such as an inline HTML page or external web page.voidsetElementType(EWorkflowElementType elementType)Whether this info panel instance is for aWorkflowNodeorWorkflowTrigger.voidsetElementTypeString(String elementTypeString)The type of the node or trigger, seeIWorkflowElementTypeProviding.getType().voidsetErrorCodeSections(List<ErrorCodeSection> errorCodeSections)A list with error code sections.voidsetFileRows(List<FileDescriptorRow> fileRows)A list of rows containing the files the node provides.voidsetShowDetails(boolean showDetails)Whether additional details should be shown on the UI.voidsetSoftErrorCodeSections(List<ErrorCodeSection> softErrorCodeSections)A list with soft error code sections.voidsetSuccessRows(List<ValueDescriptorRow> successRows)A list of rows containing the values the node provides after its execution completes normally.voidsetSummaryModel(Object summaryModel)Custom model instance for the summary of the node or trigger.voidsetSummaryXhtml(String summaryXhtml)Custom facelet page containing the UI for the summary of the node or trigger.voidsetTriggerDataRows(List<ValueDescriptorRow> triggerDataRows)A list of rows containing the values the trigger provides when is fires.voidsetTriggerFileRows(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 theIValueDescriptorof 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 theIValueDescriptorof 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 theIFileValueDescriptorof 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 theIFileValueDescriptorof 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 theIValueDescriptorof 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 theIValueDescriptorof 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 aWorkflowNodeorWorkflowTrigger.- Returns:
- Whether this info panel is for a node or trigger.
-
setElementType
public void setElementType(EWorkflowElementType elementType)
Whether this info panel instance is for aWorkflowNodeorWorkflowTrigger.- 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 theIFileValueDescriptorof 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 theIFileValueDescriptorof 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 theIValueDescriptorof 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 theIValueDescriptorof 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 theIValueDescriptorof 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 theIValueDescriptorof 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 theIFileValueDescriptorof 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 theIFileValueDescriptorof 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.
-
-