<?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: Attachment - how to access properties in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41411#M17371</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Hi Marco,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;RelatedContentService relatedContentService &amp;amp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;RelatedContentRepository relatedContentRepository beans might be what you are looking for here. Check if this post is of any help -&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/thread/224838"&gt;Pass attachments to sub process (call activity)&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;If you have a valid license, you should be able to request access to the Enterprise Repository &lt;A class="link-titled" href="https://artifacts.alfresco.com/nexus/#view-repositories;activiti-enterprise-releases" title="https://artifacts.alfresco.com/nexus/#view-repositories;activiti-enterprise-releases" rel="nofollow noopener noreferrer"&gt;Nexus Repository Manager&lt;/A&gt;&amp;nbsp;which contains the java docs of all the enterprise libraries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Ciju&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Apr 2017 12:47:53 GMT</pubDate>
    <dc:creator>cjose</dc:creator>
    <dc:date>2017-04-06T12:47:53Z</dc:date>
    <item>
      <title>Attachment - how to access properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41410#M17370</link>
      <description>Dear community.Using the Activiti App I wonder how I could access properties of attachments.&amp;nbsp;Attachments seem to be of a complex datatype.I would like to use a attachments name in&amp;nbsp;a execution&amp;nbsp;listener or task listener&amp;nbsp;- writing it to variable (execution.setVariable ..).Since I have no access to the</description>
      <pubDate>Thu, 06 Apr 2017 10:51:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41410#M17370</guid>
      <dc:creator>mrahn</dc:creator>
      <dc:date>2017-04-06T10:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment - how to access properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41411#M17371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Hi Marco,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;RelatedContentService relatedContentService &amp;amp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;RelatedContentRepository relatedContentRepository beans might be what you are looking for here. Check if this post is of any help -&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/thread/224838"&gt;Pass attachments to sub process (call activity)&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;If you have a valid license, you should be able to request access to the Enterprise Repository &lt;A class="link-titled" href="https://artifacts.alfresco.com/nexus/#view-repositories;activiti-enterprise-releases" title="https://artifacts.alfresco.com/nexus/#view-repositories;activiti-enterprise-releases" rel="nofollow noopener noreferrer"&gt;Nexus Repository Manager&lt;/A&gt;&amp;nbsp;which contains the java docs of all the enterprise libraries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Ciju&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 12:47:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41411#M17371</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-04-06T12:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment - how to access properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41412#M17372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ciju.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.. Thanks so far!&lt;/P&gt;&lt;P&gt;As I am&amp;nbsp;from the business side having just the Activiti APP but no access to the underlying Activiti ENGINE my possibilities are limited to what is achievable using the Activiti App.&lt;/P&gt;&lt;P&gt;Therefore I'd appreciate very much&amp;nbsp;an example on&amp;nbsp;how to adress an attachement using the Activiti App. I suppose it's not that difficult once I know how to address complex data types (like attachement).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 13:20:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41412#M17372</guid>
      <dc:creator>mrahn</dc:creator>
      <dc:date>2017-04-06T13:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment - how to access properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41413#M17373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Understand. Can you please describe your use case of using a TaskListener /Execution Listener?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 13:36:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41413#M17373</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-04-06T13:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment - how to access properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41414#M17374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ciju.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.. you're right: I should explain the&amp;nbsp;use case.&lt;/P&gt;&lt;P&gt;The process got a couple of user steps in a row (sequentially), each on assigned to a different assignee (group). Each assignee might attach files and see all&amp;nbsp;files that have been attached in the steps before but must not delete attachments&amp;nbsp;that have been added in a&amp;nbsp;previous step.&lt;/P&gt;&lt;P&gt;Therefore I can't just use one "Attach File" form field since it allows deleting files. So I provide a&amp;nbsp;separate&amp;nbsp;"Attach File" form field&amp;nbsp;for each step plus as many "Display value" form fields as steps have been before. The downside of this is that the&amp;nbsp;"Display value" form field&amp;nbsp;would always being displayed even if no attachment had been added in a previous step. In this case&amp;nbsp;[empty] would be displayed. To hide "empty attachments" I'd like to check each "Display value" of the steps before. That is why I need to know how to adress&amp;nbsp;an attachment/file object in the Execution/Task Listener.&lt;/P&gt;&lt;P&gt;This use case might sound not that thrilling but knowing how to adress the attachment properties would open possibilities for a couple of other use cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 16:50:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41414#M17374</guid>
      <dc:creator>mrahn</dc:creator>
      <dc:date>2017-04-06T16:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment - how to access properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41415#M17375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like it's more a UI side control that you need. You can achieve this using some java script.&lt;/P&gt;&lt;P&gt;Please find attached a sample app and see if this is what you are looking at. If yes, please look at the java script logic in the task form.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 20:44:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41415#M17375</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-04-06T20:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment - how to access properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41416#M17376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ciju.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Javascript-based solution seems to address the use case perfectly. But I suppose&lt;/P&gt;&lt;P&gt;viewfield.isVisible=false;&lt;/P&gt;&lt;P&gt;doesn't have the effect we expected.&lt;/P&gt;&lt;P&gt;.. see screenshot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/alfresco/13268_attachment still visible.png" style="width: 620px; height: 141px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 12:41:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41416#M17376</guid>
      <dc:creator>mrahn</dc:creator>
      <dc:date>2017-04-10T12:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment - how to access properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41417#M17377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what is happening here, it is working for me. Did you make any modifications to the app which I uploaded? Please attach your app so that I can check the java scripts and forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ciju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 13:13:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41417#M17377</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-04-10T13:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment - how to access properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41418#M17378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cijua.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.. no, I did not modify your app ..&amp;nbsp;just adding two missing semicolons &lt;IMG src="https://connect.hyland.com/legacyfs/online/alfresco/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 07:40:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41418#M17378</guid>
      <dc:creator>mrahn</dc:creator>
      <dc:date>2017-04-11T07:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment - how to access properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41419#M17379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I figured out the issue.&amp;nbsp;The isVisible is getting overwritten by the visibility condition evaluation. So I decided to control this by adding a visibility condition which returns false. Please find attached a sample app with the updated scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ciju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 12:36:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41419#M17379</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-04-11T12:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment - how to access properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41420#M17380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Ciju!&lt;/P&gt;&lt;P&gt;Your solution works and does exactly what my&amp;nbsp;use case requires!&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.. I'm still interested to learn how to address the file object type, e.g. to get all file names attached&lt;/P&gt;&lt;PRE __default_attr="success" __jive_macro_name="alert" alert="success" class="jive_text_macro jive_macro_alert"&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 13:00:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41420#M17380</guid>
      <dc:creator>mrahn</dc:creator>
      <dc:date>2017-04-12T13:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment - how to access properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41421#M17381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good to know that it helped!&lt;/P&gt;&lt;P&gt;To get other attributes of the file object on the UI side, you can inspect the field value by logging the field value to console (console.log(&amp;lt;your-field.value&amp;gt;)) and access it using java script.&lt;/P&gt;&lt;P&gt;However if you want to extract the file attributes on the server side, use the relatedContentService bean in your custom java code or script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ciju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 13:42:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/attachment-how-to-access-properties/m-p/41421#M17381</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-04-12T13:42:35Z</dc:date>
    </item>
  </channel>
</rss>

