<?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: Automation chain - how to use parameters in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/automation-chain-how-to-use-parameters/m-p/326420#M13421</link>
    <description>&lt;P&gt;Hi, I m using the Context variable for such an operation chain :&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://connect.hyland.com/upfiles/studio.PNG" alt="capture" /&gt;&lt;/P&gt;
&lt;P&gt;It s called this way from PHP :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;$client = new NuxeoPhpAutomationClient(NUXEO_AUTOMATION_URL);
$session = $client-&amp;gt;getSession(NUXEO_AUTOMATION_USER, NUXEO_AUTOMATION_PASSWD);
$session-&amp;gt;newRequest("Chain.remove_all_docs")-&amp;gt;set('params', 'doc_id', $id)-&amp;gt;sendRequest(); 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 05 Oct 2012 10:40:13 GMT</pubDate>
    <dc:creator>pibou_Bouvret</dc:creator>
    <dc:date>2012-10-05T10:40:13Z</dc:date>
    <item>
      <title>Automation chain - how to use parameters</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/automation-chain-how-to-use-parameters/m-p/326419#M13420</link>
      <description>&lt;P&gt;I have a problem with an automation chain that I want to create.&lt;/P&gt;
&lt;P&gt;This automation chain is created in order to find documents in section by using specifcs right access of a login passed in parameters.&lt;/P&gt;
&lt;P&gt;It must do following steps :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;get 2 parameters : 1 for login name, 1 for a section name&lt;/LI&gt;
&lt;LI&gt;make connection with login name thanks to operation LoginAs&lt;/LI&gt;
&lt;LI&gt;execute a query by using section name&lt;/LI&gt;
&lt;LI&gt;return list of documents&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;This automation chain will be called by a php automation client.&lt;/P&gt;
&lt;P&gt;My problems is :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;How can I use parameters in an automation chain ?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2012 14:53:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/automation-chain-how-to-use-parameters/m-p/326419#M13420</guid>
      <dc:creator>laurent13_</dc:creator>
      <dc:date>2012-10-04T14:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Automation chain - how to use parameters</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/automation-chain-how-to-use-parameters/m-p/326420#M13421</link>
      <description>&lt;P&gt;Hi, I m using the Context variable for such an operation chain :&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://connect.hyland.com/upfiles/studio.PNG" alt="capture" /&gt;&lt;/P&gt;
&lt;P&gt;It s called this way from PHP :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;$client = new NuxeoPhpAutomationClient(NUXEO_AUTOMATION_URL);
$session = $client-&amp;gt;getSession(NUXEO_AUTOMATION_USER, NUXEO_AUTOMATION_PASSWD);
$session-&amp;gt;newRequest("Chain.remove_all_docs")-&amp;gt;set('params', 'doc_id', $id)-&amp;gt;sendRequest(); 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Oct 2012 10:40:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/automation-chain-how-to-use-parameters/m-p/326420#M13421</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2012-10-05T10:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Automation chain - how to use parameters</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/automation-chain-how-to-use-parameters/m-p/326421#M13422</link>
      <description>&lt;P&gt;Thanks for your answer, it works.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2012 18:15:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/automation-chain-how-to-use-parameters/m-p/326421#M13422</guid>
      <dc:creator>laurent13_</dc:creator>
      <dc:date>2012-10-05T18:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Automation chain - how to use parameters</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/automation-chain-how-to-use-parameters/m-p/326422#M13423</link>
      <description>&lt;P&gt;Thanks for this well laid-out answer pibou&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2012 00:36:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/automation-chain-how-to-use-parameters/m-p/326422#M13423</guid>
      <dc:creator>Laurent_Doguin</dc:creator>
      <dc:date>2012-10-06T00:36:36Z</dc:date>
    </item>
  </channel>
</rss>

