<?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 Required field not working in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/required-field-not-working/m-p/218252#M171382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I have created a simple model with 2 form properties variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The model has a start point, to the start i connected a user task, and connected the user task to end point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in the user task i added 2 form properties and set them with "required" attribute:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;activiti:formProperty id="SomeID" name="Some ID" type="long" required="true"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;activiti:formProperty id="SomeName" name="Some Name" type="string" required="true"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;now i am trying to send http message to the Rest API (via C#) to complete the task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i send the request with no variables in json body -&amp;gt; it is ok (get a response), how could it be ? shouldnt i get error message that the required variables are not in the json body? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;second of all, when i am trying to send the json body variables, i get bad request message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the json body looks like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{\"action\":\"complete\",\"variables\":[{\"Name\":\"Some ID\",\"Value\":\"12345\"},{\"Name\":\"Some Name\",\"Value\":\"Moshe\"}]}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what is wrong with this ? maybe the variable type in body invalid ? i have set SomeID to be long, and in the json body it is string, does it know automatically to cast string to long?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 06 Dec 2015 11:53:00 GMT</pubDate>
    <dc:creator>ilansch</dc:creator>
    <dc:date>2015-12-06T11:53:00Z</dc:date>
    <item>
      <title>Required field not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/required-field-not-working/m-p/218252#M171382</link>
      <description>Hi, I have created a simple model with 2 form properties variables.The model has a start point, to the start i connected a user task, and connected the user task to end point.in the user task i added 2 form properties and set them with "required" attribute:&amp;lt;extensionElements&amp;gt;&amp;lt;activiti:formP</description>
      <pubDate>Sun, 06 Dec 2015 11:53:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/required-field-not-working/m-p/218252#M171382</guid>
      <dc:creator>ilansch</dc:creator>
      <dc:date>2015-12-06T11:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Required field not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/required-field-not-working/m-p/218253#M171383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;json in body is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"{\"action\":\"complete\",\"variables\":[{\"Name\":\"SomeID\",\"Value\":\"12345\"},{\"Name\":\"SomeName\",\"Value\":\"Moshe\"}]}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The model WFWithVariables.bpmn20.xml looks like: &lt;/SPAN&gt;&lt;A href="http://pastebin.com/CFyMDYJV" rel="nofollow noopener noreferrer"&gt;http://pastebin.com/CFyMDYJV&lt;/A&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Dec 2015 12:13:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/required-field-not-working/m-p/218253#M171383</guid>
      <dc:creator>ilansch</dc:creator>
      <dc:date>2015-12-06T12:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Required field not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/required-field-not-working/m-p/218254#M171384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, the complete task method does not check form properties. You'll need to use the formService to do so.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 19:42:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/required-field-not-working/m-p/218254#M171384</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-12-08T19:42:45Z</dc:date>
    </item>
  </channel>
</rss>

