<?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 ActivityBehavior in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activitybehavior/m-p/85249#M57485</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;SPAN&gt;I notice that when I added a service task that implements ActivityBehavior, the process from then on is not behaving as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to implement exception handling in my process and I am trying to control the flow by using AB implementation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The process takes the proper flow identified by the code, but, it appears to run through the rest of the process steps without waiting at the user task. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see the following in the Activiti user guide:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note however that this is not a very good practice, and should be avoided as much as possible. So, it is advised to use the ActivityBehavior interface only for advanced use cases and if you know exactly what you're doing. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my process , I have a java service task&amp;nbsp; implementing AB and other service tasks which are spring beans. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What exactly I should be taking care of in my AB implementation ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;appreciate any pointers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Saprar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Mar 2012 01:54:24 GMT</pubDate>
    <dc:creator>sapra</dc:creator>
    <dc:date>2012-03-04T01:54:24Z</dc:date>
    <item>
      <title>ActivityBehavior</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activitybehavior/m-p/85249#M57485</link>
      <description>Hi,I notice that when I added a service task that implements ActivityBehavior, the process from then on is not behaving as expected.I need to implement exception handling in my process and I am trying to control the flow by using AB implementation.The process takes the proper flow identified by the</description>
      <pubDate>Sun, 04 Mar 2012 01:54:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activitybehavior/m-p/85249#M57485</guid>
      <dc:creator>sapra</dc:creator>
      <dc:date>2012-03-04T01:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: ActivityBehavior</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activitybehavior/m-p/85250#M57486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried with 5.9 release too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Same problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Mar 2012 02:23:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activitybehavior/m-p/85250#M57486</guid>
      <dc:creator>sapra</dc:creator>
      <dc:date>2012-03-04T02:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: ActivityBehavior</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activitybehavior/m-p/85251#M57487</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;You should make sure you explicitly take a transition at the end of the ActivityBehavior implementation.&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 Mar 2012 18:40:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activitybehavior/m-p/85251#M57487</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-03-05T18:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: ActivityBehavior</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activitybehavior/m-p/85252#M57488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks Tijs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did handle the out going transition as you explained in your book.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the correct transition and do a "take" on it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;execution.take(transition);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see the following in the log :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mar 4, 2012 8:19:58 PM org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior performOutgoingBehavior&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;FINE: Leaving activity 'usertask1'&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and when the task was a spring bean [ not implementing AB] , I see the following &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FINEST: loaded object 'ProcessDefinitionEntity[createsomething_wf:2:810]' was not updated&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Mar 4, 2012 8:41:12 PM org.activiti.engine.impl.db.DbSqlSession flush&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 19:05:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activitybehavior/m-p/85252#M57488</guid>
      <dc:creator>sapra</dc:creator>
      <dc:date>2012-03-05T19:05:29Z</dc:date>
    </item>
  </channel>
</rss>

