We are going to start by creating a new zipfile rule repository. Click the Repositories, New, ZipFile Repository menu. I’m going to save it in my demo solution folder, Claim Edits Sample, that I will be using in subsequent tutorials. [Name it ClaimEditsRepository.Zip] I am going to name the file Claim Edits Repository dot zip.

Now we have a rule repository. The only thing this repository contains is an Execution Plan. Before we can do much we need to reference any assemblies that contain the data objects we will be working with. I’m going to add a reference to my ClaimEditsSample.Data.Dll. Click Repositories->AddUpdateReference and I will browse the location of that DLL.

My data DLL is a bunch of plain-old-csharp-objects that look like this [Show the PDF on the screen]. The primary object, Claim, represents a medical claim. It contains a doctor and a patient object. It also contains an array of service objects.

Once we have done that we will see an assemblies item in the Repository Explorer that contains a list of all referenced assemblies. Click the execution plan, go to the arguments tab. Create an argument called “Claim”. Then click the “Argument type” dropdown and select the “browse for types” option. In the treeview I can find my ClaimEditsSample.Data namespace and I will select the Claim object. Once that is done I will hit “save” to save the execution plan to the repository.

Now I can add new rules that use this argument. Click the menu, Rules->AddEmptyRule. I’m going to name this Rule “EraseTaxIdFor333”. Drag an IF activity into the center of the rule editor. Inside of the IF Condition field, type “Claim.DestinationId = 333”. Next, drag an assignment activity into the body of the if activity. I’m going to say “Claim.Doctor.TaxId = String.Empty which will erase any Tax ID number that is in that field. I’m going to click “save” to save that rule to the repository.

We now have a simple Rule Repository that can accept a Claim object argument and run special rules against the object. In the next tutorial I will show you how to integrate this Rule Repository into your application.