<?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: Modify process instance name in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31166#M13217</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Your solution works very well. But I have a question, is it possible to use a process variable in the process name? I tried to use a variable eg ${ClaimNumber} but unfortunately it doesn't work for me.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2019 14:29:27 GMT</pubDate>
    <dc:creator>wojtekb</dc:creator>
    <dc:date>2019-10-21T14:29:27Z</dc:date>
    <item>
      <title>Modify process instance name</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31155#M13206</link>
      <description>Dear community.Is there a way to modify the name of a process instance?I'd prefer to use an execution (or task) listener for this purpose. Having ${processInfoBean.getProcessName(execution)} to get the process instance name I wonder whether there is a method to modify the process instance name.Best</description>
      <pubDate>Wed, 10 May 2017 06:22:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31155#M13206</guid>
      <dc:creator>mrahn</dc:creator>
      <dc:date>2017-05-10T06:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Modify process instance name</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31156#M13207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN style="background-color: #ffffff; color: #727174;"&gt;&amp;gt; Is there a way to modify the name of a process instance?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN style="background-color: #ffffff; color: #727174;"&gt;You can user public api '&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;RuntimeService.setProcessInstanceName(String &lt;/SPAN&gt;&lt;SPAN class=""&gt;processInstanceId&lt;/SPAN&gt;&lt;SPAN&gt;, String &lt;/SPAN&gt;&lt;SPAN class=""&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;)'.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;A class="link-titled" href="https://www.activiti.org/javadocs/org/activiti/engine/RuntimeService.html#setProcessInstanceName-java.lang.String-java.lang.String-" title="https://www.activiti.org/javadocs/org/activiti/engine/RuntimeService.html#setProcessInstanceName-java.lang.String-java.lang.String-" rel="nofollow noopener noreferrer"&gt;RuntimeService (Activiti - Engine 5.22.0 API)&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;* Java example&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;execution&lt;/SPAN&gt;.getEngineServices().getRuntimeService().setProcessInstanceName(&lt;SPAN class=""&gt;execution&lt;/SPAN&gt;.getProcessInstanceId(), &lt;SPAN class=""&gt;%NAME&lt;/SPAN&gt;&lt;SPAN class=""&gt;%&lt;/SPAN&gt;);&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;* Expression example&lt;/P&gt;&lt;PRE class="" data-lang="java" data-unlink="" style="background: #fafafa; font-size: 14px; padding: 10px;"&gt;${execution.&lt;SPAN&gt;getEngineServices().getRuntimeService().setProcessInstanceName&lt;/SPAN&gt;(execution.getProcessInstanceId()&lt;SPAN style="color: #ff6666;"&gt; &lt;/SPAN&gt;, %NAME%)}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 06:47:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31156#M13207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-10T06:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Modify process instance name</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31157#M13208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you daisuke-yoshimoto!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your reply was very helpful!&lt;/P&gt;&lt;P&gt;Since it didn't seem to work for me I imported your process and it didn't work either.&lt;/P&gt;&lt;P&gt;What I found so far is, that modifications of the process intance name doesn't work before end of the first user task. So for the first user task it does not work&amp;nbsp;with the Start event of the Execution Listener or the Create event of the Task Listener. But it does work with the End event of the Execution Listener and the&amp;nbsp;Complete event of the Task Listener. For the second user Task it does work with the Start event of the Execution Listener&amp;nbsp;and the Create event of the Task Listener. Using a Service Task (or Script Task) between Start and the first user task doesn't help as well. The process name cannot be modified before the end of the first user task.&lt;/P&gt;&lt;P&gt;We run Alfresco Process Services 1.6.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 13:07:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31157#M13208</guid>
      <dc:creator>mrahn</dc:creator>
      <dc:date>2017-05-12T13:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Modify process instance name</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31158#M13209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When do you want to change process instance name?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 13:27:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31158#M13209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-12T13:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Modify process instance name</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31159#M13210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best would be using an Execution listener of the Sequence flow just before the first user task. Doing so I'd be able to modify the process instance name before the first user gets involved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 13:58:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31159#M13210</guid>
      <dc:creator>mrahn</dc:creator>
      <dc:date>2017-05-12T13:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Modify process instance name</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31160#M13211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; The best would be using an Execution listener of the Sequence flow just before the first user task.&lt;BR /&gt;&amp;gt; Doing so I'd be able to modify the process instance name before the first user gets involved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;BR /&gt;I made the sample for your use case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 14:13:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31160#M13211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-12T14:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Modify process instance name</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31161#M13212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mmmhhh, as I wrote: this doesn't work.&amp;nbsp;In my system modifications&amp;nbsp;of the process name don't work before the end of the first user task.&lt;/P&gt;&lt;P&gt;Does it work for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 14:37:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31161#M13212</guid>
      <dc:creator>mrahn</dc:creator>
      <dc:date>2017-05-12T14:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Modify process instance name</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31162#M13213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry, I didn't checked it in the same environment as you.&lt;BR /&gt;I checked it with Activiti engine 5.21.0.&lt;/P&gt;&lt;P&gt;Now, I checked it in the same environment as you(Alfresco Process Services 1.6.1) and got error as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;org&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;activiti&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;engine&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ActivitiException&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt; Unknown method used in expression&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt; $&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;execution&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getEngineServices&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getRuntimeService&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setProcessInstanceName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;execution&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getProcessInstanceId&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'mod_name'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; with root cause&lt;BR /&gt;org&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;activiti&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;engine&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;impl&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;javax&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;el&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MethodNotFoundException&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt; Cannot find method &lt;SPAN class="string token"&gt;'getEngineServices'&lt;/SPAN&gt; in '&lt;SPAN class="keyword token"&gt;class&lt;/SPAN&gt;&lt;BR /&gt;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably, it seems that Alfresco Process Services limit EL expression, unlike Activiti Engine.&lt;BR /&gt;You can use modify process instance name by using an Execution listener(directly java program).&lt;/P&gt;&lt;P&gt;I made sample code and uploaded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 May 2017 03:40:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31162#M13213</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-13T03:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Modify process instance name</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31163#M13214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ah ok .. understood.&lt;/P&gt;&lt;P&gt;I was hoping that I could stay on the modelling site of the game but anyhow: &lt;STRONG&gt;thank you very much for the effort .. your help is most appreciated!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 05:37:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31163#M13214</guid>
      <dc:creator>mrahn</dc:creator>
      <dc:date>2017-05-15T05:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Modify process instance name</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31164#M13215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried setting the process instance name in the first user task listener, but it doesnt change the title, i have tried keeping this listener at multiple places but it seems to not change the header in the web.&lt;/P&gt;&lt;P&gt;has anyone tried and got results&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2019 11:14:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31164#M13215</guid>
      <dc:creator>agnishu</dc:creator>
      <dc:date>2019-06-20T11:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Modify process instance name</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31165#M13216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it seems i can change the title by simply editing it before starting the process. but im still unable to retrieve the same during the execution. can someone help how can i retrieve the title during the execution? i tried to access all fields but no luck.&lt;/P&gt;&lt;P&gt;PS: the title we see in activiti-app whic usualu has format - "process name-current date"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2019 06:58:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31165#M13216</guid>
      <dc:creator>agnishu</dc:creator>
      <dc:date>2019-07-22T06:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Modify process instance name</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31166#M13217</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Your solution works very well. But I have a question, is it possible to use a process variable in the process name? I tried to use a variable eg ${ClaimNumber} but unfortunately it doesn't work for me.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 14:29:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31166#M13217</guid>
      <dc:creator>wojtekb</dc:creator>
      <dc:date>2019-10-21T14:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Modify process instance name</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31167#M13218</link>
      <description>&lt;P&gt;this may not be possible because the name is set just after the process start and h epocess insance might not be aware of this variable.&lt;/P&gt;&lt;P&gt;however if you started your process through Java code, then you can sart a process and immediately set a name of your choice. it can be a dynamic value passed from outside.&lt;/P&gt;&lt;P&gt;suppose "title" is a variable, you can create REST end point and execute this. you can then see this started process in the UI.&lt;/P&gt;&lt;PRE&gt;ProcessInstance processInstance = &lt;SPAN&gt;processEngine&lt;/SPAN&gt;.getRuntimeService().startProcessInstanceByKey(&lt;SPAN&gt;"someKey"&lt;/SPAN&gt;, variables);&lt;BR /&gt;&lt;SPAN&gt;processEngine&lt;/SPAN&gt;.getRuntimeService().setProcessInstanceName(processInstance.getId(), title);&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Nov 2019 06:39:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/modify-process-instance-name/m-p/31167#M13218</guid>
      <dc:creator>agnishu</dc:creator>
      <dc:date>2019-11-25T06:39:58Z</dc:date>
    </item>
  </channel>
</rss>

