<?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 NXQL automation cross repository in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/nxql-automation-cross-repository/m-p/322171#M9172</link>
    <description>&lt;P&gt;Hi, I'm using NXQL to read data from the default repository using a simple operation chain created on the fly:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;CoreSession cs = CoreInstance.openCoreSession(null);
String lookbookQuery = "SELECT * from Document WHERE ecm:primaryType='Lookbook'";
OperationContext ctx = new OperationContext();
OperationChain chain = new OperationChain("fetch lookbook chain");
chain.add("Document.Query").set("language","NXQL").set("query",lookbookQuery);
AutomationService service = Framework.getService(AutomationService.class);
Object res = service.run(ctx, chain);
out.print("&amp;lt;pre&amp;gt;"+res+"&amp;lt;/pre&amp;gt;");
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;how can I run this query across all repositories in a multiple repository environment?&lt;/P&gt;</description>
    <pubDate>Fri, 10 Apr 2015 17:03:36 GMT</pubDate>
    <dc:creator>Lorenzol_</dc:creator>
    <dc:date>2015-04-10T17:03:36Z</dc:date>
    <item>
      <title>NXQL automation cross repository</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nxql-automation-cross-repository/m-p/322171#M9172</link>
      <description>&lt;P&gt;Hi, I'm using NXQL to read data from the default repository using a simple operation chain created on the fly:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;CoreSession cs = CoreInstance.openCoreSession(null);
String lookbookQuery = "SELECT * from Document WHERE ecm:primaryType='Lookbook'";
OperationContext ctx = new OperationContext();
OperationChain chain = new OperationChain("fetch lookbook chain");
chain.add("Document.Query").set("language","NXQL").set("query",lookbookQuery);
AutomationService service = Framework.getService(AutomationService.class);
Object res = service.run(ctx, chain);
out.print("&amp;lt;pre&amp;gt;"+res+"&amp;lt;/pre&amp;gt;");
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;how can I run this query across all repositories in a multiple repository environment?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2015 17:03:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nxql-automation-cross-repository/m-p/322171#M9172</guid>
      <dc:creator>Lorenzol_</dc:creator>
      <dc:date>2015-04-10T17:03:36Z</dc:date>
    </item>
  </channel>
</rss>

