<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Tracking Broadcast events</title><link>https://answers.axonivy.com/questions/2754/tracking-broadcast-events</link><description>&lt;p&gt;Hy there,&lt;/p&gt;
&lt;p&gt;In our solution there is sometimes the problem that the Data from Task A overwirte the Data from Task B. This happen if we open the Task parallel and there is a ria broadcast Event.
The big problem is now to find out which event causes the bug. Is there a way to track, log or query the happend Broadcasts for a Task or a Case or over all? &lt;/p&gt;
&lt;p&gt;kind regards
Thomas Wirz&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2754/tracking-broadcast-events" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 17 Jul 2017 04:25:32 -0400</lastBuildDate><item><title>Answer by Thomas Wirz</title><link>https://answers.axonivy.com/questions/2754/tracking-broadcast-events/2762</link><description>&lt;p&gt;That's what I'm looking for. Thank you.&lt;/p&gt;
&lt;p&gt;For other users looking for this. Here is my actual log4j config:&lt;/p&gt;
&lt;p&gt;Logger&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
&amp;lt;logger name="ch.ivyteam.ivy.richdialog.exec.internal.panel" additivity="false"&amp;gt;
            &amp;lt;level value="debug"/&amp;gt;
            &amp;lt;appender-ref ref="FileLog2"/&amp;gt; 
 &amp;lt;/logger&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;

&lt;p&gt;Appender&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
   &amp;lt;appender name="FileLog2" class="org.apache.log4j.DailyRollingFileAppender"&amp;gt; 
       &amp;lt;param name="File" value="Y:/Temp_ToRemove/ch.ivyteam.ivy.broadcast.log"/&amp;gt; 
       &amp;lt;param name="DatePattern" value="'.'yyyy-MM-dd"/&amp;gt; 
       &amp;lt;layout class="org.apache.log4j.IvyLog4jLayout"&amp;gt; 
          &amp;lt;param name="DateFormat" value="HH:mm:ss.SSS"/&amp;gt;
       &amp;lt;/layout&amp;gt; 
    &amp;lt;filter class="org.apache.log4j.varia.StringMatchFilter"&amp;gt;
        &amp;lt;param name="StringToMatch" value="Scheduling fire event" /&amp;gt;
        &amp;lt;param name="AcceptOnMatch" value="true" /&amp;gt;
    &amp;lt;/filter&amp;gt;
    &amp;lt;filter class="org.apache.log4j.varia.DenyAllFilter" /&amp;gt; 
  &amp;lt;/appender&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Wirz</dc:creator><pubDate>Mon, 17 Jul 2017 04:25:32 -0400</pubDate><guid>https://answers.axonivy.com/questions/2754/tracking-broadcast-events/2762</guid></item><item><title>Answer by Flavio Sadeghi</title><link>https://answers.axonivy.com/questions/2754/tracking-broadcast-events/2758</link><description>&lt;p&gt;There is a logger which logs on DEBUG when a event gets prepared to be fired on the class &lt;code&gt;ch.ivyteam.ivy.richdialog.exec.internal.panel.RichDialogPanelImpl&lt;/code&gt;. The message is like &lt;code&gt;Scheduling 'fire event' &amp;lt;{0}&amp;gt; with attachment &amp;lt;{1}&amp;gt; (from panel &amp;lt;{2}&amp;gt;)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I can't say if this log output will help to find the corresponding event source. Maybe a own log-output will give clearer results.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Flavio Sadeghi</dc:creator><pubDate>Fri, 14 Jul 2017 07:49:57 -0400</pubDate><guid>https://answers.axonivy.com/questions/2754/tracking-broadcast-events/2758</guid></item><item><title>Comment by Thomas Wirz on Thomas Wirz's question</title><link>https://answers.axonivy.com/questions/2754/tracking-broadcast-events#2756</link><description>&lt;p&gt;Thank you for your answer.&lt;/p&gt;
&lt;p&gt;We do not open one task parallel two times. We open different Tasks (Task A and Task B).
After they are both open the user for example press a Button and in the Dialog procces logic the Broadcast event will be fired.
Both Tasks catches the event.
The data in the Broadcastevent will be written to our Database for both Tasks. So, one of the Tasks is now linked to wrong data.&lt;/p&gt;
&lt;p&gt;We allready got a solution to solve the problem.
But we don't know which Broadcast in the solution causes the Problem. Therefore my Question how get information about which Broadcast was fired when, for which tasks?&lt;/p&gt;
&lt;p&gt;kind regards
Thomas&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Wirz</dc:creator><pubDate>Fri, 14 Jul 2017 07:02:11 -0400</pubDate><guid>https://answers.axonivy.com/questions/2754/tracking-broadcast-events#2756</guid></item><item><title>Comment by Flavio Sadeghi on Thomas Wirz's question</title><link>https://answers.axonivy.com/questions/2754/tracking-broadcast-events#2755</link><description>&lt;p&gt;Hello Thomas Wirz. Technically it is not possible to start the same task parallel. So, which data do you mean. Data in a Database?
However, a possible solution could be to add a flag on the broadcasting event (e.g. 'handled'). Handlers do their work only if the flag is false. The first handler sets the flag to true so that all others do not process its logic.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Flavio Sadeghi</dc:creator><pubDate>Fri, 14 Jul 2017 06:37:59 -0400</pubDate><guid>https://answers.axonivy.com/questions/2754/tracking-broadcast-events#2755</guid></item></channel></rss>