<?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 I want to update the value of bytes_ in act_ge_bytearray table. Please suggest as I am stuck and it is very urgent for me. in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/i-want-to-update-the-value-of-bytes-in-act-ge-bytearray-table/m-p/13554#M5996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The task is completed and I have to update the value of bytearray in act_ge_bytearray table. Please suggest me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jun 2017 21:38:01 GMT</pubDate>
    <dc:creator>hassan9619</dc:creator>
    <dc:date>2017-06-08T21:38:01Z</dc:date>
    <item>
      <title>I want to update the value of bytes_ in act_ge_bytearray table. Please suggest as I am stuck and it is very urgent for me.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/i-want-to-update-the-value-of-bytes-in-act-ge-bytearray-table/m-p/13554#M5996</link>
      <description>The task is completed and I have to update the value of bytearray in act_ge_bytearray table. Please suggest me</description>
      <pubDate>Thu, 08 Jun 2017 21:38:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/i-want-to-update-the-value-of-bytes-in-act-ge-bytearray-table/m-p/13554#M5996</guid>
      <dc:creator>hassan9619</dc:creator>
      <dc:date>2017-06-08T21:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: I want to update the value of bytes_ in act_ge_bytearray table. Please suggest as I am stuck and it is very urgent for me.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/i-want-to-update-the-value-of-bytes-in-act-ge-bytearray-table/m-p/13555#M5997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry that the answer was delayed.&lt;BR /&gt;I made the sample code to modify binary variable after process completing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;ProcessEngineConfiguration processEngineConfiguration = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration();&lt;BR /&gt;ProcessEngine processEngine = processEngineConfiguration.buildProcessEngine();&lt;/P&gt;&lt;P&gt;RepositoryService repositoryService = processEngine.getRepositoryService();&lt;BR /&gt;repositoryService.createDeployment().addInputStream("myProcess.bpmn20.xml", new FileInputStream(filename))&lt;BR /&gt;.deploy();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Process executed&lt;/P&gt;&lt;P&gt;Map&amp;lt;String, Object&amp;gt; var1 = new HashMap&amp;lt;String, Object&amp;gt;();&lt;BR /&gt;var1.put("aaa", "bbb");&lt;BR /&gt;Map&amp;lt;String, Object&amp;gt; var = new HashMap&amp;lt;String, Object&amp;gt;();&lt;BR /&gt;var.put("var1", var1);&lt;BR /&gt;ProcessInstance pi = processEngine.getRuntimeService().startProcessInstanceByKey("myProcess", var);&lt;BR /&gt;Task task = processEngine.getTaskService().createTaskQuery().processInstanceId(pi.getId()).singleResult();&lt;BR /&gt;processEngine.getTaskService().complete(task.getId());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//&amp;nbsp;Alteration of history&lt;/P&gt;&lt;P&gt;((ProcessEngineConfigurationImpl) processEngineConfiguration).getCommandExecutor().execute(new Command&amp;lt;Object&amp;gt;() {&lt;BR /&gt;&amp;nbsp; public Object execute(CommandContext commandContext) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; HistoricVariableInstance historicVar = processEngine.getHistoryService().createHistoricVariableInstanceQuery().processInstanceId(pi.getId()).singleResult();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;HistoricVariableInstanceEntity entity = (HistoricVariableInstanceEntity) historicVar;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; var1.put("ccc", "ddd");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;final VariableTypes variableTypes = Context.getCommandContext().getProcessEngineConfiguration().getVariableTypes();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; final VariableType variableType = variableTypes.findVariableType(entity.getValue());&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;entity.setVariableType(variableType);&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;variableType.setValue(var1, entity);&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;return null;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;});&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jun 2017 04:37:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/i-want-to-update-the-value-of-bytes-in-act-ge-bytearray-table/m-p/13555#M5997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-10T04:37:32Z</dc:date>
    </item>
  </channel>
</rss>

