<?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 can I manage errors generated by MailTask? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62475#M38983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;What's the reason for adding a mail task if you don't have a SMTP server?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for instance, in production-environment there is a SMTP server, in develop-environment there's no SMTP server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another reason can be customer doesn't want this mail-feature while testing o in the first period of operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't draw two different processes, especially if they are very complex!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you help me?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Nov 2011 15:09:52 GMT</pubDate>
    <dc:creator>supermarco</dc:creator>
    <dc:date>2011-11-29T15:09:52Z</dc:date>
    <item>
      <title>How can I manage errors generated by MailTask?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62473#M38981</link>
      <description>Hello all,during my activiti-process I have an automatic MailTask, but if I have no smtp-server the process makes an error.How can I manage this error? It haven't be a blocking-error!I attach an image to clarify my problem.Thank you.</description>
      <pubDate>Tue, 22 Nov 2011 14:20:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62473#M38981</guid>
      <dc:creator>supermarco</dc:creator>
      <dc:date>2011-11-22T14:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I manage errors generated by MailTask?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62474#M38982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's the reason for adding a mail task if you don't have a SMTP server?&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>Wed, 23 Nov 2011 12:35:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62474#M38982</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-11-23T12:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I manage errors generated by MailTask?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62475#M38983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;What's the reason for adding a mail task if you don't have a SMTP server?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for instance, in production-environment there is a SMTP server, in develop-environment there's no SMTP server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another reason can be customer doesn't want this mail-feature while testing o in the first period of operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't draw two different processes, especially if they are very complex!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you help me?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 15:09:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62475#M38983</guid>
      <dc:creator>supermarco</dc:creator>
      <dc:date>2011-11-29T15:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I manage errors generated by MailTask?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62476#M38984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No it doesn't make a lot of sense to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be very easy to setup a mail server during development. You could even use something like &lt;/SPAN&gt;&lt;A href="http://code.google.com/p/subethasmtp/" rel="nofollow noopener noreferrer"&gt;http://code.google.com/p/subethasmtp/&lt;/A&gt;&lt;SPAN&gt; to make it even easier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And otherwise you could easily change the mail task in a manual task during development. But I would go for a simple email server.&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>Tue, 29 Nov 2011 19:57:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62476#M38984</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-11-29T19:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I manage errors generated by MailTask?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62477#M38985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think this is a valid point because even in production mailservers can get into trouble, crash or maybe you just have problems connecting to the mailserver&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;because there are problems on the network.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I also would prefer the mail task to have at least an error exit so that one can decide &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(a) to just ignore any errors or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(b) implement some strategy to come around this problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively an additional configuration attribute "errorHandling" with the options&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- ignore errors silently&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- ignore errors but trace a warning&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- take exit on error&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- throw an exception on erro&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;could be implemented and let the modeller decide how to handle the situation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; c&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 18:18:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62477#M38985</guid>
      <dc:creator>christoph_retti</dc:creator>
      <dc:date>2011-12-02T18:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I manage errors generated by MailTask?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62478#M38986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Mailtask is a very simple class, so a valid approach would be to implement your own mail service task where you can add the error handling you want.&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>Mon, 05 Dec 2011 13:50:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62478#M38986</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-12-05T13:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I manage errors generated by MailTask?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62479#M38987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is what I would do. It's kind of a workaround but might work. I am going to try it because I am kind of facing the same problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your ProcessEngineConfiguration you are able to add pre- or post parse listeners, which will be notified when your BPMN 2.0 files are parsed. That said, I should be able to react to parse events of &amp;lt;serviceTask…&amp;gt;-elements which are usually used for mail service tasks too. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check the&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;org.activiti.engine.impl.bpmn.parser.BpmnParseListener.parseScriptTask(Element scriptTaskElement, ScopeImpl scope, ActivityImpl activity);&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;method. You should be able to dynamically replace the default "activityBehaviour" property and set your own implementation. That way I should - hopefully - be able to replace the default MailAcitivtyBehaviour implementation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will inform you again if this is going to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dokmatik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 17:21:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62479#M38987</guid>
      <dc:creator>dokmatik</dc:creator>
      <dc:date>2011-12-15T17:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I manage errors generated by MailTask?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62480#M38988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This might work, but WHY not simply start a very simple embeded mailserver in test/development/…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 19:03:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62480#M38988</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-12-15T19:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I manage errors generated by MailTask?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62481#M38989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please dont get me wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am fully fine with setting up a simple test mail server in dev environments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, in my case a more finegrained control over ActivityBehaviours is needed. So since we work with aspects around ActivityBehaviour / JavaDelegate beans it comes very handy to have ones own MailActivityBehaviour. The default implementation cannot be simply decorated or intercepted since instantiation occurs hardcoded in the BpmnParser.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dokmatik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 11:42:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62481#M38989</guid>
      <dc:creator>dokmatik</dc:creator>
      <dc:date>2011-12-16T11:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I manage errors generated by MailTask?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62482#M38990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ah… ok, yes if it is a more generic issue… sounds fair.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 11:49:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62482#M38990</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-12-16T11:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I manage errors generated by MailTask?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62483#M38991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;today i finished the parse listener and i just wanted to confirm that my above proposed solution via parse listeners does work indeed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&amp;nbsp; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&amp;nbsp; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dokmatik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 21:44:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-manage-errors-generated-by-mailtask/m-p/62483#M38991</guid>
      <dc:creator>dokmatik</dc:creator>
      <dc:date>2011-12-16T21:44:33Z</dc:date>
    </item>
  </channel>
</rss>

