<?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: myinstances feature in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109647#M76967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should always use the Authentication.setAuthenticatedUserId(…) before calling the Activiti API if you want the started by to work. And always, in a finally block, Authentication.setAuthenticatedUserId(null). This ensures the thread-local store of authentication to be empty for this tread, in car it's part of a pool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jul 2012 08:03:02 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2012-07-06T08:03:02Z</dc:date>
    <item>
      <title>myinstances feature</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109639#M76959</link>
      <description>Hi,&amp;nbsp;&amp;nbsp; We have developed an application using spring framework and integrated with activiti framework for implementing work flows,&amp;nbsp; things are going fine but our problem is ,in activiti-explorer2.0 project which comes from activiti distribution there is a feature for users to see their process instan</description>
      <pubDate>Tue, 03 Jul 2012 11:18:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109639#M76959</guid>
      <dc:creator>pavan_bukka_ait</dc:creator>
      <dc:date>2012-07-03T11:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: myinstances feature</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109640#M76960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Query used by activiti-explorer to get this info. It's always good to check out the activiti project from our SVN an look in there first…&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;Item&amp;gt; items = new ArrayList&amp;lt;Item&amp;gt;();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (HistoricProcessInstance processInstance : processInstances) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; items.add(createItem(processInstance));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return items;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;The "startedBy" is available on the HistoricProcessInstance, so it requires the history to be on (not full, but not off)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 11:21:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109640#M76960</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-07-03T11:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: myinstances feature</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109641#M76961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Isn't kind of strange that for rumtime information, you neede the history? just like with adding comments. especially when you see the (very positive) performance figures of Activiti where enabeling history can decrease the throughput drastically.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 16:32:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109641#M76961</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-07-03T16:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: myinstances feature</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109642#M76962</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you so much for the reply .You have only replied me how to query but i also need to display the process diagram as show in the above image red mark around the Request expense task in my application.We are using jsp,html and tiles as UI technologies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bukka pavan kumar.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 04:43:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109642#M76962</guid>
      <dc:creator>pavan_bukka_ait</dc:creator>
      <dc:date>2012-07-04T04:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: myinstances feature</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109643#M76963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@Ronald: I guess the reason why the "startedBy" is stored in the history is that it's not really relevant for the "runtime" or "execution" of the process. If the initiator is needed in the process, this can be captured using activiti:initiator. The startedBy was added later to the history, for traceability purposes… Indeed, history has a performance impact, however for process-instance history, you don't need FULL history.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Bukka: Check out the source code, this will get you a long way. Good starting point for what you need is org.activiti.explorer.ui.management.process.ProcessInstanceDetailPanel and&amp;nbsp; org.activiti.explorer.ui.process.ProcessDefinitionImageStreamResourceBuilder&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 05:46:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109643#M76963</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-07-04T05:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: myinstances feature</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109644#M76964</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for the reply.you have used vaadin framework for userinterface developement, but we have used jsp in spring environment . Could u tell us do we have to use vaadin framework in our application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bukka pavan kumar.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 13:15:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109644#M76964</guid>
      <dc:creator>pavan_bukka_ait</dc:creator>
      <dc:date>2012-07-04T13:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: myinstances feature</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109645#M76965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What UI-framework you use is entirely up to you. The classes I gave are examples of how the explorer uses the activiti API's. So you should look at the code and extract the stuff you need for your UI. In case of the diagram-image, you use the input-stream in a servlet, instead of in a Vaadin stream:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;InputStream definitionImageStream = repositoryService.getResourceAsStream(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; processDefinition.getDeploymentId(), processDefinition.getDiagramResourceName());&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 13:20:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109645#M76965</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-07-04T13:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: myinstances feature</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109646#M76966</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you so much for the reply. could u tell me how to switch on the history .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have tried this code to get the process Instances started by logged in user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; List&amp;lt;HistoricProcessInstance&amp;gt; processInstances = historyService&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .createHistoricProcessInstanceQuery()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .startedBy(user.getUserEmail())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .unfinished()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .list();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; but it is returning zero results.I checked the db,&amp;nbsp; In&amp;nbsp; act_hi_procinst table in activiti db START_USER_ID column is having null value, I think because of this it is returning zero result .But if i put the User Id in that column manually it is returning the result. I think since i have not turned on the history null is storing in the START_USER_ID column.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2012 07:58:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109646#M76966</guid>
      <dc:creator>pavan_bukka_ait</dc:creator>
      <dc:date>2012-07-06T07:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: myinstances feature</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109647#M76967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should always use the Authentication.setAuthenticatedUserId(…) before calling the Activiti API if you want the started by to work. And always, in a finally block, Authentication.setAuthenticatedUserId(null). This ensures the thread-local store of authentication to be empty for this tread, in car it's part of a pool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2012 08:03:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109647#M76967</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-07-06T08:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: myinstances feature</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109648#M76968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bukka pavan kumar.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2012 11:55:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/myinstances-feature/m-p/109648#M76968</guid>
      <dc:creator>pavan_bukka_ait</dc:creator>
      <dc:date>2012-07-06T11:55:34Z</dc:date>
    </item>
  </channel>
</rss>

