Hello,
Does the AF SDK provide a way to query the current recalculation status and/or get the recent history of recalculations made for a given AF analysis?
For context, I am developing a C# service in the AF SDK that uses the PIDataPipe to monitor some input tags being used in some analyses and queueing up those analyses for recalculation if there are any update events. Some of these analyses are dependent on another analysis, i.e., relying on the output of their parent analysis so it can be used as an input for themselves.
I am noticing that if someone were to use PI System Explorer to start a recalculation (selecting "Permanently delete data and recalculate" with "Recalculate dependent analyses" checked) for a parent analysis with multiple dependents, the PIDataPipe in my service will receive a bunch of insert events for the output point and will try to queue the recalculation for the dependent analyses itself. However, because "Recalculate dependent analyses" was checked in PI System Explorer, a recalculation for the dependent analyses will be issued already. I would like to catch this case and prevent my service from doing the recalculation a second time.
I see that the AF SDK provides access to the AFAnalysisService class, but none of the methods in there provide a way to get the recalculation status (e.g., if it's currently doing a recalculation within a certain range) or history of recent recalculation requests and its metadata (e.g., time range of the recalculation and if it ran successfully) within an analysis.
Thanks in advance!