> For the complete documentation index, see [llms.txt](https://docs.flightwatching.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flightwatching.com/user-manual/designer-user-manual/examples/flow-of-the-data.md).

# flow of the data

An example of the flow of the data from the aircraft to desired action on wilco platform.

Let's imagine you would like to be informed whenever the aircraft has landed. You'd like to tag the message and create the parameter that contains value of the airport (if that exists).&#x20;

## From RAW aircraft data to wilco layout

Aircraft sends the raw data (OOOI) that could be parsed as explained in the chapter [create layout](/user-manual/designer-user-manual/edit-layouts/create-layout/report-parser.md). In this example we are interested in the **ON** report:&#x20;

<div><figure><img src="https://4203901285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LucrvGdSn3RONbIcfqh%2Fuploads%2FNeEjR7PbykQzUFFCEd60%2FScreenshot%202023-11-21%20at%2010.05.11.png?alt=media&amp;token=1aaa8e5f-dbd1-49ef-9107-2167b59c97fc" alt="" width="375"><figcaption><p>raw data from aircraft (de-identified)</p></figcaption></figure> <figure><img src="https://4203901285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LucrvGdSn3RONbIcfqh%2Fuploads%2FxltZuRw9cAj80B7gvVwb%2FScreenshot%202023-11-21%20at%2010.15.38.png?alt=media&amp;token=89f58fb9-4a2c-42b5-ae09-291d0a8fab76" alt="" width="375"><figcaption><p>describe layout page</p></figcaption></figure></div>

We are interested in the value of the airport. To get that, we first need to parse information from the raw data - FROM/TO (here: LTFM, LFBO). In wilco, that specific information is coded by using [FW.setTo](/user-manual/designer-user-manual/edit-ifts/ift-v2/fw.setto.md) and [FW.setFrom](/user-manual/designer-user-manual/edit-ifts/ift-v2/fw.setfrom.md):

<figure><img src="https://4203901285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LucrvGdSn3RONbIcfqh%2Fuploads%2FKrCQtXubGScIY521zbm1%2FScreenshot%202023-11-21%20at%2010.14.34.png?alt=media&amp;token=5bb2c124-ad49-4aae-afc0-5193244389dc" alt="" width="375"><figcaption><p>parsing of airport information</p></figcaption></figure>

Now, all the future layouts will automatically decode the information FROM/TO of that aircraft. Having that information, we can proceed with creation of the IFT.

## From data reception to wilco action

From here, we can now create the IFT that would do what you want, as explained at [IFT at Layout](/user-manual/designer-user-manual/edit-layouts/ift-at-layout.md) chapter.&#x20;

{% hint style="info" %}
***NOTE**: **a pre-requisite is to know javascript.***

***NOTE:  help on*** [***IFT V2.0***](/user-manual/designer-user-manual/edit-ifts/ift-v2.md)***.***
{% endhint %}

### Send email on reception of the report

Since you would like to be informed whenever the aircraft has landed, the IFT shall be created at reception of the report. We will use here the code [FW.email](/user-manual/designer-user-manual/edit-ifts/ift-v2/fw.email.md), and it could look as below:

<figure><img src="https://4203901285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LucrvGdSn3RONbIcfqh%2Fuploads%2F3r9mZze1HGa28xV5WNzA%2FScreenshot%202023-11-21%20at%2010.29.01.png?alt=media&amp;token=f2291a68-ea55-49d8-b6f3-573abd5ffe8b" alt="" width="375"><figcaption><p>email alert set up</p></figcaption></figure>

If you test the alert, you'll have a quick look up at the result:

<figure><img src="https://4203901285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LucrvGdSn3RONbIcfqh%2Fuploads%2FFOrSJG0VxOm4JZo0unzH%2FScreenshot%202023-11-21%20at%2010.30.05.png?alt=media&amp;token=d97abd55-9433-47d1-aac8-c26e878d10b7" alt="" width="375"><figcaption></figcaption></figure>

After *try with email* you could see what it would look like at your email inbox:

<div><figure><img src="https://4203901285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LucrvGdSn3RONbIcfqh%2Fuploads%2F5pQqsZfBkweBOc1yhRdy%2FScreenshot%202023-11-21%20at%2010.31.14.png?alt=media&amp;token=b15a4ea6-05e6-4684-bf52-3b90e38458e6" alt=""><figcaption></figcaption></figure> <figure><img src="https://4203901285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LucrvGdSn3RONbIcfqh%2Fuploads%2FmGPd25mmQVrUxEcRfaDg%2FScreenshot%202023-11-21%20at%2010.33.13.png?alt=media&amp;token=c6884992-0e59-4ff1-878b-195501010ed7" alt=""><figcaption></figcaption></figure></div>

### Tag message&#x20;

In order to tag the message, we will use the code [FW.tag](/user-manual/designer-user-manual/edit-ifts/ift-v2/fw.tag.md):&#x20;

<figure><img src="https://4203901285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LucrvGdSn3RONbIcfqh%2Fuploads%2FYkh5x06joH8yWfCllnaG%2FScreenshot%202023-11-21%20at%2010.36.13.png?alt=media&amp;token=f628efc0-c3be-411f-bc24-ed5181ef68db" alt="" width="375"><figcaption><p>code to tag message</p></figcaption></figure>

All the future messages will be taged on timeline. If you'd like to see the message that you're working on to be tagged, you'll need to reparse it (see the [edit layout ](/user-manual/designer-user-manual/edit-layouts/create-layout/report-parser.md)section).&#x20;

### Create parameter

To create the parameter that contains value of the airport (if that exists), we would use the [FW.set ](/user-manual/designer-user-manual/edit-ifts/ift-v2/fw.set.md)code.

<figure><img src="https://4203901285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LucrvGdSn3RONbIcfqh%2Fuploads%2F6y1pn3f4Ydv2XBEPzKua%2FScreenshot%202023-11-21%20at%2010.46.41.png?alt=media&amp;token=433417a0-1278-4ecf-8ad2-ed367d35b925" alt="" width="375"><figcaption></figcaption></figure>

## Results of IFTs

Parsed message would now look different on the timeline. We should see the tag (LANDED) and the icon that the email was sent:

<figure><img src="https://4203901285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LucrvGdSn3RONbIcfqh%2Fuploads%2FUIqXSiTkNjk0pgxGTt05%2FScreenshot%202023-11-21%20at%2010.57.44.png?alt=media&amp;token=463f7ae9-8e8c-482a-9999-4b656ad905de" alt="" width="375"><figcaption></figcaption></figure>

While the message itself will contain the parameter (airport) created:

<figure><img src="https://4203901285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LucrvGdSn3RONbIcfqh%2Fuploads%2FT964sUNHjMq9ac8tCxNO%2FScreenshot%202023-11-21%20at%2010.52.02.png?alt=media&amp;token=a14f7be8-5d37-4867-b9ce-4fbc8a56cf25" alt="" width="375"><figcaption></figcaption></figure>
