<?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 view deployed bussiness process? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-view-deployed-bussiness-process/m-p/166570#M120151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The "my instances" page is using the folowing query to populate the view:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; List&amp;lt;HistoricProcessInstance&amp;gt; processInstances = historyService&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .createHistoricProcessInstanceQuery()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .startedBy(ExplorerApp.get().getLoggedInUser().getId())&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .unfinished()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .list();&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;So it's actually showing all process-instances started by the user that is logged in. When you start a process from the API, you should make sure you set the current logged in user. If not, the "started by" will be left empty.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can do this, by using this kind of construct:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;import org.activiti.engine.impl.identity.Authentication;&lt;BR /&gt;&lt;BR /&gt;…&lt;BR /&gt;&lt;BR /&gt;try {&lt;BR /&gt;Authentication.setAuthenticatedUserId("kermit");&lt;BR /&gt;&lt;BR /&gt;runtimeService.start….&lt;BR /&gt;&lt;BR /&gt;} finally {&lt;BR /&gt;// After API call is complete, always clear the authenticated user, in case this thread will be reused&lt;BR /&gt;// for other calls, eg. when API-call is done from a tomcat-thread-pool thread&lt;BR /&gt;Authentication.setAuthenticatedUserId(null);&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jan 2014 11:02:49 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2014-01-09T11:02:49Z</dc:date>
    <item>
      <title>How to view deployed bussiness process?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-view-deployed-bussiness-process/m-p/166563#M120144</link>
      <description>Hi all.I found that after I deployed and ran a process from Eclipse, I went to Activiti-Explorer –&amp;gt; Processes–&amp;gt; My instance then I was unable to view any process diagram.I can only view process diagram if I start process using Activiti-Explorer.So how can I do to view process diagram which is</description>
      <pubDate>Mon, 30 Dec 2013 07:45:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-view-deployed-bussiness-process/m-p/166563#M120144</guid>
      <dc:creator>holysoul</dc:creator>
      <dc:date>2013-12-30T07:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to view deployed bussiness process?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-view-deployed-bussiness-process/m-p/166564#M120145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you deployed the process you can view the process image in the "Processes - Deployed process definitions" section.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 12:10:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-view-deployed-bussiness-process/m-p/166564#M120145</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-12-30T12:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to view deployed bussiness process?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-view-deployed-bussiness-process/m-p/166565#M120146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can't see it. I deployed and ran process from eclipse, my flow also has the user task. When I opened activiti-explorer, I could see the task assigned for me, I still did not complete it yet. However, in the "process-deployed process definitions" image, I saw that the process is completed 100%.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said above, If I go to "process-deployed process definitions" then press "start process", I can view the process completion in "my instance". What happens if I start process from Eclipse?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 02:46:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-view-deployed-bussiness-process/m-p/166565#M120146</guid>
      <dc:creator>holysoul</dc:creator>
      <dc:date>2013-12-31T02:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to view deployed bussiness process?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-view-deployed-bussiness-process/m-p/166566#M120147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do you deploy from Eclipse? Do you upload an image with it? Does the process contain the correct diagram interchange information?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 12:05:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-view-deployed-bussiness-process/m-p/166566#M120147</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-01-06T12:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to view deployed bussiness process?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-view-deployed-bussiness-process/m-p/166567#M120148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi jbarrez.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I've done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Firstly, I just create example.bpmn20.xml, it only consists of 1 userTask.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Scecondly, I deploy that diagram running from Eclipse IDE. Like that&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ProcessEngine processEngine;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; processEngine = ProcessEngines.getDefaultProcessEngine();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; processEngine.getRepositoryService().createDeployment()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .addClasspathResource("example.bpmn20.xml").deploy();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything is OK. Now I can see it in "Processes–&amp;gt; deployed process definitions", I also can see its image. Then I start process, jump to "my instance", the process is stuck at userTask. It's really good, so I delete the instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thirdly, I use these code to start process from Eclipse IDE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Map&amp;lt;String, Object&amp;gt; variableMap = new HashMap&amp;lt;String, Object&amp;gt;();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; String procesInstanceID = processEngine.getRuntimeService()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .startProcessInstanceByKey("bccs-im-order", variableMap)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .getProcessInstanceId();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jumping to Activiti-Explorer, I can see the userTask which is assigned for me, so the process is run well. But when I open "my instance", I can not see the image like before, no clue to track the process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wonder if my code is not enough to fill information. So please help me. Thank you very much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 04:13:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-view-deployed-bussiness-process/m-p/166567#M120148</guid>
      <dc:creator>holysoul</dc:creator>
      <dc:date>2014-01-07T04:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to view deployed bussiness process?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-view-deployed-bussiness-process/m-p/166568#M120149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you put the example.bpmn20.xml somewhere so we can check it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to make sure the '"bccs-im-order" is the id in this xml file?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 08:36:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-view-deployed-bussiness-process/m-p/166568#M120149</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-01-08T08:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to view deployed bussiness process?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-view-deployed-bussiness-process/m-p/166569#M120150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I intent to upload my project into github, but it's not allowed by our company's policy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I quickly write again the small example with 3 file text:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Run.text is java class &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-activiti-example-user-task is the model to deploy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for this inconvenience. &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 03:09:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-view-deployed-bussiness-process/m-p/166569#M120150</guid>
      <dc:creator>holysoul</dc:creator>
      <dc:date>2014-01-09T03:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to view deployed bussiness process?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-view-deployed-bussiness-process/m-p/166570#M120151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The "my instances" page is using the folowing query to populate the view:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; List&amp;lt;HistoricProcessInstance&amp;gt; processInstances = historyService&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .createHistoricProcessInstanceQuery()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .startedBy(ExplorerApp.get().getLoggedInUser().getId())&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .unfinished()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .list();&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;So it's actually showing all process-instances started by the user that is logged in. When you start a process from the API, you should make sure you set the current logged in user. If not, the "started by" will be left empty.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can do this, by using this kind of construct:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;import org.activiti.engine.impl.identity.Authentication;&lt;BR /&gt;&lt;BR /&gt;…&lt;BR /&gt;&lt;BR /&gt;try {&lt;BR /&gt;Authentication.setAuthenticatedUserId("kermit");&lt;BR /&gt;&lt;BR /&gt;runtimeService.start….&lt;BR /&gt;&lt;BR /&gt;} finally {&lt;BR /&gt;// After API call is complete, always clear the authenticated user, in case this thread will be reused&lt;BR /&gt;// for other calls, eg. when API-call is done from a tomcat-thread-pool thread&lt;BR /&gt;Authentication.setAuthenticatedUserId(null);&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 11:02:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-view-deployed-bussiness-process/m-p/166570#M120151</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-01-09T11:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to view deployed bussiness process?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-view-deployed-bussiness-process/m-p/166571#M120152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, that's it. Thank frederikheremans.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 01:36:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-view-deployed-bussiness-process/m-p/166571#M120152</guid>
      <dc:creator>holysoul</dc:creator>
      <dc:date>2014-01-10T01:36:28Z</dc:date>
    </item>
  </channel>
</rss>

