<?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: How to set assignee of next step from a form field in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-assignee-of-next-step-from-a-form-field/m-p/26719#M11501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, that answers my questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding API, there seems to be a bug or something undocumented.&lt;/P&gt;&lt;P&gt;I create an instance using the function POST&amp;nbsp;/activiti-rest/service/runtime/process-instances&lt;/P&gt;&lt;P&gt;an instance is created and its process-instance-id is returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want to complete the first step of the freshly created instance.&lt;/P&gt;&lt;P&gt;I've found : POST&amp;nbsp;/activiti-rest/service/runtime/tasks/task-id (+ action name in the body) should do the job&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it indeed works fine, provided I know the task-id of the task to complete, however the task-id is not returned when the instance is created,and is nowhere to be found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried GET&amp;nbsp;/activiti-rest/service/runtime/process-instances/process-instance-id which only contains process related stuff and&amp;nbsp;&lt;SPAN&gt;GET&amp;nbsp;/activiti-rest/service/runtime/process-instances&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;process-instance&lt;/SPAN&gt;&lt;SPAN&gt;-id/tasks which I expected to return the list of tasks but returned 404.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;How should I proceed ? Is there maybe a trick to create an instance and complete the task at the same time ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jul 2018 13:43:39 GMT</pubDate>
    <dc:creator>rollando</dc:creator>
    <dc:date>2018-07-13T13:43:39Z</dc:date>
    <item>
      <title>How to set assignee of next step from a form field</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-assignee-of-next-step-from-a-form-field/m-p/26713#M11495</link>
      <description>Hello,I've created a form that contains a field of type "People" that enables users to pick another user. Now I'd like to set the picked user as the assignee of the next step, how can I do that ?I'm using Activiti 6.0I've run into other threads that mention XML parts of code, but I'm not sure where</description>
      <pubDate>Tue, 10 Jul 2018 07:35:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-assignee-of-next-step-from-a-form-field/m-p/26713#M11495</guid>
      <dc:creator>rollando</dc:creator>
      <dc:date>2018-07-10T07:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to set assignee of next step from a form field</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-assignee-of-next-step-from-a-form-field/m-p/26714#M11496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There seems to be a issue with the people field (submitted value is null). However you can use a text field to enter the assignee id that can be used as the assignee of the next task. I've attached an example app here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 12:47:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-assignee-of-next-step-from-a-form-field/m-p/26714#M11496</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-07-11T12:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to set assignee of next step from a form field</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-assignee-of-next-step-from-a-form-field/m-p/26715#M11497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've come to the same conclusion. I've then replaced it by a drop down and set the variable in the assignee field, and it works just fine &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;/P&gt;&lt;P&gt;Another thing that doesn't seem to work is the file upload field, it's possible to upload a file, but not to display it in the following forms. Any idea about how to retrieve the url of the file or to let next users access it ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 13:33:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-assignee-of-next-step-from-a-form-field/m-p/26715#M11497</guid>
      <dc:creator>rollando</dc:creator>
      <dc:date>2018-07-11T13:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to set assignee of next step from a form field</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-assignee-of-next-step-from-a-form-field/m-p/26716#M11498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Displaying uploaded file isn't something that was implemented in community version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 14:27:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-assignee-of-next-step-from-a-form-field/m-p/26716#M11498</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-07-11T14:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to set assignee of next step from a form field</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-assignee-of-next-step-from-a-form-field/m-p/26717#M11499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the tip !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it's not related to the original topic, but I have a few questions about Acitiviti, do you mind if I ask them here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I was wondering if it's possible in Activiti to build custom views of tasks with custom filters ? Some sort of tables with columns I would pick from the available fields.&lt;/LI&gt;&lt;LI&gt;Are there scheduled tasks in Activiti ? I would like to build a task reminder that would notify users on a periodic basis if a task is not completed. If there's no such built-in feature, I thought I could easily implement the API and make my own task reminder.&lt;/LI&gt;&lt;LI&gt;Is it possible to edit the templates of the app ? I would like to create a new field named "title", initialize it with values from the form and display it in the process view.&lt;/LI&gt;&lt;LI&gt;Are there documentation for all those things (API, Custom code, etc)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 16:59:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-assignee-of-next-step-from-a-form-field/m-p/26717#M11499</guid>
      <dc:creator>rollando</dc:creator>
      <dc:date>2018-07-11T16:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to set assignee of next step from a form field</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-assignee-of-next-step-from-a-form-field/m-p/26718#M11500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Each one of the above requires a separate topic &lt;IMG src="https://connect.hyland.com/legacyfs/online/alfresco/emoticons/wink.png" /&gt;&amp;nbsp;I'll try to reply here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) You can use the native&amp;nbsp;query API&amp;nbsp;&lt;A href="https://www.activiti.org/userguide/#queryAPI" title="https://www.activiti.org/userguide/#queryAPI" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;&amp;nbsp;to execute custom queries or write custom mappers if you want&amp;nbsp;&lt;A class="link-titled" href="https://www.activiti.org/userguide/#advanced.custom.sql.queries" title="https://www.activiti.org/userguide/#advanced.custom.sql.queries" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;2) You can attach a boundary event&amp;nbsp;&lt;A class="link-titled" href="https://www.activiti.org/userguide/#bpmnTimerBoundaryEvent" title="https://www.activiti.org/userguide/#bpmnTimerBoundaryEvent" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;&amp;nbsp;&amp;nbsp;to a user task that can execute a mail task for example to send a reminder.&lt;/P&gt;&lt;P&gt;3) You'll have to write custom code for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope these answer your questions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 10:07:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-assignee-of-next-step-from-a-form-field/m-p/26718#M11500</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-07-12T10:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to set assignee of next step from a form field</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-assignee-of-next-step-from-a-form-field/m-p/26719#M11501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, that answers my questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding API, there seems to be a bug or something undocumented.&lt;/P&gt;&lt;P&gt;I create an instance using the function POST&amp;nbsp;/activiti-rest/service/runtime/process-instances&lt;/P&gt;&lt;P&gt;an instance is created and its process-instance-id is returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want to complete the first step of the freshly created instance.&lt;/P&gt;&lt;P&gt;I've found : POST&amp;nbsp;/activiti-rest/service/runtime/tasks/task-id (+ action name in the body) should do the job&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it indeed works fine, provided I know the task-id of the task to complete, however the task-id is not returned when the instance is created,and is nowhere to be found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried GET&amp;nbsp;/activiti-rest/service/runtime/process-instances/process-instance-id which only contains process related stuff and&amp;nbsp;&lt;SPAN&gt;GET&amp;nbsp;/activiti-rest/service/runtime/process-instances&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;process-instance&lt;/SPAN&gt;&lt;SPAN&gt;-id/tasks which I expected to return the list of tasks but returned 404.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;How should I proceed ? Is there maybe a trick to create an instance and complete the task at the same time ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 13:43:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-assignee-of-next-step-from-a-form-field/m-p/26719#M11501</guid>
      <dc:creator>rollando</dc:creator>
      <dc:date>2018-07-13T13:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to set assignee of next step from a form field</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-assignee-of-next-step-from-a-form-field/m-p/26720#M11502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get tasks you need to use the Tasks Rest endpoints. See&amp;nbsp;&lt;A class="link-titled" href="https://www.activiti.org/userguide/#_tasks" title="https://www.activiti.org/userguide/#_tasks" rel="nofollow noopener noreferrer"&gt;https://www.activiti.org/userguide/#_tasks&lt;/A&gt;&amp;nbsp;you can filter the results by processInstnaceId.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please open a new topic if you want to discuss something unrelated to the original post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 14:02:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-assignee-of-next-step-from-a-form-field/m-p/26720#M11502</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-07-13T14:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to set assignee of next step from a form field</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-assignee-of-next-step-from-a-form-field/m-p/26721#M11503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure will !&lt;/P&gt;&lt;P&gt;Just for the record, your solution works; however, it doesn't look like a very elegant way to accomplish it, even though it's the only way.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2018 15:23:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-assignee-of-next-step-from-a-form-field/m-p/26721#M11503</guid>
      <dc:creator>rollando</dc:creator>
      <dc:date>2018-07-14T15:23:12Z</dc:date>
    </item>
  </channel>
</rss>

