<?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: Form Validation in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/form-validation/m-p/192882#M146012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank for your timely response. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking for a a way to provide instant feedback to the form submitter via REST. Unless I'm missing something I see that I only have 3 options:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Move the business logic to validate the user outside of the process. I'd have to perform my form validation BEFORE my call: formService.submitStartFormData(). I'm not a big fan of that idea because I'd like the process to model my actual business process as closely as possible. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I could submit the form and write a loop that queries for a specific flag or state and then sleep n number of seconds before polling the database again. After the loop ends I can then return the proper status code indicating if the user validation passed or failed. Again, I'm not a big fan of this solution. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. I could add a listener to Validate User and have the REST logic respond to complete event triggered by the listener. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Either way, in this case, the goal would be to give instant feedback to the user that the user name was either valid or invalid without having to make subsequent REST calls to check the status of the form validation step. Please advise as to other options if I missed them. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Oct 2015 13:20:09 GMT</pubDate>
    <dc:creator>agilliam</dc:creator>
    <dc:date>2015-10-13T13:20:09Z</dc:date>
    <item>
      <title>Form Validation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-validation/m-p/192880#M146010</link>
      <description>I'm relatively new to Activiti and I've come across a problem that I haven't been able to figure out yet. If I have a workflow similar to this…[IMG]http://i61.tinypic.com/2mm7fpv.jpg[/IMG]My start task form expects a single field: userId. ValidateUser is business logic to determine if the userId alr</description>
      <pubDate>Mon, 12 Oct 2015 23:00:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-validation/m-p/192880#M146010</guid>
      <dc:creator>agilliam</dc:creator>
      <dc:date>2015-10-12T23:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Form Validation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-validation/m-p/192881#M146011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Activiti executes the process instance until it finds a wait state. So that happens here: until the validate user is done and the next user task is reached, the engine keeps continuing. And at that point the rest call returns.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure what you are looking for here? What would you expect?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 12:28:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-validation/m-p/192881#M146011</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-10-13T12:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Form Validation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-validation/m-p/192882#M146012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank for your timely response. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking for a a way to provide instant feedback to the form submitter via REST. Unless I'm missing something I see that I only have 3 options:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Move the business logic to validate the user outside of the process. I'd have to perform my form validation BEFORE my call: formService.submitStartFormData(). I'm not a big fan of that idea because I'd like the process to model my actual business process as closely as possible. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I could submit the form and write a loop that queries for a specific flag or state and then sleep n number of seconds before polling the database again. After the loop ends I can then return the proper status code indicating if the user validation passed or failed. Again, I'm not a big fan of this solution. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. I could add a listener to Validate User and have the REST logic respond to complete event triggered by the listener. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Either way, in this case, the goal would be to give instant feedback to the user that the user name was either valid or invalid without having to make subsequent REST calls to check the status of the form validation step. Please advise as to other options if I missed them. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 13:20:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-validation/m-p/192882#M146012</guid>
      <dc:creator>agilliam</dc:creator>
      <dc:date>2015-10-13T13:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Form Validation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-validation/m-p/192883#M146013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I understand your requirements correctly, I think the service task should be changed to a async service task. This means that the user will immediately get feedback and then you can query the jobs to see if validation is ready.&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>Wed, 14 Oct 2015 12:41:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-validation/m-p/192883#M146013</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-10-14T12:41:20Z</dc:date>
    </item>
  </channel>
</rss>

