evl-lib

4. Symbols and resources

@Flow builds the structure. @EVL.* annotations only decide how a box is drawn. EVL never looks at Spring, Micronaut, Ktor, JPA or any other framework annotation; tag what matters with EVL’s own.

The symbols

Annotation Put it on Drawn as
@EVL.Endpoint(method, path, caller, description) the method that serves a request (prefix path may sit on the class) box with METHOD /path; caller adds a stick figure
@EVL.Job(schedule, trigger, description) a scheduled or triggered job method clock; the schedule or trigger shows under it
@EVL.Database(value, table, description) a repository or DAO class or interface cylinder
@EVL.Storage(value, description) a file or object storage client bucket
@EVL.Queue(value, description) a publisher or consumer of a topic or queue (repeat it for several topics) pipe
@EVL.Cache(value, ttl, description) a cache lightning bolt
@EVL.External(value, description) a client for a third-party service cloud
@EVL.Interface(value, description) a port or API boundary box with a lollipop
@EVL.Service(value, description) a component worth showing as a box box
@EVL.Actor(value, description) a person or system that calls in stick figure

value is the name shown on the map. If you leave it out, the class name is used.

Resources

Database, Storage, Queue, Cache, External, Interface and Service are resources. You mark a resource once, on its class:

@EVL.Database("postgres")
public class AssetRepository { ... }

@EVL.Storage("Amazon S3")
public class S3Storage { ... }

@EVL.Queue("media.uploaded")
public class ImageEvents { ... }

Then EVL does the rest:

Steps that are a resource

When a @Flow method lives in a resource class, the step is drawn as that resource, with what it does as the caption:

@EVL.Database("postgres")
public class AssetRepository {
    @Flow(value = "image-upload>db", label = "Save pending asset")
    public Asset savePending(UploadRequest r) { ... }
}

On the image-upload level, step 2 is the postgres cylinder captioned “Save pending asset”.

Callers and jobs

The left edge of the map shows who starts each flow:

Callers and schedulers on the left

Next: Async steps and jobs