Skip to main content
Version: Next

Developer Documentation

This section is for developers who add their own business logic to EP — calculations, checks, integrations with other systems, generated documents.

Two Ways to Add Business Logic​

In EP, business logic runs as an operation. An operation is attached to an entity type and started either by a user (as an action — a button on the entity) or automatically (as a hook — on create, update or status change). There are two kinds of operations:

Lua Script OperationsService Functions
RunsInside EPIn your own service, outside EP
Written inLuaAny language (Python, Go, Rust, Java, …)
Reaches EP dataDirectly: reads and changes entities in one atomic runReceives the entity in the request; writes back through the REST API
Good forSmall calculations, checks, setting values, creating related entitiesIntegrations with other systems, heavy computation, generating files, existing libraries
DeploymentNothing to deploy — the script is part of the data modelYou run and operate the service

Both kinds are attached to entity types the same way — see Actions in the admin documentation and Actions & Hooks for the meta model.

Further Reading​