<?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: Workflows Question in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83260#M25485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that's what I did, and probably I'm still missing something. it didn't work out.&lt;BR /&gt;does it work with all kind of workflows ?&lt;BR /&gt;or with a custom one in your case related to the id="alfrescoStartevent", is it related to a custom process ?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Apr 2019 08:19:10 GMT</pubDate>
    <dc:creator>riadhazzouz</dc:creator>
    <dc:date>2019-04-24T08:19:10Z</dc:date>
    <item>
      <title>Workflows Question</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83253#M25478</link>
      <description>How can I execute a java code once a workflow is started ?ExecutionListener is the solution ?Any Examples ?</description>
      <pubDate>Tue, 23 Apr 2019 10:40:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83253#M25478</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-04-23T10:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Workflows Question</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83254#M25479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in your BPMN definition you can define a start task like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'Courier New'; font-size: 9,0pt;"&gt;&amp;lt;startEvent id="alfrescoStartevent" name="Alfresco start"&lt;BR /&gt;            activiti:formKey="bpm:startTask"&amp;gt;&lt;BR /&gt;    &amp;lt;extensionElements&amp;gt;&lt;BR /&gt;        &amp;lt;activiti:executionListener event="start" &lt;BR /&gt;                class="your.java.class" /&amp;gt;&lt;BR /&gt;    &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;    &amp;lt;outgoing&amp;gt;flow1&amp;lt;/outgoing&amp;gt;&lt;BR /&gt;    &amp;lt;outputSet/&amp;gt;&lt;BR /&gt;&amp;lt;/startEvent&amp;gt;&lt;/PRE&gt;&lt;P&gt;So when the workflow starts your java class will be executed. You class must &lt;/P&gt;&lt;PRE style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'Courier New'; font-size: 9,0pt;"&gt;&lt;SPAN style="color: #cc7832;"&gt;extends &lt;/SPAN&gt;BoostedWorkflowListener &lt;SPAN style="color: #cc7832;"&gt;implements &lt;/SPAN&gt;ExecutionListener&lt;/PRE&gt;&lt;P&gt;and ovveride the &lt;/P&gt;&lt;PRE style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'Courier New'; font-size: 9,0pt;"&gt;&lt;SPAN style="color: #ffc66d;"&gt;notify&lt;/SPAN&gt;(DelegateExecution execution) &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 15:34:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83254#M25479</guid>
      <dc:creator>francesco_forna</dc:creator>
      <dc:date>2019-04-23T15:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Workflows Question</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83255#M25480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can user&amp;nbsp;activiti:executionListener when workflow start.&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;definitions&amp;gt;&lt;BR /&gt; &amp;lt;process id="id" name="name" isExecutable="true"&amp;gt;&lt;BR /&gt; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;activiti:executionListener event="start" class="com.workflow.StartWorkflowListener"&amp;gt;&amp;lt;/activiti:executionListener&amp;gt;&lt;BR /&gt; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;startEvent id="startevent1" name="Start" activiti:formKey="wf:startProcess"&amp;gt;&amp;lt;/startEvent&amp;gt;&lt;BR /&gt; &amp;lt;/process&amp;gt;&lt;BR /&gt;&amp;lt;/definitions&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;package com.workflow;&lt;BR /&gt;public class StartWorkflowListener&amp;nbsp; implements ExecutionListener {&lt;BR /&gt; @Override&lt;BR /&gt; public void notify(DelegateExecution execution) throws Exception {&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 04:55:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83255#M25480</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2019-04-24T04:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Workflows Question</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83256#M25481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;BR /&gt;I created a bpmn file in this location&amp;nbsp;\pfe\pfe-platform-jar\src\main\resources\alfresco\module\pfe-platform-jar\workflow&lt;BR /&gt;I pasted the process definition there, and I changed the class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the notify method I added a simple message to display&amp;nbsp;System.out.println("hello");&lt;BR /&gt;&lt;BR /&gt;and it didn't shows up.&lt;BR /&gt;&lt;BR /&gt;I removed the extends WorkflowListener.&lt;BR /&gt;&lt;BR /&gt;Are these the correct steps ?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 07:31:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83256#M25481</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-04-24T07:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Workflows Question</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83257#M25482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a&amp;nbsp;System.out.println("hello"); in the notify function, and I got nothing.&lt;BR /&gt;I removed extends BoostedWorkflowListener because I didn't find from where to import it.&lt;BR /&gt;Any ideas ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 07:46:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83257#M25482</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-04-24T07:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Workflows Question</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83258#M25483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;sorry the BoostedWorkflowListener is a my class. You have only to implement&lt;/P&gt;&lt;PRE style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'Courier New'; font-size: 9,0pt;"&gt;org.activiti.engine.delegate.ExecutionListener&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 07:54:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83258#M25483</guid>
      <dc:creator>francesco_forna</dc:creator>
      <dc:date>2019-04-24T07:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Workflows Question</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83259#M25484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you able to start workflow?&lt;/P&gt;&lt;P&gt;Make sure that your class is accessible from bpmn file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 08:18:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83259#M25484</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2019-04-24T08:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Workflows Question</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83260#M25485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that's what I did, and probably I'm still missing something. it didn't work out.&lt;BR /&gt;does it work with all kind of workflows ?&lt;BR /&gt;or with a custom one in your case related to the id="alfrescoStartevent", is it related to a custom process ?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 08:19:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83260#M25485</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-04-24T08:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Workflows Question</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83261#M25486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I started a simple new task, and the message wasn't displayed in the console.&lt;BR /&gt;and yes the class is accessible from the bpmn file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my code :&lt;/P&gt;&lt;P&gt;bpmn file in the workflow folder :&lt;/P&gt;&lt;P&gt;&amp;lt;definitions&amp;gt;&lt;BR /&gt;&amp;lt;process id="MyProcess" name="My Process" isExecutable="true"&amp;gt;&lt;BR /&gt;&amp;lt;extensionElements&amp;gt;&lt;BR /&gt;&amp;lt;activiti:executionListener event="start" class="com.pfe.listeners.DebutWorkflow"&amp;gt;&amp;lt;/activiti:executionListener&amp;gt;&lt;BR /&gt;&amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;&amp;lt;startEvent id="startevent1" name="Start" activiti:formKey="wf:startProcess"&amp;gt;&amp;lt;/startEvent&amp;gt;&lt;BR /&gt;&amp;lt;/process&amp;gt;&lt;BR /&gt;&amp;lt;/definitions&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and java class :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;package com.pfe.listeners;&lt;/P&gt;&lt;P&gt;import org.activiti.engine.delegate.DelegateExecution;&lt;BR /&gt;import org.activiti.engine.delegate.ExecutionListener;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;public class DebutWorkflow implements ExecutionListener {&lt;/P&gt;&lt;P&gt;@Override&lt;BR /&gt; public void notify(DelegateExecution execution) throws Exception {&lt;BR /&gt; // TODO Auto-generated method stub&lt;BR /&gt; System.out.println("hello");&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 10:10:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83261#M25486</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-04-24T10:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Workflows Question</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83262#M25487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to create a custom workflow and it worked. how can I use it on all types of workflow?&lt;BR /&gt; thanks&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 10:54:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83262#M25487</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-04-24T10:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Workflows Question</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83263#M25488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use Eclipse... try to download and install&amp;nbsp;Activiti Designer - &lt;A href="https://www.activiti.org/designer/" rel="nofollow noopener noreferrer"&gt;https://www.activiti.org/designer/&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 08:48:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83263#M25488</guid>
      <dc:creator>aht</dc:creator>
      <dc:date>2019-04-25T08:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Workflows Question</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83264#M25489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to override all existing workflow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 May 2019 03:28:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83264#M25489</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2019-05-04T03:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Workflows Question</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83265#M25490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2019 13:41:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflows-question/m-p/83265#M25490</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-05-07T13:41:39Z</dc:date>
    </item>
  </channel>
</rss>

