<?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 Re: Flushing process instance attachments to database within tx in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/flushing-process-instance-attachments-to-database-within-tx/m-p/142152#M99553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;- Why is the behavior of attachments different then process variables? They both live in memory and are flushed at the end of the transaction. Still, process variables can be updated in sequential service tasks. Would it be feasible to make attachments available via the DelegateExecution object? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Another solution is to use an external file storage and pass the attachment reference using process variables.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 May 2013 14:59:46 GMT</pubDate>
    <dc:creator>wsalembi</dc:creator>
    <dc:date>2013-05-22T14:59:46Z</dc:date>
    <item>
      <title>Flushing process instance attachments to database within tx</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flushing-process-instance-attachments-to-database-within-tx/m-p/142150#M99551</link>
      <description>Process instance attachments created in one Service Task are not visible in the following Service Task, because apparently they are only flushed to the database at the end of a transaction. Is this the desired behavior?Is there any way to force a flush? The attachments don't need to be committed but</description>
      <pubDate>Wed, 22 May 2013 07:34:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flushing-process-instance-attachments-to-database-within-tx/m-p/142150#M99551</guid>
      <dc:creator>wsalembi</dc:creator>
      <dc:date>2013-05-22T07:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Flushing process instance attachments to database within tx</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flushing-process-instance-attachments-to-database-within-tx/m-p/142151#M99552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Activiti doesn't flush anything to the database unless it encounters a wait-state, async step or process-end. This is intended behavior. So if a user-task is reached, all data is flushed. When you start a new process-instance from within another process, the transaction is reused and indeed the new process in only flushed when the spawning process is committed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Doing API-calls from inside a running process (eg. from a service-task) is allowed but needs to be handled with care and the flushing-behaviour should be kept in mind. I'm afraid there is no other way that making the activity that needs the data async to force a flush…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 07:54:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flushing-process-instance-attachments-to-database-within-tx/m-p/142151#M99552</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-05-22T07:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Flushing process instance attachments to database within tx</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flushing-process-instance-attachments-to-database-within-tx/m-p/142152#M99553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;- Why is the behavior of attachments different then process variables? They both live in memory and are flushed at the end of the transaction. Still, process variables can be updated in sequential service tasks. Would it be feasible to make attachments available via the DelegateExecution object? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Another solution is to use an external file storage and pass the attachment reference using process variables.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 14:59:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flushing-process-instance-attachments-to-database-within-tx/m-p/142152#M99553</guid>
      <dc:creator>wsalembi</dc:creator>
      <dc:date>2013-05-22T14:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Flushing process instance attachments to database within tx</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flushing-process-instance-attachments-to-database-within-tx/m-p/142153#M99554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;- it would be possible, but what is the added value? Why not use a variable from the start then?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Yes, that is the way it is implemented eg in Alfresco.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 15:03:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flushing-process-instance-attachments-to-database-within-tx/m-p/142153#M99554</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-05-22T15:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Flushing process instance attachments to database within tx</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flushing-process-instance-attachments-to-database-within-tx/m-p/142154#M99555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see lots of advantages. First, leverage the existing attachment feature in activiti. Everything is in the activiti database. No need for external storage. It is easier to share the documents to multiple process engine instances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using attachments I can visualize them in Activiti Explorer. Not possible with process variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suppose attachments are more efficient, then byte array process variables, which can take a lot of memory when the files tend to get large. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I'll use a local file storage for sequential service tasks and end by an additional service task that persists the attachment before any user task.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 06:32:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flushing-process-instance-attachments-to-database-within-tx/m-p/142154#M99555</guid>
      <dc:creator>wsalembi</dc:creator>
      <dc:date>2013-05-23T06:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Flushing process instance attachments to database within tx</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/flushing-process-instance-attachments-to-database-within-tx/m-p/142155#M99556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The attachments are actually mapped to the byte array table … so there is benefit of using it over a variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Generally, I would not advise to store documents and all the Activiti database tables. There are systems out there which are optimized for such things, and which offer other capabiolities on top (full text search, OCR, etc…). What we do for example in Alfresco, is we just store the node reference (a string) to the actual document and fetch it when we actually need kt.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 15:05:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/flushing-process-instance-attachments-to-database-within-tx/m-p/142155#M99556</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-05-23T15:05:14Z</dc:date>
    </item>
  </channel>
</rss>

