<?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 Workflow add resource not working in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/workflow-add-resource-not-working/m-p/41061#M17220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm using Alfresco 4.2f and I can't add a resource using the UIContentSelector in the StartWorkflowWizard page with every workflow. When I try to hit the search button the result box remains empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 May 2017 15:40:20 GMT</pubDate>
    <dc:creator>luca</dc:creator>
    <dc:date>2017-05-26T15:40:20Z</dc:date>
    <item>
      <title>Workflow add resource not working</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflow-add-resource-not-working/m-p/41061#M17220</link>
      <description>Hi all,I'm using Alfresco 4.2f and I can't add a resource using the UIContentSelector in the StartWorkflowWizard page with every workflow. When I try to hit the search button the result box remains empty.</description>
      <pubDate>Fri, 26 May 2017 15:40:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflow-add-resource-not-working/m-p/41061#M17220</guid>
      <dc:creator>luca</dc:creator>
      <dc:date>2017-05-26T15:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow add resource not working</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflow-add-resource-not-working/m-p/41062#M17221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have put the question here because I have already found the solution and I wanted to share it.&lt;/P&gt;&lt;P&gt;The problems is in the class org.alfresco.web.ui.repo.component.UIContentSelector that is building the query and in particular it is missing to escape double quotes around the search term, so the resultig query is like this:&lt;/P&gt;&lt;P&gt;... &lt;A href="mailto:+@\{http\://www.alfresco.org/model/content/1.0\}name:&amp;quot;*SEARCH-TERM*&amp;quot;" rel="nofollow noopener noreferrer"&gt;+@\{http\://www.alfresco.org/model/content/1.0\}name:"*SEARCH-TERM*"&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you have to modify the method getAvailableOptions and substitute this line (in my version is row 358):&lt;/P&gt;&lt;P&gt;query.append(":\"*" + safeContains + "*\"");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this:&lt;/P&gt;&lt;P&gt;query.append(":\\\"*" + safeContains + "*\\\"");&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 15:44:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflow-add-resource-not-working/m-p/41062#M17221</guid>
      <dc:creator>luca</dc:creator>
      <dc:date>2017-05-26T15:44:55Z</dc:date>
    </item>
  </channel>
</rss>

