Sample - Prevent Complete with No Cause

Version 3

    Versions: 10.1.1 - current

    Product Availability: Responder

     

    This project sample illustrates how to prevent an incident from being marked as complete if the Cause field does not have a value.


    How to Implement:

    1. Open PreventCompleteWithNoCause.csproj and connect any broken references. The following required DLLs are installed by default in Program Files\Miner and Miner\Responder\Client.        
      • Miner.Data.Access
      • Miner.Data.Configuration
      • Miner.Data.Decoration
      • Miner.Responder.Model
      • Miner.Responder.Shared
      • Miner.Responder.Windows
    2. Build the solution.
    3. Open the SubmitRulesConfig.xml file typically stored here: C:\Program Files (x86)\Miner and Miner\Responder\Server.
    4. Add the following RuleClass to the PreProcessRules section of the config file:

    <b:RuleClass Key="" Type="PreventCompleteWithNoCause.PreventCompleteWithNoCauseRule, PreventCompleteWithNoCause" />

    1. Save the config file and restart services and Responder to see changes.


    Requires:

    All of the files shown below are required for the project to compile successfully. Download these files from the ArcFM Solution Resource Center here.

     

    FileDescription
    PreventCompleteWithNoCause.csprojC# project containing the code.
    PreventCompleteWithNoCauseRule.csClass module that contains the ability to prevent the completion of an incident if the Cause field has not been filled out.
    AssemblyInfo.csClass module to support the project.