<?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 How to get the process instance id using expression? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-process-instance-id-using-expression/m-p/241970#M195100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm playing with Activiti Enterprise trial, and I'm developing a workflow where I have to create a identification for the workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As what I need is to have a unique id, I thought about getting the instance id and use it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an easy way to get that value and set it as a form field?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the end of the process, I have a Publish to Alfresco task, and I would like to use that value as the destination folder inside Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that is not an option, can you please suggest another idea?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Oct 2016 19:33:23 GMT</pubDate>
    <dc:creator>douglascrp</dc:creator>
    <dc:date>2016-10-24T19:33:23Z</dc:date>
    <item>
      <title>How to get the process instance id using expression?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-process-instance-id-using-expression/m-p/241970#M195100</link>
      <description>I'm playing with Activiti Enterprise trial, and I'm developing a workflow where I have to create a identification for the workflow.As what I need is to have a unique id, I thought about getting the instance id and use it.Is there an easy way to get that value and set it as a form field?At the end of</description>
      <pubDate>Mon, 24 Oct 2016 19:33:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-process-instance-id-using-expression/m-p/241970#M195100</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2016-10-24T19:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the process instance id using expression?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-process-instance-id-using-expression/m-p/241971#M195101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;process instance id can be used to uniquely identify an instance. If you want to display this id in your form, you can do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Define a variable at the process level in your BPMN xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In your task forms, use a display value or display text field to show this variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After the process instance is started, you can use a script task/execution listener to set this variable value to process instance id. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eg: If your variable name is "processId", you can set it as execution.setVariable("processId",execution.getProcessInstanceId())&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 23:57:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-process-instance-id-using-expression/m-p/241971#M195101</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2016-10-24T23:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the process instance id using expression?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-process-instance-id-using-expression/m-p/241972#M195102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm going to try it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 00:10:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-process-instance-id-using-expression/m-p/241972#M195102</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2016-10-25T00:10:07Z</dc:date>
    </item>
  </channel>
</rss>

