Implement Low-Code Projects

The next step after modelling a project is to implement it. The following chapter describe how to proceed with the implementation of a Low-Code Project.

In order to implement behavior for a project Commands, Services, Events and Operations are used. These elements have scope in regard to what they can call or be called from. Below is a description of each element and its scope of elements they can call it.

Factory Command

  • creates an instance of a Root Entity and persists it in the data-store

  • inside a factory command, Events can be published

  • inside a factory command's implementation, there is a function called available(). This is used to check the necessary pre-conditions of the command. If the function returns true then the command will be executed, otherwise, the command will not be executed at all

Instance Command

  • manipulates the values of one or more Properties of an already existing instance of an Entity

  • inside an instance command, Events can be published

  • inside an instance command's implementation, there is a function called available(). This is used to check the necessary pre-conditions of the command. If the function returns true then the command will be executed, otherwise, the command will not be executed at all

Domain Service

  • can perform Operations throughout different Domain Namespaces

  • inside a domain service, you can call Factory Commands, Instance Commands, Domain Services, and Events

Events

  • they are published to indicate that some state has changed

  • an event that is successfully published will automatically execute the script of the Agent that is bound to this event

Agents

  • when an Event is triggered, then agents are automatically executed as consequence of the action that triggered the Event

  • inside agents, you can call Factory Commands, Instance Commands, Domain Services and trigger Events

Operation

  • can perform operations throughout different Domain Namespaces

  • inside operations, you can call Factory Commands, Instance Commands and Domain Services

Scope Overview

Factory CommandInstance CommandDomain ServiceEventsAgentsOperation
Factory Commando
Instance Commando
Domain Serviceoooo
Eventso
Agentsoooo
Operationooo