<?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: Using non-persistent variables in workflow execution in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/using-non-persistent-variables-in-workflow-execution/m-p/102161#M71055</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;thanx for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I will play around a little bit with the idea of using a persistent container and transient key-value-pairs in it. This is better than using a ThreadLocal approach. But still it has the character of an in-out parameter for the service I call from the workflow. But at least it is visible on the service method and the caller must be aware of this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nevertheless the best thing would be to have variables which are marked as non-persistent. Maybe an annotation which says Activiti to not persist the variable…..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, but right now I have absolutly no idea how the Activiti code works and how are the concepts behind the workflow context and variables. Maybe I will find some time to dive in deeper in the Activiti code and be able to create a contribution. At the moment time is short - as always &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greets,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andreas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jun 2012 13:02:06 GMT</pubDate>
    <dc:creator>aglaser</dc:creator>
    <dc:date>2012-06-25T13:02:06Z</dc:date>
    <item>
      <title>Using non-persistent variables in workflow execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-non-persistent-variables-in-workflow-execution/m-p/102159#M71053</link>
      <description>Hi,I have a workflow which has some wait points (receive tasks). I resume the workflow calling:&amp;nbsp; RuntimeService.signal(String executionId, Map&amp;lt;String, Object&amp;gt; processVariables);As a process variable I pass some input data and after the method returns I like to get back the same variable callin</description>
      <pubDate>Fri, 22 Jun 2012 14:25:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-non-persistent-variables-in-workflow-execution/m-p/102159#M71053</guid>
      <dc:creator>aglaser</dc:creator>
      <dc:date>2012-06-22T14:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using non-persistent variables in workflow execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-non-persistent-variables-in-workflow-execution/m-p/102160#M71054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You got it right, this is not yet implemented in activiti. The only "clean-ish" workaround I could think of is to create a single variable (extends hash map or something) that holds all variables you need to keep in-memory. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Make it serializable but override the writeObject and write basically nothing. This way, the "cached value" of the variable will still be your full pojo/hashmap, but serializing/deserializing is *almost* free. Also only one variable-instance is stored compared to the N number of variables stored before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a bit fishy, I agree. Another option is to implement this in the engine and contribute it &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 14:51:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-non-persistent-variables-in-workflow-execution/m-p/102160#M71054</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-06-22T14:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using non-persistent variables in workflow execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-non-persistent-variables-in-workflow-execution/m-p/102161#M71055</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;thanx for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I will play around a little bit with the idea of using a persistent container and transient key-value-pairs in it. This is better than using a ThreadLocal approach. But still it has the character of an in-out parameter for the service I call from the workflow. But at least it is visible on the service method and the caller must be aware of this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nevertheless the best thing would be to have variables which are marked as non-persistent. Maybe an annotation which says Activiti to not persist the variable…..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, but right now I have absolutly no idea how the Activiti code works and how are the concepts behind the workflow context and variables. Maybe I will find some time to dive in deeper in the Activiti code and be able to create a contribution. At the moment time is short - as always &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greets,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andreas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 13:02:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-non-persistent-variables-in-workflow-execution/m-p/102161#M71055</guid>
      <dc:creator>aglaser</dc:creator>
      <dc:date>2012-06-25T13:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using non-persistent variables in workflow execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-non-persistent-variables-in-workflow-execution/m-p/102162#M71056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Couldn't you use @RequestScoped Beans in Spring or CDI?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 13:12:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-non-persistent-variables-in-workflow-execution/m-p/102162#M71056</guid>
      <dc:creator>meyerd</dc:creator>
      <dc:date>2012-06-25T13:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using non-persistent variables in workflow execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-non-persistent-variables-in-workflow-execution/m-p/102163#M71057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Couldn't you use @RequestScoped Beans in Spring or CDI?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a Spring based application running in a Tomcat. Incoming calls are not HTTP but JMS. It's a backend server. Playing around with different scopes is nice too but I don't believe this is a good solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I like the idea of having a small wrapper/container around the parameter which holds the parameter in a transient field. Activiti can persist the wrapper but the real parameter is not persisted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But thanx for your idea. It's always good to think in different ways. Sometimes the best solution is around the corner but you never look there…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 08:37:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-non-persistent-variables-in-workflow-execution/m-p/102163#M71057</guid>
      <dc:creator>aglaser</dc:creator>
      <dc:date>2012-06-26T08:37:42Z</dc:date>
    </item>
  </channel>
</rss>

