<?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: prolem with mail sender class in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/prolem-with-mail-sender-class/m-p/286520#M239650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you configured your class in your process definition xml file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And you class must inherit from org.alfresco.repo.workflow.jbpm.JBPMSpringActionHandler&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Apr 2014 16:45:00 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2014-04-11T16:45:00Z</dc:date>
    <item>
      <title>prolem with mail sender class</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/prolem-with-mail-sender-class/m-p/286516#M239646</link>
      <description>I want to make a java class that sens email, I've found the example given by jeff potts but it just executes the method initialiseHandler, it doesn't execute the mail action in the execute(ExecutionContext executionContext) method, can anyone help?thank you</description>
      <pubDate>Fri, 11 Apr 2014 15:16:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/prolem-with-mail-sender-class/m-p/286516#M239646</guid>
      <dc:creator>ucf</dc:creator>
      <dc:date>2014-04-11T15:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: prolem with mail sender class</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/prolem-with-mail-sender-class/m-p/286517#M239647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alfresco already has an email action.&amp;nbsp;&amp;nbsp; You could take a look at that or follow a tutorial on the java mail API.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 15:41:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/prolem-with-mail-sender-class/m-p/286517#M239647</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2014-04-11T15:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: prolem with mail sender class</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/prolem-with-mail-sender-class/m-p/286518#M239648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;&lt;SPAN&gt;First define ServiceRegistry field in your class&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;private ServiceRegistry serviceRegistry ;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Then get serviceRegistry&amp;nbsp; in initialiseHandler() method&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;this.serviceRegistry = (ServiceRegistry)factory.getBean(ServiceRegistry.SERVICE_REGISTRY);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Last ,send email using mail actin in execute() method&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ActionService actionService = serviceRegistry.getActionService();&lt;BR /&gt;Action mail = actionService.createAction(MailActionExecuter.NAME);&lt;BR /&gt;&lt;BR /&gt;mail.setParameterValue(MailActionExecuter.PARAM_SUBJECT, subject);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;mail.setParameterValue(MailActionExecuter.PARAM_TO, recipient);&lt;BR /&gt;mail.setParameterValue(MailActionExecuter.PARAM_FROM, from address);&lt;BR /&gt;mail.setParameterValue(MailActionExecuter.PARAM_TEXT, body text);&lt;BR /&gt;actionService.executeAction(mail, null);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 15:51:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/prolem-with-mail-sender-class/m-p/286518#M239648</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-04-11T15:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: prolem with mail sender class</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/prolem-with-mail-sender-class/m-p/286519#M239649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks but the problem is that it doesn't even enter in execute() method, I wote a System.out.println() to check, it was negative&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 16:31:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/prolem-with-mail-sender-class/m-p/286519#M239649</guid>
      <dc:creator>ucf</dc:creator>
      <dc:date>2014-04-11T16:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: prolem with mail sender class</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/prolem-with-mail-sender-class/m-p/286520#M239650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you configured your class in your process definition xml file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And you class must inherit from org.alfresco.repo.workflow.jbpm.JBPMSpringActionHandler&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 16:45:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/prolem-with-mail-sender-class/m-p/286520#M239650</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-04-11T16:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: prolem with mail sender class</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/prolem-with-mail-sender-class/m-p/286521#M239651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes I actually did extends JBPMSpringActionHandler and added the bean of the class in the services-context.xml and in processDefinition.xml as an action inside a task node&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 16:51:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/prolem-with-mail-sender-class/m-p/286521#M239651</guid>
      <dc:creator>ucf</dc:creator>
      <dc:date>2014-04-11T16:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: prolem with mail sender class</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/prolem-with-mail-sender-class/m-p/286522#M239652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please paste your process definition here.You should configure full class name in process definition,like following&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;action class="**.****.***.YourAction" /&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 16:57:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/prolem-with-mail-sender-class/m-p/286522#M239652</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-04-11T16:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: prolem with mail sender class</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/prolem-with-mail-sender-class/m-p/286523#M239653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot for your help, it turned out that the workflow wasn't starting well, problem solved thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 17:28:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/prolem-with-mail-sender-class/m-p/286523#M239653</guid>
      <dc:creator>ucf</dc:creator>
      <dc:date>2014-04-11T17:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: prolem with mail sender class</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/prolem-with-mail-sender-class/m-p/286524#M239654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you just want to send email in action handler ,you can also use &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;which is a jBPM action handler for executing alfresco Script &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2014 11:42:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/prolem-with-mail-sender-class/m-p/286524#M239654</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-04-12T11:42:02Z</dc:date>
    </item>
  </channel>
</rss>

