<?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 process does not wait at the user task ; FK constraint error in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/process-does-not-wait-at-the-user-task-fk-constraint-error/m-p/84640#M57000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a user task –&amp;gt; java service task –&amp;gt; user task –&amp;gt; java service task –&amp;gt; end.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when the process hit the user task, it used to go into the wait state. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was using spring beans for the java service task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I changed the java service tasks to implement ActivityBehavior.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After this change, the process waits at the 1st user task and when it is complete, it goes to the second user task [create the task in db] but instead of waiting, it continues and ends. At that time, it tries to delete the execution record but fails due to FK from the second task record into the execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why does it not wait at the second user task. It used to when my service tasks were spring beans [without implementing either javaDelegate or ActivityBehavior ].&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Appreciate any help.&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>Fri, 02 Mar 2012 02:22:12 GMT</pubDate>
    <dc:creator>sapra</dc:creator>
    <dc:date>2012-03-02T02:22:12Z</dc:date>
    <item>
      <title>process does not wait at the user task ; FK constraint error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-does-not-wait-at-the-user-task-fk-constraint-error/m-p/84640#M57000</link>
      <description>I have a user task –&amp;gt; java service task –&amp;gt; user task –&amp;gt; java service task –&amp;gt; end.when the process hit the user task, it used to go into the wait state. I was using spring beans for the java service task.Now I changed the java service tasks to implement ActivityBehavior.After this change,</description>
      <pubDate>Fri, 02 Mar 2012 02:22:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-does-not-wait-at-the-user-task-fk-constraint-error/m-p/84640#M57000</guid>
      <dc:creator>sapra</dc:creator>
      <dc:date>2012-03-02T02:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: process does not wait at the user task ; FK constraint error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-does-not-wait-at-the-user-task-fk-constraint-error/m-p/84641#M57001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I attached the process diagram. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the exception is : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;### Error updating database.&amp;nbsp; Cause: org.postgresql.util.PSQLException: ERROR: update or delete on table "act_ru_execution" violates foreign key constraint "act_fk_task_exe" on table "act_ru_task"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Detail: Key (id_)=(412) is still referenced from table "act_ru_task".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;### The error may involve org.activiti.engine.impl.persistence.entity.ExecutionEntity.deleteExecution-Inline&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;### The error occurred while setting parameters&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;### Cause: org.postgresql.util.PSQLException: ERROR: update or delete on table "act_ru_execution" violates foreign key constraint "act_fk_task_exe" on table "act_ru_task"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Detail: Key (id_)=(412) is still referenced from table "act_ru_task".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:8)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:120)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.ibatis.session.defaults.DefaultSqlSession.delete(DefaultSqlSession.java:131)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.db.DbSqlSession$DeleteById.execute(DbSqlSession.java:146)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.db.DbSqlSession.flushDeletes(DbSqlSession.java:444)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.db.DbSqlSession.flush(DbSqlSession.java:349)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:147)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.interceptor.CommandContext.close(CommandContext.java:103)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:49)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:42)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:40)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 04:21:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-does-not-wait-at-the-user-task-fk-constraint-error/m-p/84641#M57001</guid>
      <dc:creator>sapra</dc:creator>
      <dc:date>2012-03-02T04:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: process does not wait at the user task ; FK constraint error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-does-not-wait-at-the-user-task-fk-constraint-error/m-p/84642#M57002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This sound VERY similar to the problem I'm having.&amp;nbsp; For reference, here's the post about my scenario:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=6151&amp;amp;start=0" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=6151&amp;amp;start=0&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 22:33:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-does-not-wait-at-the-user-task-fk-constraint-error/m-p/84642#M57002</guid>
      <dc:creator>mindcrime</dc:creator>
      <dc:date>2013-03-06T22:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: process does not wait at the user task ; FK constraint error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-does-not-wait-at-the-user-task-fk-constraint-error/m-p/84643#M57003</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;Would it be possible to create a small unit test project that shows this error?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can sent it to tijs.rademakers AT gmail.com and then I'll have a look at it.&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>Thu, 07 Mar 2013 11:02:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-does-not-wait-at-the-user-task-fk-constraint-error/m-p/84643#M57003</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-03-07T11:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: process does not wait at the user task ; FK constraint error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-does-not-wait-at-the-user-task-fk-constraint-error/m-p/84644#M57004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please note, the ActivityBehaviour approach is advanced and the behaviors actually control the process-flows whereas JavaDelegates are only called to perform an action, without affecting process-flow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 15:03:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-does-not-wait-at-the-user-task-fk-constraint-error/m-p/84644#M57004</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-03-07T15:03:29Z</dc:date>
    </item>
  </channel>
</rss>

