×
Back to book

How does a codebot work in practice?

Codebots are bots that code, they take our design documentation and produce code. Exactly what do we need to give the bots for them to work and how can we make iterative changes?

The documentation that is provided to a codebot comes in the form of three diagrams:

  1. Entity,
  2. UI,
  3. Security

The What is an entity diagram? is where we define the data within our application (as business objects or entities), and the relationships between different entities. The entity diagram relates to the achitecture of the application and, as such, many related behaviours can be applied here. More details on the entity diagram can be found in Entity Diagram Basics.

The The User Interface Diagram is where we define our user interface pages and their contents. Behaviours which relate to UI elements can be applied here through the concept of a tile.

Finally, the Using the Security Diagram is where we define our groups and permissions, giving us full control over what groups can access what business objects.

These three diagrams combine and are provided as input into our codebot which then provides the code as output.

As the output code has a direct relationship with the input digrams, we can continually change these diagrams to keep updating our code. This can be done many times within a few minutes if required.

Key concepts