# Realtime tag interaction from the alarm pipeline

**URL:** <https://forum.inductiveautomation.com/t/realtime-tag-interaction-from-the-alarm-pipeline/9583>\
**Category:** Ignition\
**Created:** [January 21, 2015, 5:07pm UTC](https://forum.inductiveautomation.com/t/realtime-tag-interaction-from-the-alarm-pipeline/9583 "2015-01-21T17:07:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thinky](https://avatars.discourse-cdn.com/v4/letter/t/97f17d/32.png) [@Thinky](https://forum.inductiveautomation.com/u/Thinky)\
**Post date:** [January 21, 2015, 5:07pm UTC](https://forum.inductiveautomation.com/t/realtime-tag-interaction-from-the-alarm-pipeline/9583/1 "2015-01-21T17:07:58Z")

</div>

Hi,

I defined a pipeline that starts with a delay and after which we should take a branch depending on another tag value.  
Using alarm associated data to reference this later tag name, it seems its value is sampled while entering into the pipeline (i.e. before the delay) and not after the delay.  
How to fix that ?

Moreover how to set another tag value from within the pipeline ? Should I use a script for it ?

Thank you for your answers,

Rgds  
Olivier

---

<div class="post-metadata">

**Author:** ![Thinky](https://avatars.discourse-cdn.com/v4/letter/t/97f17d/32.png) [@Thinky](https://forum.inductiveautomation.com/u/Thinky)\
**Post date:** [January 27, 2015, 1:24pm UTC](https://forum.inductiveautomation.com/t/realtime-tag-interaction-from-the-alarm-pipeline/9583/2 "2015-01-27T13:24:52Z")

</div>

I figured out how to proceed.  
The point is that Ignition looks super simple till you start playing with scripts 😕 and try to figure out how get data out of it…

Got the alarm state from system.alarm.queryStatus() as the branching condition and then used system.tag.write() to write the output. To make it reusable, I did write it as a shared function called from the pipeline with the event as parameter.

Learnt smthg ! ![:/](https://us1.discourse-cdn.com/inductiveautomation/original/1X/8e510869ae26fbd7ab76e1e731ceea2054ef109c.gif "Hrm")  
O
