We have prepared a new example of how to execute FlowStream, send data and receive a response.
Custom FlowStream execution
We have prepared a simple app (called FlowStreamExec
) that allows you to execute a custom FlowStream with some data and wait until the end of the message process. So you can use the FlowStream as a final workflow or a predefined algorithm in e.g. Serverless app.
We have prepared a simple function FUNC.exec()
in this app that creates a new FlowStream instance, then tries to find a component Exec
that makes a new FlowMessage
with the end
event. Finally, the end
event performs a callback with a transformed message data.
The FlowStreamExec app can work only with generated design, so you need to create/edit design in another app, e.g. TMS
or FlowStream
app. Please follow the readme file in the FlowStreamExec
repository.
Good to know:
- you can load FlowStream from various sources, not only from HDD
- you can trigger various kinds of data like String/Number/Object/Buffer/Date/Boolean/Stream
- the
Exec
component is used as the input/trigger component
Usage
The possibilities are enormous, and you can run your FlowStreams in various services or attach the FlowStream into the Serverless architecture on AWS.
Other posts from Total.js Platform
- 2024-04-19Installing Total.js v5: A Comprehensive Guide
- 2024-04-08How to create REST API using Total.js LessCode
- 2024-04-04Create UI parts visually with the power of Total.js UI Builder
- 2024-04-03Enhance your applications with Total.js v5 proxy functionality
- 2024-04-01March report 2024
- 2024-03-22How to scale your Total.js application with clusterization?
- 2024-03-01February report 2024
- 2024-02-19Building a CRUD API with Total.js: A Step-by-Step Guide
- 2024-02-01January report 2024
- 2024-01-18LessCode app