Package com.inductiveautomation.sfc.rpc
Interface SfcRpcFunctions
- All Known Implementing Classes:
ClientScriptingFunctions
public interface SfcRpcFunctions
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbrowseRecordings(Date start, Date end, String chartPathFilter, String instanceUuidFilter) Returns information about recordings that match the provided filters.voidcancelChart(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.getChartStatus(UUID instanceId, boolean includeModel) Get theChartStatusfor a chart.getRunningChartsForId(ResourceId resourceId) Returns information about the currently running instances of a resource.getRunningChartsForPath(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.loadRecording(String file) 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.voidsetStepVariables(UUID instanceId, UUID stepId, org.python.core.PyObject variableMap) Updates the chart indicated byinstanceIdby copying all of the variables from the providedvariableMapinto the charts specified step scope.voidsetVariables(UUID instanceId, org.python.core.PyObject variableMap) 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.
-
Field Details
-
SERIALIZER
-
-
Method Details
-
startChart
UUID startChart(String projectName, String username, String chartPath, Map<String, Object> parameters) throws ExceptionStart a Chart in ProjectprojectNamefrom the definition atchartPath. -
cancelChart
Cancels the chart instance indicated byinstanceId.- Parameters:
instanceId- theUUIDof the chart instance to stop.
-
pauseChart
Pause the chart instance indicated byinstanceId.- Parameters:
instanceId- theUUIDof the chart instance to pause.
-
resumeChart
Resume the chart instance indicated byinstanceId.- Parameters:
instanceId- theUUIDof the chart instance to resume.
-
debugStep
Sends a message to the chart instance stopped at a breakpoint to step to the next step. -
debugResume
Sends a message to the chart instance stopped at a breakpoint to resume normal operations. -
getAllRunningCharts
Returns information about the currently running charts.- Returns:
- Chart information about all of the currently running charts.
-
getRunningChartsForId
Returns information about the currently running instances of a resource. -
getRunningChartsForPath
Returns information about the currently running instances of a given chart path.- Throws:
Exception
-
setVariables
Updates the chart indicated byinstanceIdby copying all of the variables from the providedvariableMapinto the chart's scope.- Parameters:
instanceId- the of the chart instance to update.variableMap- a dictionary containing key-value pairs of serializable things to update in chart scope.
-
setStepVariables
Updates the chart indicated byinstanceIdby copying all of the variables from the providedvariableMapinto the charts specified step scope.- Parameters:
instanceId- the of the chart instance to update.stepId- the of the running step to update.variableMap- a dictionary containing key-value pairs of serializable things to update in chart scope.
-
getVariables
Returns the chart scope for the specified instance. Step scopes for active steps are found under the "activeSteps" key.- Throws:
Exception
-
getChartStatus
Get theChartStatusfor a chart.- Parameters:
instanceId- the instance id of the chart.includeModel- iftrue, include theChartUIModelin theChartStatus.- Returns:
- the
ChartStatus, ornullif no chart forinstanceIdexists.
-
browseRecordings
List<RecordingMeta> browseRecordings(Date start, Date end, String chartPathFilter, String instanceUuidFilter) Returns information about recordings that match the provided filters. If a filter parameter is null it is not used.- Parameters:
chartPathFilter- a string that will be used to match the chart path of the recording.
-
loadRecording
- Throws:
Exception
-
redundantCheckpoint
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.- 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.
-