<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to get listener? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138508#M97079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't understand.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me clarify the task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the next problem. Imagine that you have an application A and another application B. They work with the same instance of some business process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In A I created a listener and it works well when I do some steps of business process from A. But when I do some steps from B, A's listener&amp;nbsp; doesn't catch any actions which have done from B.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to let A's listener to react on actions which have happened in B?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anton Fenske.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Apr 2013 14:32:59 GMT</pubDate>
    <dc:creator>afenske</dc:creator>
    <dc:date>2013-04-22T14:32:59Z</dc:date>
    <item>
      <title>How to get listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138503#M97074</link>
      <description>Hello.I've got a problem. I have a business process and a client, which is written in Eclipse RCP. My client interacts with the business process through Activiti API.How can I determine the moment when there is a new task in the queue? In other words, I want to add a listener on the client to catch</description>
      <pubDate>Fri, 12 Apr 2013 08:09:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138503#M97074</guid>
      <dc:creator>afenske</dc:creator>
      <dc:date>2013-04-12T08:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138504#M97075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If using Activiti version prior to 5.12 you can register a BpmnParseListener like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;configuration.getPreParseListeners().add(new MyBPMNPreParseListener());&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;before you call &lt;/SPAN&gt;&lt;CODE&gt;configuration.buildProcessEngine()&lt;/CODE&gt;&lt;SPAN&gt; method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can then register task listeners within your MyBPMNPreParseListener:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public void parseUserTask(Element elem, ScopeImpl scope, ActivityImpl activity)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TaskDefinition definition = ((UserTaskActivityBehavior) activity.getActivityBehavior()).&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; definition.addTaskListener(TaskListener.EVENTNAME_CREATE, new MyTaskListener()); // MyTaskListener implements org.activiti.engine.delegate.TaskListener&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;In 5.12+ versions you should use the new BpmnParseHandler approach, wich basically gives you the same functionality (hovewever, you can't&amp;nbsp; access the XML structure of a task - this will propably be available in 5.13 version).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 10:42:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138504#M97075</guid>
      <dc:creator>pkromolowski</dc:creator>
      <dc:date>2013-04-12T10:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138505#M97076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, Przemek Kromolowski.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 14:49:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138505#M97076</guid>
      <dc:creator>afenske</dc:creator>
      <dc:date>2013-04-12T14:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138506#M97077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I encountered a problem. Suggested approach works well just when you do some actions within the same application where you created a listener. If you try to complete some action from another app, for example, activiti explorer, listener won't catch that moment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anton Fenske.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 08:18:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138506#M97077</guid>
      <dc:creator>afenske</dc:creator>
      <dc:date>2013-04-22T08:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138507#M97078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, that is indeed correct. If you want to use it in Explorer, the process engine config must be updated + the relevant classes must be put on the classpath.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 10:09:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138507#M97078</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-04-22T10:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138508#M97079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't understand.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me clarify the task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the next problem. Imagine that you have an application A and another application B. They work with the same instance of some business process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In A I created a listener and it works well when I do some steps of business process from A. But when I do some steps from B, A's listener&amp;nbsp; doesn't catch any actions which have done from B.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to let A's listener to react on actions which have happened in B?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anton Fenske.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 14:32:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138508#M97079</guid>
      <dc:creator>afenske</dc:creator>
      <dc:date>2013-04-22T14:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138509#M97080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; Is it possible to let A's listener to react on actions which have happened in B?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Clarification was not needed, I did understand what you mean. And my response stays the same: if you want the listeners to fire on both A and B you need to configure both A and B to have the same configuration: same process engine config + same listener classes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 07:14:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138509#M97080</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-04-24T07:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138510#M97081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried to do it. I launched two the same apps, but I recognized that listener worked just from the process which I had used before event was happened and listener in another app didn't react to that event.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 13:12:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138510#M97081</guid>
      <dc:creator>afenske</dc:creator>
      <dc:date>2013-04-25T13:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138511#M97082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't really get what you try to do. I read your original question and it seems to me you just need to fire an event on the task creation to some queue (outside of Activiti) that then acts upon that. And the way to do it, is exactly how the first response (from Przemek) describes it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Is it possible to let A's listener to react on actions which have happened in B?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you clarify that with some BPMN? Cause I really don't get what exactly you try to do.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 08:20:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138511#M97082</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-04-30T08:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138512#M97083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok. We have two user tasks. Kermit uses the first one to select a user who will complete the second task. The problem is to fire some event, which will be signal about a new task creation, from&amp;nbsp; those client who will be selected by kermit in the first task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you give an example of a necessary task handler and an activiti-config.xml file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bpmn file is in the attacnment. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 08:07:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138512#M97083</guid>
      <dc:creator>afenske</dc:creator>
      <dc:date>2013-05-06T08:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138513#M97084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Judging from your process, you already have a task-listener attached to the task (ru.cniieisu.dit.activiti.Task2Listener). From inside that class, you'll get a DelegateTask pointer which offers you everything you need to signal the external system. It's just a matter of hooking/wiring your services (which need to be signaled about task creation/completion) in the JavaDelegate implementation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 09:51:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138513#M97084</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-05-06T09:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138514#M97085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, but it is true just for a task, which has that listener.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But If I want to create universal listener for all tasks, what should I do? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think to set one listener for all tasks isn't a good idea. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 12:08:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138514#M97085</guid>
      <dc:creator>afenske</dc:creator>
      <dc:date>2013-05-06T12:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138515#M97086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use a ParseHandler to add listeners to all tasks when they are parsed to be used in the engine. This way, your BPMN2.0 doesn't contain any listener code, the listeners are added transparently to all processed deployed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 07:19:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138515#M97086</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-05-08T07:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138516#M97087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Guys, it's just running in circle. Your advices work only at one PC where we create the new process (Anton has written it in his 3rd and 4th posts), but at the another PC with the same app (surely the configuration is identical with the first one) doesn't catch new process instances - and this is the problem we try to solve!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 21:26:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138516#M97087</guid>
      <dc:creator>odemwingie</dc:creator>
      <dc:date>2013-05-08T21:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138517#M97088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sounds like you have 2 engines configured one for each app.&amp;nbsp; You will have to come up with your own mechanism to communicate between them.&amp;nbsp; The engines do not talk to each other.&amp;nbsp; The listeners only have access to events in the engine they are running in..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 12:02:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138517#M97088</guid>
      <dc:creator>tcheekva</dc:creator>
      <dc:date>2013-05-09T12:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138518#M97089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;and is there any examples how to do it somewhere?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 May 2013 19:27:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138518#M97089</guid>
      <dc:creator>odemwingie</dc:creator>
      <dc:date>2013-05-12T19:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138519#M97090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Indeed, the 2 process-engines don't communicate with each other. The engine which starts the process will receive the event. The other won't. You'll have to use an external queue, which the task is added to from one of the 2 engines. Than, in the right application, the queue is read out and reacted upon. There is no "general" approach for this. Either use a custom rolled solution or use a messaging-queue product.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 09:12:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-listener/m-p/138519#M97090</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-05-13T09:12:07Z</dc:date>
    </item>
  </channel>
</rss>

