Class ElementInfoPanelModel
java.lang.Object
de.xima.fc.workflow.designer.model.ElementInfoPanelModel
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementInfoPanelModelempty()Creates an empty instance of the element info panel model with no data.A list of rows containing the values the node always provides, regardless of its mode of complete (normally or abruptly).A list of rows containing the files the node provides while being executed.A list of rows containing the values the node provides while being executed.Info related to further help for the element, such as an inline HTML page or external web page.Whether this info panel instance is for aWorkflowNodeorWorkflowTrigger.The type of the node or trigger, seeIWorkflowElementTypeProviding.getType().A list with error code sections.A list of rows containing the files the node provides.A list with soft error code sections.A list of rows containing the values the node provides after its execution completes normally.Custom model instance for the summary of the node or trigger.Custom facelet page containing the UI for the summary of the node or trigger.A list of rows containing the values the trigger provides when is fires.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).booleanWhether additional details should be shown on the UI.booleanWhether 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.
-
Constructor Details
-
ElementInfoPanelModel
public ElementInfoPanelModel()
-
-
Method Details
-
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
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
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
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
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
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
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
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
Whether this info panel instance is for aWorkflowNodeorWorkflowTrigger.- Returns:
- Whether this info panel is for a node or trigger.
-
setElementType
Whether this info panel instance is for aWorkflowNodeorWorkflowTrigger.- Parameters:
elementType- Whether this info panel is for a node or trigger.
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Creates an empty instance of the element info panel model with no data.- Returns:
- An empty instance of the element info panel model.
-