<?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: [REST] Submitting typed variables in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/rest-submitting-typed-variables/m-p/116149#M81938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Frederik, thank you for your response!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Read &lt;A href="http://activiti.org/userguide/index.html#formProperties" rel="nofollow noopener noreferrer"&gt;our userguide on form-properties&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;You an type the properties you submit:&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;userTask id="task"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:formProperty id="duration" type="long"/&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;&amp;lt;/userTask&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;That's ok, but when i submit additional variables on a start process instance phase through the REST API, only text data will be evaluated and stored as process variables. Probably the same thing happen in the TaskOperation REST API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: at the beginning of "External form rendering" section, user guide say that "The API also allows for you to perform your own task form rendering outside of the Activiti Engine" but probably means "outside of the Activiti &lt;/SPAN&gt;&lt;EM&gt;Explorer&lt;/EM&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2012 10:31:15 GMT</pubDate>
    <dc:creator>npasquetto</dc:creator>
    <dc:date>2012-06-15T10:31:15Z</dc:date>
    <item>
      <title>[REST] Submitting typed variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-submitting-typed-variables/m-p/116145#M81934</link>
      <description>Hi, in chapter 15 of activiti user guide on the "Start Process Instance" section, I've read:Note that if a value is submitted as true (instead of "true") it will be treated as a Boolean even if no descriptor is used. The same is also valid for number, i.e., 123 will become an Integer but "123" will</description>
      <pubDate>Wed, 06 Jun 2012 16:13:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-submitting-typed-variables/m-p/116145#M81934</guid>
      <dc:creator>npasquetto</dc:creator>
      <dc:date>2012-06-06T16:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: [REST] Submitting typed variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-submitting-typed-variables/m-p/116146#M81935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you post the json you submit?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 08:15:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-submitting-typed-variables/m-p/116146#M81935</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-06-07T08:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: [REST] Submitting typed variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-submitting-typed-variables/m-p/116147#M81936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Joram, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Could you post the json you submit?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;if I submit something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;{"myEntityID":462,"myCustomData":"hello world"}&lt;/CODE&gt;&lt;SPAN&gt;only &lt;/SPAN&gt;&lt;EM&gt;myCustomData &lt;/EM&gt;&lt;SPAN&gt;will be available as execution variable, but if I submit something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;{"myEntityID":"462","myCustomData":"hello world"}&lt;/CODE&gt;&lt;SPAN&gt;also &lt;/SPAN&gt;&lt;EM&gt;myEntityID &lt;/EM&gt;&lt;SPAN&gt;will be available, as a String. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably &lt;/SPAN&gt;&lt;STRONG&gt;only text values are read&lt;/STRONG&gt;&lt;SPAN&gt; from json requests by the Restlet based rest webapp. Could it be?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 10:09:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-submitting-typed-variables/m-p/116147#M81936</guid>
      <dc:creator>npasquetto</dc:creator>
      <dc:date>2012-06-07T10:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: [REST] Submitting typed variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-submitting-typed-variables/m-p/116148#M81937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Read &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#formProperties" rel="nofollow noopener noreferrer"&gt;our userguide on form-properties&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You an type the properties you submit:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;userTask id="task"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:formProperty id="duration" type="long"/&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;&amp;lt;/userTask&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 08:31:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-submitting-typed-variables/m-p/116148#M81937</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-06-13T08:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: [REST] Submitting typed variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-submitting-typed-variables/m-p/116149#M81938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Frederik, thank you for your response!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Read &lt;A href="http://activiti.org/userguide/index.html#formProperties" rel="nofollow noopener noreferrer"&gt;our userguide on form-properties&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;You an type the properties you submit:&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;userTask id="task"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:formProperty id="duration" type="long"/&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;&amp;lt;/userTask&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;That's ok, but when i submit additional variables on a start process instance phase through the REST API, only text data will be evaluated and stored as process variables. Probably the same thing happen in the TaskOperation REST API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: at the beginning of "External form rendering" section, user guide say that "The API also allows for you to perform your own task form rendering outside of the Activiti Engine" but probably means "outside of the Activiti &lt;/SPAN&gt;&lt;EM&gt;Explorer&lt;/EM&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 10:31:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-submitting-typed-variables/m-p/116149#M81938</guid>
      <dc:creator>npasquetto</dc:creator>
      <dc:date>2012-06-15T10:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: [REST] Submitting typed variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-submitting-typed-variables/m-p/116150#M81939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry for the misunderstanding. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Indeed, the rest-methods don't expose the form-service but just accept the properties and uses their string-values. The same applies for starting a workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ideally, starting a workflow through the form-service should be possible through our REST-service. This shouldn't be too hard, since the value-conversion is done in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the engine itself, we can just chuck in all json-properties to the submitStartForm() instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps you're willing to contribute these additional REST-resources to the activiti-project?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 10:49:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-submitting-typed-variables/m-p/116150#M81939</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-06-15T10:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: [REST] Submitting typed variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-submitting-typed-variables/m-p/116151#M81940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh! &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Sorry for the misunderstanding.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; No problem &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Indeed, the rest-methods don't expose the form-service but just accept the properties and uses their string-values. The same applies for starting a workflow.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Yes, but I don't understand why the server accept only text values, there is some reason?&lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Ideally, starting a workflow through the form-service should be possible through our REST-service. This shouldn't be too hard, since the value-conversion is done in the engine itself, we can just chuck in all json-properties to the submitStartForm() instead.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;We can do it simply by improving the corrent &lt;/SPAN&gt;&lt;EM&gt;Start Process Instance&lt;/EM&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;EM&gt;Perform Task Operation&lt;/EM&gt;&lt;SPAN&gt; REST-services, correct?&lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Perhaps you're willing to contribute these additional REST-resources to the activiti-project?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;We can think about it!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 12:46:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-submitting-typed-variables/m-p/116151#M81940</guid>
      <dc:creator>npasquetto</dc:creator>
      <dc:date>2012-06-15T12:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: [REST] Submitting typed variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-submitting-typed-variables/m-p/116152#M81941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The existing "start process" and "complete task" rest-calls should stay as they are. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2 new rest-resources should be added, having similar behavior to the two existing ones, but instead of calling startProcessInstance() and completeTask() they should be calling submitStartForm() and submitTaskForm() on the form service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 12:51:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-submitting-typed-variables/m-p/116152#M81941</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-06-15T12:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: [REST] Submitting typed variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-submitting-typed-variables/m-p/116153#M81942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The existing "start process" and "complete task" rest-calls should stay as they are. &lt;BR /&gt;&lt;BR /&gt;2 new rest-resources should be added, having similar behavior to the two existing ones, but instead of calling startProcessInstance() and completeTask() they should be calling submitStartForm() and submitTaskForm() on the form service.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;OK, thank you, now I understand. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assumed to improve the current tasks to maintain a certain parallelism between the Activiti Explorer and the REST API. In the Explorer you take the same way to start a process (or complete a task) with or without form properties, so I thought it was desirable to have a similar behavior in the REST API, with a single method. But probably it's not a correct approach.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 13:52:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-submitting-typed-variables/m-p/116153#M81942</guid>
      <dc:creator>npasquetto</dc:creator>
      <dc:date>2012-06-15T13:52:14Z</dc:date>
    </item>
  </channel>
</rss>

