Semantius Logo

RACI

On this page

RACI names, for each process, the roles that are Responsible, Accountable, Consulted and Informed. Semantius keeps the matrix in four tables and enforces it in the database: a process gate ties a process to a state of an entity’s records, and a record that enters that state notifies or consults the roles the matrix names. Rules check the matrix with the JsonLogic operators is_raci_actor and has_consultation.

Only holders of admin can read and change the four tables.

Processes

A record of processes is one process, such as approving an order.

ColumnMeaning
nameThe process’s name, its label.
module_idThe module the process belongs to, or none. Deleting the module keeps the process, without a module.
process_keyA stable identifier: lowercase a-z, 0-9 and _, not starting with a digit. Required, and unique within the module, or among the processes without a module.
descriptionWhat the process is.
orderingA number to sort processes by.

Deleting a process deletes its assignments, its gates and its events.

RACI assignments

A record of raci_assignments gives a role one letter for a process: one cell of the matrix.

ColumnMeaning
process_idThe process.
role_idThe role given the letter. Required. Deleting the role deletes its assignments.
raciresponsible, accountable, consulted or informed. The record’s label repeats it.
consult_modeFor consulted only: read (passive, the default), notify (push) or block (gate). Only block changes what the database does; see RACI events.
originuser (the default) or system: whether a user or the platform created the row.
  • A process has at most one accountable role.
  • A role holds each letter at most once per process.

Process gates

A record of process_gates ties a process to the records of an entity.

ColumnMeaning
process_idThe process.
entityThe entity whose records the process governs. Required. Deleting the entity deletes its gates, and renaming it carries them along.
gate_kindapproval, submit_lock, ownership, create or transition. It describes the gate, and the record’s label repeats it; the database does not act on it.
to_stateThe state the gate is about, such as approved. Empty for a gate that targets no state.
state_columnThe column of the entity that holds the state. Default status. For an entity that follows the Conventions, set it to workflow_state.
emits_eventsWhether entering to_state writes RACI events.
  • One gate per process, entity, kind and state.
  • An is_a or has_a entity cannot have gates (90249).

RACI events

When a record is inserted in a gate’s to_state, or updated into it, and the gate’s emits_events is on, the database writes one record of raci_events for each consulted and each informed role of the gate’s process. Responsible and accountable roles get none.

ColumnMeaning
process_idThe process.
entity, record_idThe record that entered the state. record_id holds its key as text, whatever the key type.
raciconsulted or informed.
target_role_idThe role to notify or consult.
statuspending (the default), sent or acted. acted means the consulted role responded.
acted_atWhen the consulted role responded.
  • Every new event is put on the raci_notify queue, for whatever sends the notifications.
  • The database writes events as pending and never moves them on. Whoever handles an event sets sent, acted and acted_at with an update.
  • A blocking consultation holds the record’s state. While the record has a consulted event that is not acted, and that role’s assignment has consult_mode block, an update that changes a state column one of the entity’s gates names keeps the stored value. Every other change in the same update is saved, and nothing replays the held change once the consultation is acted. The consultation is raised by entering the state, so it holds the record’s next move. For example, a record that enters approved stays approved until the consulted roles have responded.
  • An entity or a role that events name cannot be deleted.