|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.node.workflow.WorkflowPersistorVersion1xx
org.knime.core.node.workflow.WorkflowPersistorVersion200
public class WorkflowPersistorVersion200
| Nested Class Summary | |
|---|---|
static class |
WorkflowPersistorVersion200.LoadVersion
A Version representing a specific workflow format. |
| Nested classes/interfaces inherited from interface org.knime.core.node.workflow.WorkflowPersistor |
|---|
WorkflowPersistor.ConnectionContainerTemplate, WorkflowPersistor.LoadResult, WorkflowPersistor.LoadResultEntry, WorkflowPersistor.MetaNodeLinkUpdateResult, WorkflowPersistor.WorkflowLoadResult, WorkflowPersistor.WorkflowPortTemplate |
| Field Summary | |
|---|---|
(package private) static WorkflowPersistorVersion200.LoadVersion |
VERSION_LATEST
|
| Fields inherited from interface org.knime.core.node.workflow.WorkflowPersistor |
|---|
KEY_CONNECTIONS, KEY_ID, KEY_NODES, KEY_UI_INFORMATION, METAINFO_FILE, SAVED_WITH_DATA_FILE, TEMPLATE_FILE, WORKFLOW_FILE |
| Constructor Summary | |
|---|---|
WorkflowPersistorVersion200(HashMap<Integer,ContainerTable> tableRep,
ReferencedFile workflowKNIMEFile,
WorkflowLoadHelper loadHelper,
WorkflowPersistorVersion200.LoadVersion version)
Create persistor for load. |
|
| Method Summary | |
|---|---|
(package private) static WorkflowPersistorVersion200.LoadVersion |
canReadVersionV200(String versionString)
|
protected SingleNodeContainerPersistorVersion200 |
createSingleNodeContainerPersistorLoad(ReferencedFile nodeFile)
|
protected WorkflowPersistorVersion200 |
createWorkflowPersistorLoad(ReferencedFile wfmFile)
|
protected void |
fixDestPortIfNecessary(NodeContainerPersistor destPersistor,
WorkflowPersistor.ConnectionContainerTemplate c)
Fixes destination port index if necessary. |
protected void |
fixSourcePortIfNecessary(NodeContainerPersistor sourcePersistor,
WorkflowPersistor.ConnectionContainerTemplate c)
Fixes source port index if necessary. |
protected static WorkflowPersistorVersion200.LoadVersion |
getSaveVersion()
|
protected int |
loadConnectionDestID(NodeSettingsRO settings)
|
protected int |
loadConnectionDestPort(NodeSettingsRO settings)
|
protected List<Credentials> |
loadCredentials(NodeSettingsRO settings)
Loads credentials, this method returns an empty list. |
protected boolean |
loadIfMustWarnOnDataLoadError(File workflowDir)
Sub class hook to check whether there is a "loaded with no data" file. |
protected void |
loadInPortsBarUIInfo(UIInformation uiInfo,
NodeSettingsRO settings)
Sub-class hook to load port bar info. |
protected String |
loadInPortsBarUIInfoClassName(NodeSettingsRO settings)
Sub class hook o read port bar info. |
protected NodeSettingsRO |
loadInPortsSetting(NodeSettingsRO settings)
Sub class hook o read port settings. |
protected NodeSettingsRO |
loadInPortsSettingsEnum(NodeSettingsRO settings)
Sub class hook o read port settings. |
protected WorkflowPersistor.WorkflowPortTemplate |
loadInPortTemplate(NodeSettingsRO settings)
Sub class hook o read port settings. |
protected boolean |
loadIsMetaNode(NodeSettingsRO settings)
|
protected void |
loadOutPortsBarUIInfo(UIInformation uiInfo,
NodeSettingsRO settings)
Load output port bars. |
protected String |
loadOutPortsBarUIInfoClassName(NodeSettingsRO settings)
Sub-class hook to load port bar info. |
protected NodeSettingsRO |
loadOutPortsSetting(NodeSettingsRO settings)
Sub class hook o read port settings. |
protected NodeSettingsRO |
loadOutPortsSettingsEnum(NodeSettingsRO settings)
Sub class hook o read port settings. |
protected WorkflowPersistor.WorkflowPortTemplate |
loadOutPortTemplate(NodeSettingsRO settings)
Sub class hook o read port settings. |
protected MetaNodeTemplateInformation |
loadTemplateInformation(NodeSettingsRO settings)
Load template information (in this version always MetaNodeTemplateInformation.NONE). |
protected String |
loadUIInfoClassName(NodeSettingsRO settings)
|
protected void |
loadUIInfoSettings(UIInformation uiInfo,
NodeSettingsRO settings)
|
protected List<WorkflowAnnotation> |
loadWorkflowAnnotations(NodeSettingsRO settings)
Load annotations (added in v2.3). |
protected WorkflowCipher |
loadWorkflowCipher(WorkflowPersistorVersion200.LoadVersion loadVersion,
NodeSettingsRO settings)
|
protected String |
loadWorkflowName(NodeSettingsRO set)
Sub class hook o read workflow name. |
List<FlowVariable> |
loadWorkflowVariables(NodeSettingsRO settings)
Load workflow variables (not available in 1.3.x flows). |
boolean |
mustComplainIfStateDoesNotMatch()
Does this persistor complain if its persisted state state does not match the state after
loading (typically all non-executed nodes are configured after load). |
protected NodeSettingsRO |
readParentSettings()
|
static String |
save(WorkflowManager wm,
ReferencedFile workflowDirRef,
ExecutionMonitor execMon,
boolean isSaveData)
|
protected static void |
saveConnection(NodeSettingsWO settings,
ConnectionContainer connection)
|
protected static void |
saveCredentials(WorkflowManager wfm,
NodeSettingsWO settings)
|
protected static void |
saveFileLocation(NodeSettingsWO settings,
String location)
|
protected static void |
saveInPort(NodeSettingsWO settings,
WorkflowManager wm,
int portIndex)
|
protected static void |
saveInportsBarUIInfoClassName(NodeSettingsWO settings,
UIInformation info)
|
protected static void |
saveInportsBarUIInfoSettings(NodeSettingsWO settings,
UIInformation uiInfo)
|
protected static NodeSettingsWO |
saveInPortsEnumSetting(NodeSettingsWO settings)
|
protected static NodeSettingsWO |
saveInPortSetting(NodeSettingsWO settings,
int portIndex)
|
protected static NodeSettingsWO |
saveInPortsSetting(NodeSettingsWO settings)
|
protected static void |
saveIsMeta(NodeSettingsWO settings,
NodeContainer nc)
|
protected static void |
saveNodeContainer(NodeSettingsWO settings,
ReferencedFile workflowDirRef,
NodeContainer container,
ExecutionMonitor exec,
boolean isSaveData)
|
protected static void |
saveNodeIDSuffix(NodeSettingsWO settings,
NodeContainer nc)
|
protected static void |
saveOutPort(NodeSettingsWO settings,
WorkflowManager wm,
int portIndex)
|
protected static void |
saveOutportsBarUIInfoClassName(NodeSettingsWO settings,
UIInformation info)
|
protected static void |
saveOutportsBarUIInfoSettings(NodeSettingsWO settings,
UIInformation uiInfo)
|
protected static NodeSettingsWO |
saveOutPortsEnumSetting(NodeSettingsWO settings)
|
protected static NodeSettingsWO |
saveOutPortSetting(NodeSettingsWO settings,
int portIndex)
|
protected static NodeSettingsWO |
saveOutPortsSetting(NodeSettingsWO settings)
|
protected static NodeSettingsWO |
saveSettingsForConnections(NodeSettingsWO settings)
Save connections in an own sub-config object. |
protected static NodeSettingsWO |
saveSettingsForNodes(NodeSettingsWO settings)
Save nodes in an own sub-config object as a series of configs. |
protected static void |
saveTemplateInformation(MetaNodeTemplateInformation mnti,
NodeSettingsWO settings)
|
protected static void |
saveUIInfoClassName(NodeSettingsWO settings,
UIInformation info)
|
protected static void |
saveUIInfoSettings(NodeSettingsWO settings,
UIInformation uiInfo)
|
protected static void |
saveWorkflowAnnotations(WorkflowManager manager,
NodeSettingsWO settings)
|
protected static void |
saveWorkflowCipher(NodeSettings settings,
WorkflowCipher workflowCipher)
Metanode locking information. |
protected static void |
saveWorkflowName(NodeSettingsWO settings,
String name)
|
protected static void |
saveWorkflowVariables(WorkflowManager wfm,
NodeSettingsWO settings)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final WorkflowPersistorVersion200.LoadVersion VERSION_LATEST
| Constructor Detail |
|---|
WorkflowPersistorVersion200(HashMap<Integer,ContainerTable> tableRep,
ReferencedFile workflowKNIMEFile,
WorkflowLoadHelper loadHelper,
WorkflowPersistorVersion200.LoadVersion version)
tableRep - Table repositoryworkflowKNIMEFile - workflow.knime or template.knime fileloadHelper - As required by meta persistor.version - Version must pass canReadVersionV200(String).
IllegalStateException - If version string is unsupported.| Method Detail |
|---|
static WorkflowPersistorVersion200.LoadVersion canReadVersionV200(String versionString)
protected static WorkflowPersistorVersion200.LoadVersion getSaveVersion()
public boolean mustComplainIfStateDoesNotMatch()
state does not match the state after
loading (typically all non-executed nodes are configured after load).
This is true for all SingleNodeContainer and newer meta nodes,
but it will be false for meta nodes, which are loaded from 1.x workflow.
mustComplainIfStateDoesNotMatch in interface NodeContainerPersistormustComplainIfStateDoesNotMatch in class WorkflowPersistorVersion1xx
public List<FlowVariable> loadWorkflowVariables(NodeSettingsRO settings)
throws InvalidSettingsException
loadWorkflowVariables in class WorkflowPersistorVersion1xxsettings - To load from.
InvalidSettingsException - If any settings-related error occurs.
protected List<Credentials> loadCredentials(NodeSettingsRO settings)
throws InvalidSettingsException
loadCredentials in class WorkflowPersistorVersion1xxsettings - to load from.
InvalidSettingsException - If this fails for any reason.
protected List<WorkflowAnnotation> loadWorkflowAnnotations(NodeSettingsRO settings)
throws InvalidSettingsException
loadWorkflowAnnotations in class WorkflowPersistorVersion1xxsettings - to load from
InvalidSettingsException - If this fails for any reason.
protected String loadWorkflowName(NodeSettingsRO set)
throws InvalidSettingsException
loadWorkflowName in class WorkflowPersistorVersion1xxset - Ignored.
InvalidSettingsException - Not actually thrown here.
protected WorkflowCipher loadWorkflowCipher(WorkflowPersistorVersion200.LoadVersion loadVersion,
NodeSettingsRO settings)
throws InvalidSettingsException
loadWorkflowCipher in class WorkflowPersistorVersion1xxInvalidSettingsException
protected MetaNodeTemplateInformation loadTemplateInformation(NodeSettingsRO settings)
throws InvalidSettingsException
MetaNodeTemplateInformation.NONE).
loadTemplateInformation in class WorkflowPersistorVersion1xxsettings - To load from
InvalidSettingsException - If failsprotected NodeSettingsRO readParentSettings()
readParentSettings in class WorkflowPersistorVersion1xx
protected boolean loadIsMetaNode(NodeSettingsRO settings)
throws InvalidSettingsException
loadIsMetaNode in class WorkflowPersistorVersion1xxInvalidSettingsException
protected String loadUIInfoClassName(NodeSettingsRO settings)
throws InvalidSettingsException
loadUIInfoClassName in class WorkflowPersistorVersion1xxInvalidSettingsException
protected void loadUIInfoSettings(UIInformation uiInfo,
NodeSettingsRO settings)
throws InvalidSettingsException
loadUIInfoSettings in class WorkflowPersistorVersion1xxInvalidSettingsException
protected int loadConnectionDestID(NodeSettingsRO settings)
throws InvalidSettingsException
loadConnectionDestID in class WorkflowPersistorVersion1xxInvalidSettingsException
protected int loadConnectionDestPort(NodeSettingsRO settings)
throws InvalidSettingsException
loadConnectionDestPort in class WorkflowPersistorVersion1xxInvalidSettingsException
protected void fixDestPortIfNecessary(NodeContainerPersistor destPersistor,
WorkflowPersistor.ConnectionContainerTemplate c)
fixDestPortIfNecessary in class WorkflowPersistorVersion1xxdestPersistor - The persistor of the destination node.c - The connection template to be fixed.
protected void fixSourcePortIfNecessary(NodeContainerPersistor sourcePersistor,
WorkflowPersistor.ConnectionContainerTemplate c)
fixSourcePortIfNecessary in class WorkflowPersistorVersion1xxsourcePersistor - The persistor of the source node.c - The connection template to be fixed.
protected NodeSettingsRO loadInPortsSetting(NodeSettingsRO settings)
throws InvalidSettingsException
WorkflowPersistorVersion1xx
loadInPortsSetting in class WorkflowPersistorVersion1xxsettings - Ignored.
InvalidSettingsException - Not actually thrown here.
protected NodeSettingsRO loadInPortsSettingsEnum(NodeSettingsRO settings)
throws InvalidSettingsException
loadInPortsSettingsEnum in class WorkflowPersistorVersion1xxsettings - Ignored.
InvalidSettingsException - Not actually thrown here.
protected WorkflowPersistor.WorkflowPortTemplate loadInPortTemplate(NodeSettingsRO settings)
throws InvalidSettingsException
loadInPortTemplate in class WorkflowPersistorVersion1xxsettings - Ignored.
InvalidSettingsException - Not actually thrown here.
protected String loadInPortsBarUIInfoClassName(NodeSettingsRO settings)
throws InvalidSettingsException
loadInPortsBarUIInfoClassName in class WorkflowPersistorVersion1xxsettings - Ignored.
InvalidSettingsException - Not actually thrown here.
protected void loadInPortsBarUIInfo(UIInformation uiInfo,
NodeSettingsRO settings)
throws InvalidSettingsException
loadInPortsBarUIInfo in class WorkflowPersistorVersion1xxuiInfo - Ignored.settings - Ignored.
InvalidSettingsException - Not actually thrown
protected String loadOutPortsBarUIInfoClassName(NodeSettingsRO settings)
throws InvalidSettingsException
loadOutPortsBarUIInfoClassName in class WorkflowPersistorVersion1xxsettings - Ignored.
InvalidSettingsException - Not actually thrown
protected void loadOutPortsBarUIInfo(UIInformation uiInfo,
NodeSettingsRO settings)
throws InvalidSettingsException
loadOutPortsBarUIInfo in class WorkflowPersistorVersion1xxuiInfo - Ignored here.settings - Ignored here.
InvalidSettingsException - Not actually thrown here.
protected NodeSettingsRO loadOutPortsSetting(NodeSettingsRO settings)
throws InvalidSettingsException
WorkflowPersistorVersion1xx
loadOutPortsSetting in class WorkflowPersistorVersion1xxsettings - Ignored.
InvalidSettingsException - Not actually thrown here.
protected NodeSettingsRO loadOutPortsSettingsEnum(NodeSettingsRO settings)
throws InvalidSettingsException
loadOutPortsSettingsEnum in class WorkflowPersistorVersion1xxsettings - Ignored.
InvalidSettingsException - Not actually thrown here.
protected WorkflowPersistor.WorkflowPortTemplate loadOutPortTemplate(NodeSettingsRO settings)
throws InvalidSettingsException
loadOutPortTemplate in class WorkflowPersistorVersion1xxsettings - Ignored.
InvalidSettingsException - Not actually thrown here.protected boolean loadIfMustWarnOnDataLoadError(File workflowDir)
loadIfMustWarnOnDataLoadError in class WorkflowPersistorVersion1xxworkflowDir - Ignored here
protected static void saveUIInfoClassName(NodeSettingsWO settings,
UIInformation info)
protected static void saveUIInfoSettings(NodeSettingsWO settings,
UIInformation uiInfo)
protected WorkflowPersistorVersion200 createWorkflowPersistorLoad(ReferencedFile wfmFile)
createWorkflowPersistorLoad in class WorkflowPersistorVersion1xxprotected SingleNodeContainerPersistorVersion200 createSingleNodeContainerPersistorLoad(ReferencedFile nodeFile)
createSingleNodeContainerPersistorLoad in class WorkflowPersistorVersion1xx
public static String save(WorkflowManager wm,
ReferencedFile workflowDirRef,
ExecutionMonitor execMon,
boolean isSaveData)
throws IOException,
CanceledExecutionException,
LockFailedException
IOException
CanceledExecutionException
LockFailedException
protected static void saveWorkflowName(NodeSettingsWO settings,
String name)
protected static void saveWorkflowCipher(NodeSettings settings,
WorkflowCipher workflowCipher)
settings - workflowCipher -
protected static void saveTemplateInformation(MetaNodeTemplateInformation mnti,
NodeSettingsWO settings)
protected static void saveWorkflowVariables(WorkflowManager wfm,
NodeSettingsWO settings)
protected static void saveCredentials(WorkflowManager wfm,
NodeSettingsWO settings)
protected static void saveWorkflowAnnotations(WorkflowManager manager,
NodeSettingsWO settings)
protected static NodeSettingsWO saveSettingsForNodes(NodeSettingsWO settings)
settings - To save to.
protected static NodeSettingsWO saveSettingsForConnections(NodeSettingsWO settings)
settings - To save to.
protected static void saveNodeContainer(NodeSettingsWO settings,
ReferencedFile workflowDirRef,
NodeContainer container,
ExecutionMonitor exec,
boolean isSaveData)
throws CanceledExecutionException,
IOException,
LockFailedException
CanceledExecutionException
IOException
LockFailedException
protected static void saveNodeIDSuffix(NodeSettingsWO settings,
NodeContainer nc)
protected static void saveFileLocation(NodeSettingsWO settings,
String location)
protected static void saveIsMeta(NodeSettingsWO settings,
NodeContainer nc)
protected static NodeSettingsWO saveInPortsSetting(NodeSettingsWO settings)
protected static NodeSettingsWO saveInPortsEnumSetting(NodeSettingsWO settings)
protected static NodeSettingsWO saveInPortSetting(NodeSettingsWO settings,
int portIndex)
protected static void saveInportsBarUIInfoClassName(NodeSettingsWO settings,
UIInformation info)
protected static void saveInportsBarUIInfoSettings(NodeSettingsWO settings,
UIInformation uiInfo)
protected static void saveInPort(NodeSettingsWO settings,
WorkflowManager wm,
int portIndex)
protected static NodeSettingsWO saveOutPortsSetting(NodeSettingsWO settings)
protected static NodeSettingsWO saveOutPortsEnumSetting(NodeSettingsWO settings)
protected static void saveOutportsBarUIInfoClassName(NodeSettingsWO settings,
UIInformation info)
protected static void saveOutportsBarUIInfoSettings(NodeSettingsWO settings,
UIInformation uiInfo)
protected static NodeSettingsWO saveOutPortSetting(NodeSettingsWO settings,
int portIndex)
protected static void saveOutPort(NodeSettingsWO settings,
WorkflowManager wm,
int portIndex)
protected static void saveConnection(NodeSettingsWO settings,
ConnectionContainer connection)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||