Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »


How to Pause, Resume, and Cancel a Chart

This page details manual state changes that can be enacted on a Chart after it has started. These state changes can be triggered via scripting (usings some of the system.sfc functions listed on this page), or via the SFC Monitor component. 

Security Considerations

Charts can run silently on the Gateway, but being able to interact with the chart from a Client, such a pausing a Chart, can be useful. Since a Chart can be executing some critical process, we highly recommend utilizing security settings to restrict access to components that are able to modify the state of a Chart. 

State Changes - Scripting

Pausing and Resuming

Any running Chart can be paused by using the system.sfc.pauseChart function. When pausing a chart, any currently running action steps must finish before the Chart will transition to a paused state. This may cause a chart to take some time before it actually pauses.

Once the chart is paused, it can then later be resumed. This can be done using the Resume button in the chart control when testing the SFC Monitor Component, or using the system.sfc.resumeChart function.

Canceling

Canceling a chart works similarly to pausing a chart in that it must first wait for any currently running action steps to finish execution before the chart will cancel. A chart can be canceled from a script by using system.sfc.cancelChart. Normal rules for canceling apply, thus the Chart's On Cancel event will trigger, but not the On Stop event. 

State Changes - SFC Monitor Component

Changing the state of an SFC can easily be accomplished without scripting from the SFC Monitor component. You can simply right-click on a running chart, and select a state you wish the Chart to transition to. 

Note that the Chart Lifecycle is still in effect, so only paused charts may be resumed. 


On this page ...

  

IULocgo


Pause, Resume, and Cancel




  • No labels