<?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 ActivitiIllegalArgumentException: org.activiti.BasicAdditionDelegate  doesn't implement org.activiti.engine.delegate.JavaDelegate in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/activitiillegalargumentexception-org-activiti/m-p/22419#M9816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to implement a simple java class for process serviceTask from kickstart app, my ultimate goal to use this class for stencils.&lt;BR /&gt;I was able to create a app with input from with takes two numbers and serviceTask to add both numbers and &lt;BR /&gt;returns result.&lt;/P&gt;&lt;P&gt;I used &lt;A href="https://migration33.stage.lithium.com/t5/tag/tomcat/tg-p"&gt;&lt;/A&gt; 9.0.16, java 8, activiti 6.0.0&lt;/P&gt;&lt;P&gt;When my serviceTask trys to call java application for processing which is on tomcat lib it is throwing exception.&lt;/P&gt;&lt;P&gt;org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [appDispatcher] in context with path [/activiti-app] &lt;BR /&gt;threw exception [Request processing failed; nested exception is org.activiti.engine.ActivitiIllegalArgumentException: org.activiti.BasicAdditionDelegate &lt;BR /&gt;doesn't implement org.activiti.engine.delegate.JavaDelegate nor org.activiti.engine.impl.delegate.ActivityBehavior] with root cause&lt;BR /&gt;org.activiti.engine.ActivitiIllegalArgumentException: org.activiti.BasicAdditionDelegate doesn't implement org.activiti.engine.delegate.JavaDelegate &lt;BR /&gt;nor org.activiti.engine.impl.delegate.ActivityBehavior&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My java class looks as below&lt;/P&gt;&lt;P&gt;import org.activiti.engine.delegate.DelegateExecution;&lt;BR /&gt;import org.activiti.engine.delegate.JavaDelegate;&lt;/P&gt;&lt;P&gt;public class BasicAdditionDelegate implements JavaDelegate {&lt;/P&gt;&lt;P&gt;@Override&lt;BR /&gt; public void execute(DelegateExecution execution) {&lt;BR /&gt; &lt;BR /&gt; System.out.println("Inside execution ");&lt;BR /&gt; System.out.println(execution.getVariableNames());&lt;BR /&gt; System.out.println(execution.getVariables());&lt;BR /&gt; int firstOperandNumber = Integer.valueOf((String) execution.getVariable("firstOperand"));&lt;BR /&gt; int secondOperandNumber = Integer.valueOf((String) execution.getVariable("SecondOperand"));&lt;BR /&gt; &lt;BR /&gt; int result = Math.addExact(firstOperandNumber, secondOperandNumber);&lt;BR /&gt; &lt;BR /&gt; execution.setVariable("targetProcessVariable", String.valueOf(result));&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Thanks in advance for any recommendations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2019 00:38:52 GMT</pubDate>
    <dc:creator>harshamendu</dc:creator>
    <dc:date>2019-02-12T00:38:52Z</dc:date>
    <item>
      <title>ActivitiIllegalArgumentException: org.activiti.BasicAdditionDelegate  doesn't implement org.activiti.engine.delegate.JavaDelegate</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activitiillegalargumentexception-org-activiti/m-p/22419#M9816</link>
      <description>Hi All,I am trying to implement a simple java class for process serviceTask from kickstart app, my ultimate goal to use this class for stencils.I was able to create a app with input from with takes two numbers and serviceTask to add both numbers and returns result.I used  9.0.16, java 8, activiti 6.</description>
      <pubDate>Tue, 12 Feb 2019 00:38:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activitiillegalargumentexception-org-activiti/m-p/22419#M9816</guid>
      <dc:creator>harshamendu</dc:creator>
      <dc:date>2019-02-12T00:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: ActivitiIllegalArgumentException: org.activiti.BasicAdditionDelegate  doesn't implement org.activiti.engine.delegate.JavaDelegate</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activitiillegalargumentexception-org-activiti/m-p/22420#M9817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From a quick look the only differences I can see with my service tasks is that the execute() method throws Execption and explicitly returns, i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public void execute(DelegateExecution e) throws Exception {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;return;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2019 14:54:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activitiillegalargumentexception-org-activiti/m-p/22420#M9817</guid>
      <dc:creator>pault</dc:creator>
      <dc:date>2019-02-12T14:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: ActivitiIllegalArgumentException: org.activiti.BasicAdditionDelegate  doesn't implement org.activiti.engine.delegate.JavaDelegate</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activitiillegalargumentexception-org-activiti/m-p/22421#M9818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, &lt;B&gt;PaulT _&lt;/B&gt;‌ for your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with adding "throws Exception" but no luck with the same error.&lt;/P&gt;&lt;P&gt;and "return" method&amp;nbsp;return type is void, do we have to add a return.&lt;/P&gt;&lt;P&gt;I never thought of adding a return to this method.&lt;/P&gt;&lt;P&gt;Do you think that may&amp;nbsp;cause?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2019 15:33:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activitiillegalargumentexception-org-activiti/m-p/22421#M9818</guid>
      <dc:creator>harshamendu</dc:creator>
      <dc:date>2019-02-12T15:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: ActivitiIllegalArgumentException: org.activiti.BasicAdditionDelegate  doesn't implement org.activiti.engine.delegate.JavaDelegate</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activitiillegalargumentexception-org-activiti/m-p/22422#M9819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No I wouldn't have really thought either of those things would be the cause of the problem, but&amp;nbsp;they were the only obvious differences I could see between my service tasks that work - so thought worth mentioning. I'm using the Java API directly in Activiti 5.22.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2019 17:31:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activitiillegalargumentexception-org-activiti/m-p/22422#M9819</guid>
      <dc:creator>pault</dc:creator>
      <dc:date>2019-02-12T17:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: ActivitiIllegalArgumentException: org.activiti.BasicAdditionDelegate  doesn't implement org.activiti.engine.delegate.JavaDelegate</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activitiillegalargumentexception-org-activiti/m-p/22423#M9820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm. I am using Activiti&amp;nbsp;6.0.0.&lt;/P&gt;&lt;P&gt;One thing I observed with 6.0 is no longer required to&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;throws Exception.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Only thing I&amp;nbsp;think of now is a version difference. Let me try with 5.22 and see how it goes.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2019 18:27:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activitiillegalargumentexception-org-activiti/m-p/22423#M9820</guid>
      <dc:creator>harshamendu</dc:creator>
      <dc:date>2019-02-12T18:27:36Z</dc:date>
    </item>
  </channel>
</rss>

