<?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: start process instance by user in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80362#M53626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think what you means is called 'initiator', who start the process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a activiti extention on start node, you can specify a initiator property, that identifies the variable name in which the authenticated user id will be stored when the process is started. Example: &lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;startEvent id="request" activiti:initiator="initiator" /&amp;gt;&lt;/CODE&gt;&lt;SPAN&gt;The authenticated user must be set with the method &lt;/SPAN&gt;&lt;STRONG&gt;BEFORE&lt;/STRONG&gt;&lt;SPAN&gt; the process instance is started,&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;try {&lt;BR /&gt;&amp;nbsp; identityService.setAuthenticatedUserId("bono");&lt;BR /&gt;&amp;nbsp; runtimeService.startProcessInstanceByKey("someProcessKey");&lt;BR /&gt;} finally {&lt;BR /&gt;&amp;nbsp; identityService.setAuthenticatedUserId(null);&lt;BR /&gt;}&lt;/CODE&gt;&lt;SPAN&gt;Then, you can refer the initiator(you can treat it as process owner) variable in the rest of process definiton:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;userTask id="examine" name="examinePaper" activiti:assignee="${identity.findLeader(initiator)}"&amp;gt;&lt;BR /&gt;&amp;lt;/userTask&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;you can find more information about this in the User Guide Chapter 8. BPMN 20 Constructs&amp;nbsp; "start event'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2012 02:04:18 GMT</pubDate>
    <dc:creator>rogerofyan</dc:creator>
    <dc:date>2012-05-22T02:04:18Z</dc:date>
    <item>
      <title>start process instance by user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80360#M53624</link>
      <description>Hello,I would like to start a new instance of a process from a java application.Actually I find this: ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("myProcess");‍But I would like to see the process status on Activiti Explorer with the admin user (kermit).How I can assign</description>
      <pubDate>Mon, 21 May 2012 14:43:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80360#M53624</guid>
      <dc:creator>seba1</dc:creator>
      <dc:date>2012-05-21T14:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: start process instance by user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80361#M53625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same question. How do I assign an owner to a started process? Or when I start a process? I have found that the processes I have started via a web application do not show up in My Instances in Activiti Explorer. However, the same process started via Activiti Explorer are displayed in My Instances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By looking into the database I found that ACT_HI_PROCINST table has a column 'start_user_id_'. This column contains the user ID of the user that started the process using Explorer. However, processes started using &lt;/SPAN&gt;&lt;EM&gt;runtimeService.startProcessInstanceByKey( processDefinitionKey, variables)&lt;/EM&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;do not&lt;/SPAN&gt;&lt;SPAN&gt; have any value in 'start_user_id_'. This is why the running process do not display in My Instances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my database, I used SQL to change the 'start_user_id_' to the appropriate user ID. Now the processes display in My Instances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can accomplish this from code? I have read through a good portion of the API and have not found a solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 22:57:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80361#M53625</guid>
      <dc:creator>jayehsea</dc:creator>
      <dc:date>2012-05-21T22:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: start process instance by user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80362#M53626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think what you means is called 'initiator', who start the process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a activiti extention on start node, you can specify a initiator property, that identifies the variable name in which the authenticated user id will be stored when the process is started. Example: &lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;startEvent id="request" activiti:initiator="initiator" /&amp;gt;&lt;/CODE&gt;&lt;SPAN&gt;The authenticated user must be set with the method &lt;/SPAN&gt;&lt;STRONG&gt;BEFORE&lt;/STRONG&gt;&lt;SPAN&gt; the process instance is started,&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;try {&lt;BR /&gt;&amp;nbsp; identityService.setAuthenticatedUserId("bono");&lt;BR /&gt;&amp;nbsp; runtimeService.startProcessInstanceByKey("someProcessKey");&lt;BR /&gt;} finally {&lt;BR /&gt;&amp;nbsp; identityService.setAuthenticatedUserId(null);&lt;BR /&gt;}&lt;/CODE&gt;&lt;SPAN&gt;Then, you can refer the initiator(you can treat it as process owner) variable in the rest of process definiton:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;userTask id="examine" name="examinePaper" activiti:assignee="${identity.findLeader(initiator)}"&amp;gt;&lt;BR /&gt;&amp;lt;/userTask&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;you can find more information about this in the User Guide Chapter 8. BPMN 20 Constructs&amp;nbsp; "start event'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 02:04:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80362#M53626</guid>
      <dc:creator>rogerofyan</dc:creator>
      <dc:date>2012-05-22T02:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: start process instance by user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80363#M53627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much. The information in your reply provided exactly what I needed. Thanks for the help!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 21:47:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80363#M53627</guid>
      <dc:creator>jayehsea</dc:creator>
      <dc:date>2012-05-22T21:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: start process instance by user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80364#M53628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes same form me ! Thanks you very much&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 06:41:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80364#M53628</guid>
      <dc:creator>seba1</dc:creator>
      <dc:date>2012-05-23T06:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: start process instance by user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80365#M53629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think this should make a nice addition to the documentation. Or a faq…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 07:53:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80365#M53629</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-05-23T07:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: start process instance by user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80366#M53630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solve my question also, Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 02:49:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80366#M53630</guid>
      <dc:creator>chaoyy</dc:creator>
      <dc:date>2012-06-04T02:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: start process instance by user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80367#M53631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@ronald: &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#bpmnStartEvents" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#bpmnStartEvents&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 14:37:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80367#M53631</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-06-06T14:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: start process instance by user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80368#M53632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ooops… Clearly have not been in the docs for a while…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 17:28:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80368#M53632</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-06-06T17:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: start process instance by user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80369#M53633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;But it shows how lazy new users are. I see this here and in primefaces forum also…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 17:29:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80369#M53633</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-06-06T17:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: start process instance by user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80370#M53634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Absolutely… maybe we just have *too much* docs &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(btw, I had to look it up too, didn't remember if it was actually in the docs &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; )&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 08:16:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80370#M53634</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-06-07T08:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: start process instance by user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80371#M53635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And in java code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do i take the task's process's owner (process initiator) ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;START_USER_ID_ from ACT_HI_PROCINST has a value for that process. (I've used the IdentityService solution &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;BR /&gt;&lt;SPAN&gt;task.getOwner() gives null. (I think it goes to ACT_HI_TASKINST's OWNER_)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I have to create a special process instance variable that stores the owner's value?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 16:07:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80371#M53635</guid>
      <dc:creator>mitziuro</dc:creator>
      <dc:date>2012-08-02T16:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: start process instance by user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80372#M53636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want to have the "process initiator", you should use the "activiti:initiator" xml-extention (see user guide) to capture the initiator in a variable. Later on, when you need this, you should get it from the process, rather than the task:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;String intitiatingUser = runtimeService.getVariable("starter", task.getProcessInstanceId());&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Task owner is a different concept, introduced for the more "adhoc" style of tasks. This is, by default, not used by the engine itself perse.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 06:36:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80372#M53636</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-08-03T06:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: start process instance by user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80373#M53637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Everything's great when we are in root execution but it doesn't work when my main process flow crete (automatically) a sub-process (callactiviti) -&amp;nbsp; START_USER_ID_&amp;nbsp; still isn't set for this subproces. How can I change this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 21:31:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80373#M53637</guid>
      <dc:creator>tomili</dc:creator>
      <dc:date>2012-09-26T21:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: start process instance by user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80374#M53638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you passing the variable that contains your start user to the sub process?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 11:40:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80374#M53638</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-01T11:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: start process instance by user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80375#M53639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hymm yes, I was trying to pass "initiator" variable which contains logged in user name "admin"&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and map it to "starter"/"initiator" variable in subproces - no effect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for reply…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TL&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 12:02:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80375#M53639</guid>
      <dc:creator>tomili</dc:creator>
      <dc:date>2012-10-01T12:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: start process instance by user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80376#M53640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Then something sounds wrong … could you file a bug with a simple failing process?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 12:10:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-process-instance-by-user/m-p/80376#M53640</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-01T12:10:57Z</dc:date>
    </item>
  </channel>
</rss>

