Spanish Total.js
Italiano
Documentazione Per agenti IA
Indice

Connect apps with TMS

Receive events from Total.js apps and send events to them.

.md Sito web

Questa pagina non è ancora tradotta. Stai leggendo l’originale.

In questa pagina

Total.js Message Service (TMS) lets Total.js apps publish events and accept events from other apps. When you add an app as a TMS source, its events appear in FlowOS as components.

Before you start

The app must have TMS turned on. You need:

  • the address of its TMS endpoint, for example https://app.example.com/$tms/;
  • its TMS token, if it has one.

For OpenPlatform, see Total.js Message Service in the OpenPlatform documentation.

Add a source

  1. Select Add (plus), then TMS sources.
  2. Select Add source.
  3. Enter the address in TMS endpoint.
  4. Enter the token in Token, or leave it empty if the app has none.
  5. Select SUBMIT.

The Add source window with the TMS endpoint and Token fields

The source appears in the TMS sources list with a dot: green when FlowOS is connected to the app, red when it is not.

The new components

The components of the app appear in two groups on the left. Each one shows the name of the app.

The Publish group with orders_status and the Subscribe group with orders_create

GroupWhat the component does
SubscribeSends a message into your flow each time the app publishes this event. It has an Output.
PublishSends the data it receives to the app. It has an Input.

Drag them onto the canvas, connect them and select APPLY. For a full example, see React to events from a Total.js app.

Change or remove a source

Open TMS sources and use the pencil to change a source or the trash icon to remove it.

The token is saved in databases/flow.json and in the file that Download design creates.

Fatto in Europa