PureEngage On-Premises

 View Only

Sign Up

  • 1.  PSDK/.NET: programmatically disable alarm condition

    Posted 04-30-2015 12:32
    Is it possible to disable and re-enable an alarm condition programmatically?  What I'm finding so far is that the State property is readonly. I know I can copy the alam condition to a variable, delete the alarm condition from configserver and recreate the alarm condtion using the copy, but there has to be a better way to do this programmatically.


  • 2.  RE: PSDK/.NET: programmatically disable alarm condition

    Posted 05-07-2015 10:47

    Hi,

    Please refer to  Platform SDK 8.1 API Reference.
    Genesyslab.Platform.ApplicationBlocks.ConfigurationObjectModel.CfgObjects ? CfgAlarmCondition ? State contains setter method.

    public Nullable<CfgObjectState> State { get; set; }

    Please refer to CfgObjectState to find all possible states:
    CFGNoObjectState
    CFGEnabled
    CFGDisabled
    CFGDeleted
    CFGMaxObjectState

    After you change the state do not forget to synchronizes changes in the class with Configuration Server via Save() method.

    Roman T