Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

Product Family
Current publication
Table of Contents

AFCase.Run Method

AFCase.Run Method
This method uses the AFAnalysisRule to execute the analysis and generate analysis results.

Namespace:  OSIsoft.AF.Analysis
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.0.1156

Syntax

public bool Run()
Public Function Run As Boolean

Dim instance As AFCase
Dim returnValue As Boolean

returnValue = instance.Run()
public:
bool Run()
member Run : unit -> bool 

Return Value

Type: Boolean
Returns true if the operation was successful. Any messages generated during the case run process will be output using AFTrace.

Remarks

The AFAnalysisRule used by this method is defined by the AFAnalysis that owns this case. This method is usually called after collecting the transfers if this is a AFCase used for model analysis (using the CollectTransfers() method) and collecting the input values (using the CollectInputs() method) and any necessary adjustments have been made to the attribute values (using the AFAdjustments.Add method). The RunTime property is updated whenever this method is called and returns without errors.

The Before event is raised before this operation is started to allow clients an opportunity to perform any required validation or processing before starting the operation. The operation can also be canceled by setting the Cancel property of the AFCaseCancelEventArgs parameter to the event. The Executing event is raised during the execution of the operation to allow clients an opportunity to cancel and not wait for the operation to complete. The After event is raised after the operation is completed to allow clients an opportunity to perform any post-processing.

Security note Security Note
You must have Execute security rights to run a case.

Version Information

AFSDK


See Also

Was this topic helpful?