Platform
Run a Flow
Run a Flow in Laminar
Now that you have a Workspace and a Flow, you can run your Flow.
You can first run your flow without any data transformations with some simple input data.
We’ll use the following input data:
{
"message": "Hello lam",
"foo": "delete me",
"http_status": "200"
}
- From your Workspace Dashboard, click Create Flow on the bottom left of the Flows table.
- Give your Flow a name and a description and click Create Flow.
- Add input data for the test by pasting the JSON above into the Input field.
We’ll now add a simple transformation to our Flow.
# Remove some fields
del(.foo)
# Add a timestamp
.timestamp = now()
# Parse HTTP status code into local variable
http_status_code = parse_int!(.http_status)
del(.http_status)
# Add status
if http_status_code >= 200 && http_status_code <= 299 {
.status = "success"
} else {
.status = "error"
}
Our Flow will take the input data and transform it into the following output data:
{ -> {
"message": "Hello lam", "message": "Hello lam",
"foo": "delete me", -> "status": "success"
"http_status": "200" "timestamp": "2024-01-29T12:00:00Z"
} -> }
- In the Flow Editor, add a program to your Flow in Lam, and click Update Flow.
- Click Run Flow, and you should see your transformed output data.
Amazing! 🎉 You’ve just run your first Flow in Laminar.
Now you’ll want to run your Flow with real data using Laminar’s API.
Was this page helpful?