<?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: Java Activiti Inputs in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115795#M81643</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;BR /&gt;&lt;SPAN&gt;For the 1st option I get a NullPointerException when trying the following&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the History service, invoke createHistoricDetailQuery method. I then use the processInstanceId singleResult method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When using the HistoricDetail object returned gives a NullPointerException.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also I would like to downcast this to HistoricVariableUpdate so I can get the value of the process output variable. Still I get a NullPointerException.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Sep 2012 19:26:08 GMT</pubDate>
    <dc:creator>chunnu</dc:creator>
    <dc:date>2012-09-25T19:26:08Z</dc:date>
    <item>
      <title>Java Activiti Inputs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115784#M81632</link>
      <description>I am learning Java Activiti in order to connect a process through Java Spring MVC.I have used the Java Service Task and my code executes. What I want to do is when the process starts I want the client to send inputs. For example send a name. How is this possible through Java Activiti? I have tried a</description>
      <pubDate>Sun, 16 Sep 2012 14:35:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115784#M81632</guid>
      <dc:creator>chunnu</dc:creator>
      <dc:date>2012-09-16T14:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Java Activiti Inputs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115785#M81633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What you need is a form that is displayed to the user. All the input of the user is then sent to the engine as process variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Check the startProcessInstance method that accepts a map of variables. Same for completing user tasks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 15:06:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115785#M81633</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-09-17T15:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Java Activiti Inputs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115786#M81634</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;BR /&gt;&lt;SPAN&gt;Actually there is no user interface. The data input will be coming through JSON.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Data wil come through JSON into Spring MVC. Then the Activiti engine will start. So in this case how should I do it for input and output?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 20:52:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115786#M81634</guid>
      <dc:creator>chunnu</dc:creator>
      <dc:date>2012-09-17T20:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Java Activiti Inputs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115787#M81635</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;BR /&gt;&lt;SPAN&gt;When replying could you please give an example of how it is done.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 21:45:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115787#M81635</guid>
      <dc:creator>chunnu</dc:creator>
      <dc:date>2012-09-17T21:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Java Activiti Inputs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115788#M81636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just convert the json to whatever object you want, and call the runtimeService.startProcessInstance method and pass your variables there. It would be an example of two lines &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 09:02:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115788#M81636</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-09-18T09:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Java Activiti Inputs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115789#M81637</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;BR /&gt;&lt;SPAN&gt;Ok, I got the input process variable to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code will exeucte like a Service without any user involment. Basically there is a user interface. User interface adds information to JSON. The Java code which is the JavaDelegate&amp;nbsp; will execute to do something that doesn't involve a user. When the code has finished it will give a success back to JSON which in turn will tell client.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The sucess is the output variable. How can this be created? I can create it in the JavaDelegate but when the code has completed how can it be accessed through the process instance?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From the output variable I would like to print the result.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 17:50:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115789#M81637</guid>
      <dc:creator>chunnu</dc:creator>
      <dc:date>2012-09-18T17:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Java Activiti Inputs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115790#M81638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So if I understand you correctly, when the user fills in a form, a fully automated process is started and finished. And you need the outcome of that process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First of all: do you really need a workflow/process for this? Feels like mis-using a bpm engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But to answer your question: the easiest is probably storing the outcome as a process variable, and fetching the last value of that variable from the process history.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 08:29:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115790#M81638</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-09-19T08:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Java Activiti Inputs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115791#M81639</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;BR /&gt;&lt;SPAN&gt;Yes that's right and for now I do need it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am unable to locate the method in the HistoryService. Can you tell me which method should be called to get the output variable?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 19:29:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115791#M81639</guid>
      <dc:creator>chunnu</dc:creator>
      <dc:date>2012-09-19T19:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Java Activiti Inputs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115792#M81640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Check &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; /** Creates a new programmatic query to search for {@link HistoricDetail}s. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; HistoricDetailQuery createHistoricDetailQuery();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if you're on 5.10. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you're adventurous and want to have an easier way, check trunk:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; /** Creates a new programmatic query to search for {@link HistoricProcessVariable}s. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; HistoricProcessVariableQuery createHistoricProcessVariableQuery();&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 09:20:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115792#M81640</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-09-20T09:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Java Activiti Inputs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115793#M81641</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;BR /&gt;&lt;SPAN&gt;I am on version 5.10. I am not sure which method to call on the 1st 1 you are saying and for the other 1 HistoricProcessVariableQuery I cannot see this on the API. Is this version 5.10?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2012 08:12:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115793#M81641</guid>
      <dc:creator>chunnu</dc:creator>
      <dc:date>2012-09-22T08:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Java Activiti Inputs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115794#M81642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Read my quote:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you're adventurous and want to have an easier way, check trunk:&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Which means that it is the unreleased version of the next Activiti, yes &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you'd need to use the first option if you stick with 5.10.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 09:08:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115794#M81642</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-09-24T09:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Java Activiti Inputs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115795#M81643</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;BR /&gt;&lt;SPAN&gt;For the 1st option I get a NullPointerException when trying the following&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the History service, invoke createHistoricDetailQuery method. I then use the processInstanceId singleResult method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When using the HistoricDetail object returned gives a NullPointerException.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also I would like to downcast this to HistoricVariableUpdate so I can get the value of the process output variable. Still I get a NullPointerException.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 19:26:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115795#M81643</guid>
      <dc:creator>chunnu</dc:creator>
      <dc:date>2012-09-25T19:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Java Activiti Inputs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115796#M81644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not following: can you copy the exact line you try to execute. The Query api shouldn't give any null pointer exceptions&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 08:09:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115796#M81644</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-09-26T08:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Java Activiti Inputs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115797#M81645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;CODE&gt;&lt;BR /&gt;ProcessInstance processInstance =getRuntimeService().startProcessInstanceByKey(“process1“, map);&lt;BR /&gt;HistoricDetail j =getHistoryService().createHistoricDetailQuery().processInstanceId(processInstance.getProcessInstanceId()).singleResult();&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;j is null map is a Map&amp;lt;String,Object&amp;gt; = new HashMap&amp;lt;String, Object&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 19:39:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115797#M81645</guid>
      <dc:creator>chunnu</dc:creator>
      <dc:date>2012-09-26T19:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Java Activiti Inputs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115798#M81646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;DId you enable history? What history level are you running on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To be safe, set the history level to 'full', you should at least get something back then.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 11:39:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115798#M81646</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-01T11:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Java Activiti Inputs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115799#M81647</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;BR /&gt;&lt;SPAN&gt;How do you turn it on?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 19:36:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115799#M81647</guid>
      <dc:creator>chunnu</dc:creator>
      <dc:date>2012-10-01T19:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Java Activiti Inputs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115800#M81648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Uhhhmmm… By reading the documentation?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 19:58:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-activiti-inputs/m-p/115800#M81648</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-10-01T19:58:56Z</dc:date>
    </item>
  </channel>
</rss>

