Class ClientScriptingFunctions
java.lang.Object
com.inductiveautomation.sfc.client.scripting.ClientScriptingFunctions
- All Implemented Interfaces:
- SfcScriptingFunctions
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcancelChart(UUID instanceId) Cancels the chart instance indicated byinstanceId.voiddebugResume(UUID instanceId) Sends a message to the chart instance stopped at a breakpoint to resume normal operations.voidSends a message to the chart instance stopped at a breakpoint to step to the next step.Returns information about the currently running charts.getRunningCharts(String chartPath) Returns information about the currently running instances of a given chart path.getVariables(UUID instanceId) Returns the chart scope for the specified instance.voidpauseChart(UUID instanceId) Pause the chart instance indicated byinstanceId.voidredundantCheckpoint(UUID instanceId) For charts that have the "redundancy sync" setting enabled, this method synchronizes chart and step variables of the specified chart instance across the redundant cluster, allowing the instance to continue where it left off if a redundant failover occurs.voidresumeChart(UUID instanceId) Resume the chart instance indicated byinstanceId.voidsetVariables(UUID instanceId, UUID stepId, org.python.core.PyObject variablesMap) voidsetVariables(UUID instanceId, org.python.core.PyObject variablesMap) Updates the chart indicated byinstanceIdby copying all of the variables from the providedvariableMapinto the chart's scope.Start a Chart in ProjectprojectNamefrom the definition atchartPath.startChart(String chartPath, Map<String, Object> parameters) Start a chart in ProjectProject.GLOBAL_PROJECT_NAMEfrom the definition atchartPath.
- 
Constructor Details- 
ClientScriptingFunctionspublic ClientScriptingFunctions()
 
- 
- 
Method Details- 
startChartDescription copied from interface:SfcScriptingFunctionsStart a chart in ProjectProject.GLOBAL_PROJECT_NAMEfrom the definition atchartPath.- Specified by:
- startChartin interface- SfcScriptingFunctions
- Parameters:
- chartPath- the path to the chart definition.
- parameters- the parameters passed to the chart scope.
- Returns:
- The UUIDof the running chart instance.
- Throws:
- Exception
 
- 
startChartpublic UUID startChart(String projectName, String chartPath, Map<String, Object> parameters) throws ExceptionDescription copied from interface:SfcScriptingFunctionsStart a Chart in ProjectprojectNamefrom the definition atchartPath.- Specified by:
- startChartin interface- SfcScriptingFunctions
- Parameters:
- projectName- the name of the project the chart definition resides in.
- chartPath- the path to the chart definition.
- parameters- the parameters passed to the chart scope.
- Returns:
- The UUIDof the running chart instance.
- Throws:
- Exception
 
- 
cancelChartDescription copied from interface:SfcScriptingFunctionsCancels the chart instance indicated byinstanceId.- Specified by:
- cancelChartin interface- SfcScriptingFunctions
- Parameters:
- instanceId- the- UUIDof the chart instance to stop.
- Throws:
- Exception
 
- 
pauseChartDescription copied from interface:SfcScriptingFunctionsPause the chart instance indicated byinstanceId.- Specified by:
- pauseChartin interface- SfcScriptingFunctions
- Parameters:
- instanceId- the- UUIDof the chart instance to pause.
- Throws:
- Exception
 
- 
resumeChartDescription copied from interface:SfcScriptingFunctionsResume the chart instance indicated byinstanceId.- Specified by:
- resumeChartin interface- SfcScriptingFunctions
- Parameters:
- instanceId- the- UUIDof the chart instance to resume.
- Throws:
- Exception
 
- 
debugStepDescription copied from interface:SfcScriptingFunctionsSends a message to the chart instance stopped at a breakpoint to step to the next step.- Specified by:
- debugStepin interface- SfcScriptingFunctions
- Throws:
- Exception
 
- 
debugResumeDescription copied from interface:SfcScriptingFunctionsSends a message to the chart instance stopped at a breakpoint to resume normal operations.- Specified by:
- debugResumein interface- SfcScriptingFunctions
- Throws:
- Exception
 
- 
getRunningChartsDescription copied from interface:SfcScriptingFunctionsReturns information about the currently running charts.- Specified by:
- getRunningChartsin interface- SfcScriptingFunctions
- Returns:
- Chart information about all of the currently running charts.
- Throws:
- Exception
 
- 
setVariablesDescription copied from interface:SfcScriptingFunctionsUpdates the chart indicated byinstanceIdby copying all of the variables from the providedvariableMapinto the chart's scope.- Specified by:
- setVariablesin interface- SfcScriptingFunctions
- Parameters:
- instanceId- the of the chart instance to update.
- variablesMap- a dictionary containing key-value pairs of serializable things to update in chart scope.
 
- 
setVariables- Specified by:
- setVariablesin interface- SfcScriptingFunctions
 
- 
getRunningChartsDescription copied from interface:SfcScriptingFunctionsReturns information about the currently running instances of a given chart path.- Specified by:
- getRunningChartsin interface- SfcScriptingFunctions
- Throws:
- Exception
 
- 
getVariablesDescription copied from interface:SfcScriptingFunctionsReturns the chart scope for the specified instance. Step scopes for active steps are found under the "activeSteps" key.- Specified by:
- getVariablesin interface- SfcScriptingFunctions
- Throws:
- Exception
 
- 
redundantCheckpointDescription copied from interface:SfcScriptingFunctionsFor charts that have the "redundancy sync" setting enabled, this method synchronizes chart and step variables of the specified chart instance across the redundant cluster, allowing the instance to continue where it left off if a redundant failover occurs.- Specified by:
- redundantCheckpointin interface- SfcScriptingFunctions
- Parameters:
- instanceId- the UUID of the chart instance to update.
- Throws:
- Exception- if the redundant peer is not set up or connected, or if the chart does not have redundancy sync enabled.
 
 
-