Category: Reference

Whitepaper: Blawx for Rules as Code – A Roadmap

Recently, particularly in commonwealth countries of the world, there has been increasing interest among public servants, including legislative drafters, regulators, and service delivery experts, in the concept of “Rules As Code.” Rules as Code is one part of a larger conversation about how legislation, regulation, policy, and other formal rules can be made more effective. …

The Blawx Reasoner API

The alpha version of the Blawx Reasoner API is located at https://www.blawx.com/reasoner6.php. It accepts urlencoded POST requests, and expects two parameters: code, and data. Code is set to the contents of a .blawx file. Data is set to a JSON package of data. Blawx will process the JSON package by converting it into a data …

Data Property

The data property block is designed to allow you to write Blawx code about object attributes before you have defined those attributes inside the Blawx interface. In order to allow Blawx to power other applications on the internet, it needs to be able to collect data from those other applications. The Blawx Reasoner API allows …

Data Dictionaries

The Data section of the toolbox allows you to deal with data that is sent to the Blawx.com server at run-time by other pieces of software that connect over the Blawx Reasoner API. When writing and testing your code, you will want to set out test data that works in the same way as data …

Blawx Module for Docassemble

Docassemble is a popular and sophisticated open source tool for generating web-based legal interviews and doing document assembly on the basis of the data collected. In order to demonstrate the use of the Blawx Reasoner API, we have developed a Python module for use in Docassemble that allows you to easily use Blawx code inside …

Facts, Rules, and Queries

The vast majority of the encoding that you do in Blawx will be done setting out Facts, Rules, and Queries. They are the starting points for the encoding process. When you encode laws, you will do it by setting out facts and rules. Then, when you want to use the laws you have encoded, you …

Blawx User Interface Tour

In Blawx you encode laws by sticking puzzle pieces together on a table. The table is called your “workspace”. The place you grab the puzzle pieces from is called the “toolbox.” In the picture below, the area outlined in green is the toolbox, and the area on the right is the workspace. The toolbox is …