top of page

Wading into a Decision

MORE THAN HALF OF OUR RULE AUTHORS IDENTIFY AS NON-DEVELOPERS OR BUSINESS ANALYSTS. THAT'S GREAT NEWS FOR THE BUSINESS SINCE THEY ARE CLOSEST TO THE PROBLEM. AT THE SAME TIME, IT MAKES HONING YOUR TEAM'S RULE AUTHORING PRACTICE CRITICAL. DECISIONS (INCLUDING ALL OF THE UNDERLYING RULE SETS) SIT IN FRONT OF THE MOST CRITICAL ASPECTS OF BUSINESS PROCESS AND REVENUE STREAMS. WE BELIEVE BEST PRACTICES (JUST LIKE IN SOFTWARE DEVELOPMENT) MAKE RULE AUTHORING SAFE AND PREDICTABLE. BELOW ARE SOME PRACTICES WE FOLLOW TO KICK-START A PROJECT.

Asking Questions Ask your questions early and often. While there are many good starting points for a project, even seasoned practitioners need to step back when they fall into dead-ends. Consider the following questions:

  • When are you ready to implement a decision as a rule application?

  • How do you know you have enough requirements and a useful level of detail?

  • Should you start writing rules without a stable data model (entities)?

  • What if it is all wrong and you need to start over? Worse, what will the team think if the project goes back to square one?

Generally, rule authoring is the easy part. Harvesting and expressing requirements is the hard work. Most projects hit unanticipated walls during the requirements gathering process. That being said, you can make a lot of progress even with a subset of your known requirements from a spreadsheet or document. Once you write the first couple of rules the process of harvesting requirements and converting them to new rules accelerates quickly. Rule sets that eventually hit 5,000 to 10,000 rules need more people and practice, but let’s save that for another time and focus on the basics for now.

Courage When faced with a blank canvas, new painters sometimes struggle to begin. Experienced painters facing a blank canvas will often say “just paint through it.” From a decision management point of view, we say “keep engaging with your project.” You do this by analysing your data and the rules that go with it. Eventually, the rule set you want will emerge in your own vocabulary and phrasing. You will know you are on the right track when new requirements stop forcing changes to entities (your data model) or the flow structures of your overall decision. Getting to a working prototype is a key milestone.

Know the End Game Solving complex problems requires activities that simplify and break down elements of the problem. Knowing what’s important guides you and the team. Are we still producing a result that we want? Keep your focus on one working decision.

Test / Implement Feedback Loop Once you are deep into authoring, you start asking questions about subtle variants. For example, you might ask yourself, “Is this decision for every case or does this apply only within a discrete set of boundaries?” The boundaries might include types of policies, risk profiles, regions, or other previously unconsidered parts of your business processes. Do any variants break what we have implemented, or worse, take us off course? Prove that your decision works for concrete outcomes (specific test cases with as-real-as-possible data) and move decision variants out of your work-stream if they are out of scope for your initial effort. Delay what can come later: track your variant requirements in a backlog somewhere once you have met your goal. Stated another way, avoid optimizing (complicating) at the early stages of your initial effort. There will be time to improve what you have in future iterations against that growing backlog.

A note about testing As a best practice, work with one of your developers to save off entity states from irVerify. A useful tip is to save the result state also (as a separate test data file) in order to permit regression-style testing. Consider setting up a batch process that executes the entity state and compares results. If the results don’t match, then we can fix the rule set or modify the tests. Many teams skimp on this practice and suffer once they are in production. A robust testing practice will prove your rule application isn’t adversely affected by future changes.

Recognise Data Rules contain data and concepts that matter. Data must be specific even if your initial free-form rules (things in spreadsheets and documents) lack precision. If there are two or more of a noun, it probably needs to be represented as a collection. If things relate to each other like “address to customer”, then you are likely looking at a relationship that should be defined in your data model between two objects. New rule authors unfamiliar with data modeling concepts should review datatypes, structures, data relationships, and general data modeling best practices before going too far. Even if more technical team members are responsible for modeling the data in your rule application, it’s critical that you understand the data relationships they’ve arranged, and that you provide feedback if anything appears odd or missing.

Break Down the Problem Decisions related to underwriting, eligibility, risk, fraud, and other complex areas encounter difficult problems early in a project. Often, you’ll see a commingle of complex data models mixed with severe variation in requirements. In mortgage lending, there are multiple addresses, borrowers, dependencies on state-specific requirements, regulatory mandates, and so on. When you run into this kind of roadblock, pair with someone like your team’s architect or a developer who is responsible for integration. The checklist below should be of help:

  • Do we know what’s going IN and OUT of this decision model as entities?

  • What steps are in this decision (validation, approval, feedback, errors, and notifications)?

  • Can we narrow the scope of our decision? A smaller working system is more valuable than a larger but nonfunctional one. Try focusing on specific regions, types, anything that can reduce surface area but still deliver completeness end-to-end.

  • Do your entities and relationships make rule authoring cumbersome? Can we at least write one rule using what’s here and then simplify? For example, let’s use a For Each rule or an existing business language template that walks through a collection. Step back after it’s working and look for improvements. Looking for the “best” implementation adds too much pressure while trying to solve a problem the first time.

  • Is it obvious to others that your rule-sets have been created for a specific purpose?

  • Explore vocabulary templates to make rules more readable. Is it critical that an external reader (eg, a regulator) understand what this decision does? If yes, then consider using vocabulary to simplify the way your logic is expressed.

  • If you don’t like your rule implementation, but it only occurs once, spend time on the remaining parts of the rule application before applying vocabulary. Otherwise, applying vocabulary to simplify frequently used phrases accelerates delivery.

  • Above all, time box your effort while you are stuck. Pair with other team members until your prototype is working.

If you have any questions or require further information on InRule, please contact us. We are more than happy to help! *Original article: https://www.inrule.com/resources/blog/good-beginnings-wading-into-a-decision/

Comments


bottom of page