Rules as Code

What it means, and why we're doing it

Transformation Unit, DCS

Transformation

To be the world's most customer centric government,
we need to boldly rethink  the way we interact with customers
so we can make NSW government services both easy and effective
for customers and staff. 

Transformation

Often the interaction between rules is incomprehensible to mere humans...

Down arrow

The need for Rules as code

Why RAC?

Benefits of Rules as code

Benefits of Rules as code

What are we doing?

  • Manually translating prescriptive rules into computer code
  • Publishing this translation, so computer systems can use it
  • Testing our interpretation of the rules with clear, reproducible test data

Lets code the rules once

So that everyone uses the same ones
and
Rule changes are propagated across applications

Rules as code has the potential to:

  • Improve outcomes
  • Increase efficiency
  • Help make better rules

... for both our customers and staff

Lets do it better

  • By helping a computer to understand the rules, we ensure they are logical and make sense
  • Rules and computer systems can be integrated, changes can be modelled and outcomes tested
  • By giving customers the correct interpretation faster – we save them time and money

Core value proposition

Platform and process

Community Gaming Regulation 2020

Concept modelling

Concept Model?

Test Case - Example



						- name: Organisation is conducting a charity housie that is permitted
							period: 2020-07
							input:
								is_charity: True
								gaming_activity_is_charity_housie: True
								proceeds_to_benefitting_organisation: 3900
								gross_proceeds_from_gaming_activity: 4000
								total_expenses_for_conducting_gaming_activity: 100
								total_prize_value_from_single_gaming_session: 2000
								number_of_tickets: 40
							output:
								charity_housie__game_meets_criteria: True
								charity_housie__authority_required: False
						

Improved Customer Experience

Scalability

One of the best part about Rules as code is the reusability of the code

Graph We only have to code concepts such as, ‘What is a small business?' or 'The number of business days in a year’ once!
RaC in the media

Let us know how we can help you make compliance easier for your customers!

Questions?