<?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: Working with attachment fields in Script task in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/working-with-attachment-fields-in-script-task/m-p/39059#M16419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I would still need to loop through the documents without being able to use it's ID from the form field? Because I can perform an api call to do the same thing, the issue is that documents are coming in in different orders based on what is attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jul 2017 14:12:53 GMT</pubDate>
    <dc:creator>gbanks</dc:creator>
    <dc:date>2017-07-27T14:12:53Z</dc:date>
    <item>
      <title>Working with attachment fields in Script task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/working-with-attachment-fields-in-script-task/m-p/39057#M16417</link>
      <description>I am attempting to work with files that have been attached in a form. How would I go about retrieving information within a&amp;nbsp;JavaScript Script task? When I do a&amp;nbsp;/activiti-app/api/enterprise/process-instances/${process_instance_id} call, I see that my variable for the attachment field = null, even when</description>
      <pubDate>Wed, 26 Jul 2017 21:18:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/working-with-attachment-fields-in-script-task/m-p/39057#M16417</guid>
      <dc:creator>gbanks</dc:creator>
      <dc:date>2017-07-26T21:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Working with attachment fields in Script task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/working-with-attachment-fields-in-script-task/m-p/39058#M16418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;Greer Banks&lt;/B&gt;‌ you need to use&amp;nbsp;&lt;SPAN&gt;bpm_package in this way:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;code&amp;gt; var documents = bpm_package.children; &amp;lt;/code&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can loop through it to get those documents.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 07:17:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/working-with-attachment-fields-in-script-task/m-p/39058#M16418</guid>
      <dc:creator>darkredd</dc:creator>
      <dc:date>2017-07-27T07:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Working with attachment fields in Script task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/working-with-attachment-fields-in-script-task/m-p/39059#M16419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I would still need to loop through the documents without being able to use it's ID from the form field? Because I can perform an api call to do the same thing, the issue is that documents are coming in in different orders based on what is attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 14:12:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/working-with-attachment-fields-in-script-task/m-p/39059#M16419</guid>
      <dc:creator>gbanks</dc:creator>
      <dc:date>2017-07-27T14:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Working with attachment fields in Script task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/working-with-attachment-fields-in-script-task/m-p/39060#M16420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reply by &lt;A __default_attr="82789" __jive_macro_name="user" _jive_internal="true" data-id="82789" data-objecttype="3" data-type="person" href="https://community.alfresco.com/people/darkredd" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;‌ is only valid for the Alfresco Content Services embedded Activiti runtime. It is not valid for the Alfresco Process Services runtime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 07:42:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/working-with-attachment-fields-in-script-task/m-p/39060#M16420</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-07-28T07:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Working with attachment fields in Script task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/working-with-attachment-fields-in-script-task/m-p/39061#M16421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="169033" __jive_macro_name="user" _jive_internal="true" data-id="169033" data-objecttype="3" data-type="person" href="https://community.alfresco.com/people/gbanks" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;‌ yes you have to still loop through. Even in the bpm_package the order is not necessarily as attached by the users. I do not think you can use the document IDs from the form field directly in a workflow start page without having started the process. As the process goes, the documents attached are still "soft-links" and have no relation yet with the process at that stage; only when the process has successfully started do the documents have the workflow metadata attached to them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this explanation is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy coding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 07:46:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/working-with-attachment-fields-in-script-task/m-p/39061#M16421</guid>
      <dc:creator>darkredd</dc:creator>
      <dc:date>2017-07-28T07:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Working with attachment fields in Script task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/working-with-attachment-fields-in-script-task/m-p/39062#M16422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The process would have been started by then. How can I access the metadata of the attachment form fields within a JavaScript?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 15:00:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/working-with-attachment-fields-in-script-task/m-p/39062#M16422</guid>
      <dc:creator>gbanks</dc:creator>
      <dc:date>2017-07-28T15:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Working with attachment fields in Script task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/working-with-attachment-fields-in-script-task/m-p/39063#M16423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What would I do then in the&amp;nbsp;Alfresco Process Services runtime?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 15:00:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/working-with-attachment-fields-in-script-task/m-p/39063#M16423</guid>
      <dc:creator>gbanks</dc:creator>
      <dc:date>2017-07-28T15:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Working with attachment fields in Script task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/working-with-attachment-fields-in-script-task/m-p/39064#M16424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently on vacation without access to the sources of the Alfresco Process Services project I am working on for one of my customers, so I cannot check if/how we dealt with that within scripts. I'd have to check how it is possible to access the Spring application context from withiin a script - with that you could access every Java services from scripts. I do this within Alfresco Content Services all the time and it's quite easy there via some static utilities, but have not had the need to do this with Process Services yet.&lt;/P&gt;&lt;P&gt;Last time I had to deal with related content (~4 weeks ago), I opted to write a Java-backed delegate since my delegate was intended to be reused in many process definitions (scripts or specifically script management in Process Services sucks with regards to reuse + testability).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jul 2017 11:51:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/working-with-attachment-fields-in-script-task/m-p/39064#M16424</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-07-29T11:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Working with attachment fields in Script task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/working-with-attachment-fields-in-script-task/m-p/39065#M16425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When/if you are able, could you please provide an example where&amp;nbsp;you were able to perform something like this&amp;nbsp;within a Process Services script/listener? Thank you for your insight, Axel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 14:07:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/working-with-attachment-fields-in-script-task/m-p/39065#M16425</guid>
      <dc:creator>gbanks</dc:creator>
      <dc:date>2017-07-31T14:07:36Z</dc:date>
    </item>
  </channel>
</rss>

