<?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 EmailBean not working in activiti community edition in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/emailbean-not-working-in-activiti-community-edition/m-p/11737#M5189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, when I first installed licensed verison of alfresco activiti ( enterprise edition ) , I was able to send emails with my process so it works just fine there, but when I imported the same process on the activiti community edition I get the following error:&lt;/P&gt;&lt;P&gt;Caused by: javax.el.PropertyNotFoundException: Cannot resolve identifier 'emailBean'&lt;BR /&gt; at de.odysseus.el.tree.impl.ast.AstIdentifier.eval(AstIdentifier.java:93)&lt;BR /&gt; at de.odysseus.el.tree.impl.ast.AstMethod.eval(AstMethod.java:77)&lt;BR /&gt; at de.odysseus.el.tree.impl.ast.AstMethod.eval(AstMethod.java:100)&lt;BR /&gt; at de.odysseus.el.tree.impl.ast.AstEval.eval(AstEval.java:51)&lt;BR /&gt; at de.odysseus.el.tree.impl.ast.AstNode.getValue(AstNode.java:31)&lt;BR /&gt; at de.odysseus.el.TreeValueExpression.getValue(TreeValueExpression.java:122)&lt;BR /&gt; at org.activiti.engine.impl.delegate.invocation.ExpressionGetInvocation.invoke(ExpressionGetInvocation.java:33)&lt;BR /&gt; at org.activiti.engine.impl.delegate.invocation.DelegateInvocation.proceed(DelegateInvocation.java:35)&lt;BR /&gt; at org.activiti.engine.impl.delegate.invocation.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:25)&lt;BR /&gt; at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:49)&lt;BR /&gt; ... 103 more&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My process looks&amp;nbsp;like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="215" src="https://connect.hyland.com/legacyfs/online/alfresco/18083_pastedImage_1.png" width="431" /&gt;&lt;/P&gt;&lt;P&gt;It is very simple and just checks if an email can be sent. I have also configured email server in activiti-app.properties file but it seems that&amp;nbsp;community edition does not have all the beans like enterprise edition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression:&amp;nbsp;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #ce9178;"&gt;${emailBean.getProcessInitiator(execution)}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that my beans are not configured, so can anyone tell me how should I configure my beans to work with expressions in activiti processes.&lt;BR /&gt;I have an attachment of my process (test3.bpmn20.xml) and it's just for testing email bean.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Nov 2017 15:14:45 GMT</pubDate>
    <dc:creator>xelcina5</dc:creator>
    <dc:date>2017-11-30T15:14:45Z</dc:date>
    <item>
      <title>EmailBean not working in activiti community edition</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/emailbean-not-working-in-activiti-community-edition/m-p/11737#M5189</link>
      <description>Hello everyone, when I first installed licensed verison of alfresco activiti ( enterprise edition ) , I was able to send emails with my process so it works just fine there, but when I imported the same process on the activiti community edition I get the following error:Caused by: javax.el.PropertyNo</description>
      <pubDate>Thu, 30 Nov 2017 15:14:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/emailbean-not-working-in-activiti-community-edition/m-p/11737#M5189</guid>
      <dc:creator>xelcina5</dc:creator>
      <dc:date>2017-11-30T15:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: EmailBean not working in activiti community edition</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/emailbean-not-working-in-activiti-community-edition/m-p/11738#M5190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That emailBean isn't a user-defined bean,&amp;nbsp;it's a feature specific to the enterprise edition - see the comparison table at the bottom of&amp;nbsp;&lt;A href="https://www.alfresco.com/platform/process-services-bpm" title="https://www.alfresco.com/platform/process-services-bpm" rel="nofollow noopener noreferrer"&gt;Alfresco Process Services (BPM) powered by Activiti | Alfresco&lt;/A&gt;&amp;nbsp;&amp;nbsp;and search for 'email'. You could create your own spring bean and annotate it with&amp;nbsp;&lt;SPAN class="" style="color: #d73a49; background-color: #ffffff;"&gt;@Component&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #032f62; background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #032f62;"&gt;"&lt;/SPAN&gt;emailBean&lt;SPAN class="" style="color: #032f62;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;).&amp;nbsp;You'd want to have a getProcessInitiator method that can take a&amp;nbsp;&lt;SPAN&gt;DelegateExecution as a parameter. You'd then need to look up the initiator's userId. Or in your case it looks like the initiator would also be the current user so that's another route. I think the initiator is stored in a variable and the variable name is added to the startEvent's initiator property when the process model is created so if you could find that you could get it off the execution.&amp;nbsp;You'll then need to&amp;nbsp;find the email address from the IdentityService (which you could autowire in). An example of sending emails with community edition is at&amp;nbsp;&lt;A class="link-titled" href="http://www.hascode.com/2013/09/business-process-modeling-with-activiti-and-bpmn-2-0/" title="http://www.hascode.com/2013/09/business-process-modeling-with-activiti-and-bpmn-2-0/" rel="nofollow noopener noreferrer"&gt;hasCode.com » Blog Archive » Business Process Modeling with Activiti and BPMN 2.0&lt;/A&gt;&amp;nbsp;&amp;nbsp;- in that example the email is obtained from the form but one of the comments suggests another path for getting the email. Naturally the enterprise edition makes it easier to do this - I'm explaining the other paths as I assume you're not in a position to use enterprise.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 16:30:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/emailbean-not-working-in-activiti-community-edition/m-p/11738#M5190</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2017-12-05T16:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: EmailBean not working in activiti community edition</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/emailbean-not-working-in-activiti-community-edition/m-p/11739#M5191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan Dawson, thank you for your response, I'm beginner with activitivi, can u show me how to create my own bean and how to execute IdentityService? I would be very thankful if u can help me somehow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 08:57:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/emailbean-not-working-in-activiti-community-edition/m-p/11739#M5191</guid>
      <dc:creator>xelcina5</dc:creator>
      <dc:date>2017-12-06T08:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: EmailBean not working in activiti community edition</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/emailbean-not-working-in-activiti-community-edition/m-p/11740#M5192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Spring beans in Activiti community are not very different from enterprise -&amp;nbsp;&lt;A class="link-titled" href="https://docs.alfresco.com/process-services1.7/topics/spring_beans.html" title="https://docs.alfresco.com/process-services1.7/topics/spring_beans.html" rel="nofollow noopener noreferrer"&gt;Spring Beans | Alfresco Documentation&lt;/A&gt;&amp;nbsp;. I don't think you need to do much with IdentityService other than wire it in and use it to look up the user.&amp;nbsp;If you're not yet comfortable with writing delegates using spring beans then you're probably best to look at some examples - maybe&amp;nbsp;start by having&amp;nbsp;a look at the articles at&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/wiki/Articles-and-Blogs-on-Activiti" title="https://github.com/Activiti/Activiti/wiki/Articles-and-Blogs-on-Activiti" rel="nofollow noopener noreferrer"&gt;Articles and Blogs on Activiti · Activiti/Activiti Wiki · GitHub&lt;/A&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 09:57:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/emailbean-not-working-in-activiti-community-edition/m-p/11740#M5192</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2017-12-06T09:57:00Z</dc:date>
    </item>
  </channel>
</rss>

