<?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 TimerBoundaryEvent is not able to call Java service task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/timerboundaryevent-is-not-able-to-call-java-service-task/m-p/158746#M112823</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;I am trying to write a BPMN, which should invoke a service task(associated Java method) after the timer expires. I have specified "Time Duration" as "PT2M". But it is not getting invoked after time expires. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I start a new process by executing the below command in Java, it make a entry in ACT_RU_JOB table which later gets updated as "Unknown method used in expression" in the EXCEPTION_MSG_ column.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;runtimeService.startProcessInstanceByKey("resumeProcess", processInstance.getInpParam());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried number of options to get rid of this problem –&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) After this, in the attached BPMN if I remove the TimerBoundaryEvent, keeping service task as it is, it invokes my java method associated with service class without any issue, which means the expression I have defined for the service task is correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Instead of using the Spring annotation for my Java class, I defined it as a bean in the spring context file and mentioned the bean name in the expression of the service task. It still updated the ACT_RU_JOB-&amp;gt;EXCEPTION_MSG_ column as "Unknown property used in expression"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Instead of calling the Receive Task(with TimerBouandaryEvent) from the StartEvent, I called TimeCatchingEvent from the StartEvent and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then from TimeCatchingEvent I called my service task. Still it was giving error message as "Unknown method used in expression".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached the BPMN for the reference. I have spent almost 2 days on this, if someone can help me in finding the mistake which I am doing, it will be great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rajat Gupta&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2014 22:11:16 GMT</pubDate>
    <dc:creator>rajatgupta1609</dc:creator>
    <dc:date>2014-04-24T22:11:16Z</dc:date>
    <item>
      <title>TimerBoundaryEvent is not able to call Java service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timerboundaryevent-is-not-able-to-call-java-service-task/m-p/158746#M112823</link>
      <description>Hi,I am trying to write a BPMN, which should invoke a service task(associated Java method) after the timer expires. I have specified "Time Duration" as "PT2M". But it is not getting invoked after time expires. When I start a new process by executing the below command in Java, it make a entry in ACT_</description>
      <pubDate>Thu, 24 Apr 2014 22:11:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timerboundaryevent-is-not-able-to-call-java-service-task/m-p/158746#M112823</guid>
      <dc:creator>rajatgupta1609</dc:creator>
      <dc:date>2014-04-24T22:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: TimerBoundaryEvent is not able to call Java service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timerboundaryevent-is-not-able-to-call-java-service-task/m-p/158747#M112824</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 problem could be&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;activiti:expression="#{enrollClass.resumeProcess}"&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try to debug it. (e.g. put break point to ServiceTaskExpressionActivityBehavior)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 05:34:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timerboundaryevent-is-not-able-to-call-java-service-task/m-p/158747#M112824</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-04-25T05:34:47Z</dc:date>
    </item>
  </channel>
</rss>

