Process
A process is a stateful instantiation of a scenario. Specific users are assigned as the defined actors. At any moment you are at one particular state in the process. From that state, an actor can perform an action to progress to the next state.
A process is a deterministic projection, generated by processing events with the update instructions and state transitions.
Schema
https://schemas.letsflow.io/v1.0/process
Properties
id
idUUID
A unique identifier.
title
titlestring
The title of the process. This is copied from the scenario by default but can be updated at runtime through update instructions.
tags
tagsarray of strings
Tags can be used to find or filter processes. The tags are copied from the scenario but can be updated at runtime through update instructions.
Use some_flag as a flag or key:value as a pair.
scenario
scenarioscenario
The scenario the process is instantiated from. The scenario can't be modified at runtime.
actors
actorsmap of actors
A map of instantiated actors as defined by the actor schemas in the scenario.
vars
varsmap
Instantiated variables as defined in the scenario.
result
resultany
The result of the process. This is also a variable but can have significant meaning within an application.
current
currentcurrent state
The current state of the process. This is instantiated from one of the states defined in the scenario.
Current stateprevious
previousarray of log entries
Each state transition can be recorded in this array for display purposes only. The process itself maintains an exact log of events separately.
Previous lognext
nextarray of predicted states
The engine will add a next property to the process when requesting a prediction.
events
events List of events
For every action performed and every timeout, an event is added to the event list. The first event is always an instantiate event.
EventsAdditional properties
It's not possible to add custom properties to a process. You should be able to accomplish what you require using tags and variables.
Last updated
Was this helpful?