<?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: How to save process variables to custom database? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-save-process-variables-to-custom-database/m-p/137781#M96551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How does your BPMN20.xml look like? Maybe you wired the service-task JavaDelegate in a wring way (e.g.? using activiti:class). If the JavaDelegate is not retrieved from the CDI-context, it makes sense that the @Injects are not working…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jan 2013 07:56:39 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-01-10T07:56:39Z</dc:date>
    <item>
      <title>How to save process variables to custom database?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-save-process-variables-to-custom-database/m-p/137780#M96550</link>
      <description>Hi,I want to store process variables into database after completion of the process.I'm new to CDI so&amp;nbsp; not able to store the variable values in database.Can anybody please help me….my code is as followingpublic interface UserDao {&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; void saveIncident(String incidentID,long number,String title,Str</description>
      <pubDate>Wed, 09 Jan 2013 13:04:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-save-process-variables-to-custom-database/m-p/137780#M96550</guid>
      <dc:creator>sherlock</dc:creator>
      <dc:date>2013-01-09T13:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to save process variables to custom database?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-save-process-variables-to-custom-database/m-p/137781#M96551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How does your BPMN20.xml look like? Maybe you wired the service-task JavaDelegate in a wring way (e.g.? using activiti:class). If the JavaDelegate is not retrieved from the CDI-context, it makes sense that the @Injects are not working…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 07:56:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-save-process-variables-to-custom-database/m-p/137781#M96551</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-01-10T07:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to save process variables to custom database?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-save-process-variables-to-custom-database/m-p/137782#M96552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How does your BPMN20.xml look like? Maybe you wired the service-task JavaDelegate in a wring way (e.g.? using activiti:class). If the JavaDelegate is not retrieved from the CDI-context, it makes sense that the @Injects are not working…&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi frederik,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply. I am not using any spring configuration in the project. I am trying to get the process variables in the service task and i achieved it, but i am not able to store the variables in the database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to achieve this can you pls explain me….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had tried to achieve this by injecting controller object, but i got the controller object as null. I tried to inject EntityManager by persistence cotext that too gave me null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have mentioned the bpmn file please check and help me how to save my process variables in persistence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; &amp;lt;process id="incident" name="Incident Demo" isExecutable="true"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;startEvent id="startevent1" name="Start" activiti:formKey="create.xhtml"&amp;gt;&amp;lt;/startEvent&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userTask id="usertask1" name="Update Incident" activiti:assignee="${manager}" activiti:formKey="update.xhtml"&amp;gt;&amp;lt;/userTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endEvent id="endevent1" name="End"&amp;gt;&amp;lt;/endEvent&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow1" sourceRef="startevent1" targetRef="usertask1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serviceTask id="servicetask1" name="Save Incident" activiti:class="com.rolta.onv.im.server.IncidentSaveService"&amp;gt;&amp;lt;/serviceTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow2" sourceRef="usertask1" targetRef="servicetask1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow3" sourceRef="servicetask1" targetRef="endevent1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/process&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sherlock&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 09:42:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-save-process-variables-to-custom-database/m-p/137782#M96552</guid>
      <dc:creator>sherlock</dc:creator>
      <dc:date>2013-01-11T09:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to save process variables to custom database?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-save-process-variables-to-custom-database/m-p/137783#M96553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see you're using activiti:class="com.rolta.onv.im.server.IncidentSaveService" (As I suspected in my previous post). When you use this, activiti will just instantiate an instance of the given class, without any "special" treatment at all. So the constructor will just be called. All the @Injects won't work because the instance is not retrieved from the CDI-context.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll have to use activiti:delegateExpression="${incidentSaveService}" instead, combined with a CdiJtaProcessEngineConfiguration (which has a CdiResolver inside, capable of resolving CDI-beans in expressions used in activiti). This will enable you to use the CDI-bean named "incidentSaveService" in activiti.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 09:59:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-save-process-variables-to-custom-database/m-p/137783#M96553</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-01-11T09:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to save process variables to custom database?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-save-process-variables-to-custom-database/m-p/137784#M96554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I see you're using activiti:class="com.rolta.onv.im.server.IncidentSaveService" (As I suspected in my previous post). When you use this, activiti will just instantiate an instance of the given class, without any "special" treatment at all. So the constructor will just be called. All the @Injects won't work because the instance is not retrieved from the CDI-context.&lt;BR /&gt;&lt;BR /&gt;You'll have to use activiti:delegateExpression="${incidentSaveService}" instead, combined with a CdiJtaProcessEngineConfiguration (which has a CdiResolver inside, capable of resolving CDI-beans in expressions used in activiti). This will enable you to use the CDI-bean named "incidentSaveService" in activiti.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Frederik. your solution worked out for me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jan 2013 07:52:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-save-process-variables-to-custom-database/m-p/137784#M96554</guid>
      <dc:creator>sherlock</dc:creator>
      <dc:date>2013-01-13T07:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to save process variables to custom database?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-save-process-variables-to-custom-database/m-p/137785#M96555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey , I think you were working in a project "Manage incidents" . I have a project in&amp;nbsp; class and I need soe help, could you please help me ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 11:59:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-save-process-variables-to-custom-database/m-p/137785#M96555</guid>
      <dc:creator>aicha</dc:creator>
      <dc:date>2016-08-23T11:59:57Z</dc:date>
    </item>
  </channel>
</rss>

