<?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 How to restrict view existing items &amp; allow add new items? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-restrict-view-existing-items-allow-add-new-items/m-p/274572#M227702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My scenario is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Task1: Start workflow with an item&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Task2: Only allow add/remove new items and view existing item&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to override the action group with following config.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;property name="bpm:packageActionGroup"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;default&amp;gt;add_package_item_actions&amp;lt;/default&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;There is an add button in the form. The problem is user can remove existing item from the item selection dialog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I allow user to add item but not removing existing item? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Aug 2012 07:09:22 GMT</pubDate>
    <dc:creator>anthonylau</dc:creator>
    <dc:date>2012-08-08T07:09:22Z</dc:date>
    <item>
      <title>How to restrict view existing items &amp; allow add new items?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-restrict-view-existing-items-allow-add-new-items/m-p/274572#M227702</link>
      <description>Hi all,My scenario is:Task1: Start workflow with an itemTask2: Only allow add/remove new items and view existing itemI have tried to override the action group with following config.&amp;lt;property name="bpm&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ackageActionGroup"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;default&amp;gt;add_package_item_actions&amp;lt;/default&amp;gt;&amp;lt;/property&amp;amp;g</description>
      <pubDate>Wed, 08 Aug 2012 07:09:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-restrict-view-existing-items-allow-add-new-items/m-p/274572#M227702</guid>
      <dc:creator>anthonylau</dc:creator>
      <dc:date>2012-08-08T07:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict view existing items &amp; allow add new items?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-restrict-view-existing-items-allow-add-new-items/m-p/274573#M227703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know exactly if this will work but here is my opinion:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Create a form type that extends bpm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ackageActionGroup type, for example mf:customPackageActionGroup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Use that custom type in the form task that you need to allow add/remove items, and the "original" bpm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ackageActionGroup type just show it with read-only attribute set to true.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3)In a script task or a service task, iterate over mf:customPackageActionGroup and inject the nodeRefs of the items added in the task&amp;nbsp; to the&amp;nbsp; bpm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ackageActionGroup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope that idea works!&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>Thu, 09 Aug 2012 00:31:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-restrict-view-existing-items-allow-add-new-items/m-p/274573#M227703</guid>
      <dc:creator>angello0571</dc:creator>
      <dc:date>2012-08-09T00:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict view existing items &amp; allow add new items?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-restrict-view-existing-items-allow-add-new-items/m-p/274574#M227704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Angello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will try to implement your idea and post it if it works!&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, 15 Aug 2012 02:34:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-restrict-view-existing-items-allow-add-new-items/m-p/274574#M227704</guid>
      <dc:creator>anthonylau</dc:creator>
      <dc:date>2012-08-15T02:34:37Z</dc:date>
    </item>
  </channel>
</rss>

