<?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: Attaching file as a form field of custom form UI in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225514#M178644</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;Consider a simple workflow with single user task… But Initiation of workflow will be via REST APIs… User task will have simple form with only display value fields… All display value fields will display the value of process variables which are passed during initiation of workflow… Now I want to display a document as a form field too… That document also needs to be passed by REST APIs or something else…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Oct 2016 14:49:45 GMT</pubDate>
    <dc:creator>shagufta1</dc:creator>
    <dc:date>2016-10-24T14:49:45Z</dc:date>
    <item>
      <title>Attaching file as a form field of custom form UI</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225507#M178637</link>
      <description>I am using Activiti Rest API for fetching, initiating and completing the task. I have my own form UI and there is file attachment field. I am hitting "http://localhost:8080/activiti-app/api/enterprise/task-forms/'+taskId for completing the task. I tried to convert file into JSON text but it gives me</description>
      <pubDate>Tue, 10 May 2016 07:00:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225507#M178637</guid>
      <dc:creator>shagufta1</dc:creator>
      <dc:date>2016-05-10T07:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Attaching file as a form field of custom form UI</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225508#M178638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also tried passing the file path directly in JSON but same 400 error and gives me following response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "message": "Validation of form failed: Illegal related content id: &amp;lt;filePath&amp;gt;",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "messageKey": "GENERAL.ERROR.BAD-REQUEST"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 07:22:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225508#M178638</guid>
      <dc:creator>shagufta1</dc:creator>
      <dc:date>2016-05-10T07:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Attaching file as a form field of custom form UI</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225509#M178639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The file is uploaded separately via the &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;POST /enterprise/tasks/{taskId}/raw-content &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you get back the id of the content after upload, and need to use that in the form submission.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 10:40:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225509#M178639</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-10T10:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Attaching file as a form field of custom form UI</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225510#M178640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yep, Able to send file as Multipart &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;BR /&gt;&lt;SPAN&gt;Any luck on consuming that file as a process variable?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 12:45:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225510#M178640</guid>
      <dc:creator>shagufta1</dc:creator>
      <dc:date>2016-10-03T12:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Attaching file as a form field of custom form UI</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225511#M178641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As Joram has mentioned, the content is uploaded via a separate api and as part of your form submission the content gets linked to the form field in the RELATED_CONTENT table in database. This attachment data will not be available as part of the process variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ciju&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 05:17:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225511#M178641</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2016-10-24T05:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Attaching file as a form field of custom form UI</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225512#M178642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ciju,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your time. So now use case is I want that document(coming from outside) to be displayed as a part of form and after submission of form that document should be a part of process just like Activiti's normal attachment field. Please suggest any workaround if you have.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 05:26:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225512#M178642</guid>
      <dc:creator>shagufta1</dc:creator>
      <dc:date>2016-10-24T05:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Attaching file as a form field of custom form UI</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225513#M178643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you please explain the use case in detail? May be a sample bpmn xml or a diagram and a small explanation of the use case with respect to the diagram? That will help me suggest the workaround.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ciju&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 05:34:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225513#M178643</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2016-10-24T05:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Attaching file as a form field of custom form UI</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225514#M178644</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;Consider a simple workflow with single user task… But Initiation of workflow will be via REST APIs… User task will have simple form with only display value fields… All display value fields will display the value of process variables which are passed during initiation of workflow… Now I want to display a document as a form field too… That document also needs to be passed by REST APIs or something else…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 14:49:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225514#M178644</guid>
      <dc:creator>shagufta1</dc:creator>
      <dc:date>2016-10-24T14:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Attaching file as a form field of custom form UI</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225515#M178645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Even though you are creating the process instance via REST API, attach a start form to the start activity. Keep an attach field in the start form.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then do the following.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/activiti-app/api/enterprise/content/raw" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-app/api/enterprise/content/raw&lt;/A&gt;&lt;SPAN&gt; [this will upload the content to activiti]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now start the process instance &lt;/SPAN&gt;&lt;A href="http://localhost:8080/activiti-app/api/enterprise/process-instances" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-app/api/enterprise/process-instances&lt;/A&gt;&lt;SPAN&gt; and pass the id value returned by the previous REST call in the request. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example assume that you get "id": 1001 in response while uploading the content. If your attachment field id in the form is "attach-field", you will need to start the process instance by passing in {"values":{"attach-field":"1001"} in the request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 21:05:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225515#M178645</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2016-10-24T21:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Attaching file as a form field of custom form UI</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225516#M178646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;what you have suggested works for me.&lt;/P&gt;&lt;P&gt;The official documentation does not mention that topic and there is nothing around about how to pass multiple values of the same field (that means multiple attachments).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have two or more files previously uploaded, you need to pass a comma separated list of IDs. For example if you have two files with id 1001 and 1002, the Json body in the request should be look&amp;nbsp;like this:&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;"processDefinitionId":"MyProcessDefinition:2:20140",&lt;BR /&gt;"values":{"attach-id":"1001,1002"}&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 17:52:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225516#M178646</guid>
      <dc:creator>joe_l3</dc:creator>
      <dc:date>2017-07-04T17:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Attaching file as a form field of custom form UI</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225517#M178647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;Ciju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please advise the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the middle of the process I collect the data and submit it to a web service using REST task step to the third-party system to generate a document. The result of that call (PDF document) is stored using REST API into the process instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is how to show that document on the next steps form using Display Value or any other standard functionallity?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Oleh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 07:43:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attaching-file-as-a-form-field-of-custom-form-ui/m-p/225517#M178647</guid>
      <dc:creator>olylak</dc:creator>
      <dc:date>2018-03-22T07:43:51Z</dc:date>
    </item>
  </channel>
</rss>

