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:
- Open PreventCompleteWithNoCause.csproj and connect any broken references. The following required DLLs are installed by default in Program Files\Miner and Miner\Responder\Client.
- Build the solution.
- Open the SubmitRulesConfig.xml file typically stored here: C:\Program Files (x86)\Miner and Miner\Responder\Server.
- Add the following RuleClass to the PreProcessRules section of the config file:
<b:RuleClass Key="" Type="PreventCompleteWithNoCause.PreventCompleteWithNoCauseRule, PreventCompleteWithNoCause" />
- Save the config file and restart services and Responder to see changes.
All of the files shown below are required for the project to compile successfully. Download these files from the ArcFM Solution Resource Center here.
|PreventCompleteWithNoCause.csproj||C# project containing the code.|
|PreventCompleteWithNoCauseRule.cs||Class module that contains the ability to prevent the completion of an incident if the Cause field has not been filled out.|
|AssemblyInfo.cs||Class module to support the project.|