<?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>question Re: Using Oozie Worfklow Expression Language Functions in Hue in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Using-Oozie-Worfklow-Expression-Language-Functions-in-Hue/m-p/302952#M221319</link>
    <description>&lt;P&gt;If you are doing this through Hue, please post the generated XML once you submit the job.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Sep 2020 19:21:32 GMT</pubDate>
    <dc:creator>aakulov</dc:creator>
    <dc:date>2020-09-16T19:21:32Z</dc:date>
    <item>
      <title>Using Oozie Worfklow Expression Language Functions in Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Using-Oozie-Worfklow-Expression-Language-Functions-in-Hue/m-p/302843#M221282</link>
      <description>&lt;P&gt;I have a shell action node that is able to send notifications to a chat application and can be used as a transition route if another action node in the workflow fails. What I'd like to be able to do, is use &lt;STRONG&gt;wf:user() and&amp;nbsp;wf:lastErrorNode()&amp;nbsp;&lt;/STRONG&gt;in that notification.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My idea was to pass these values to my shell script as arguments, but when I place 'wf:X()' as the argument to my shell action node, it doesn't resolve to anything and just gives me the raw string as the argument.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to use these in a shell action node?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 12:07:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Using-Oozie-Worfklow-Expression-Language-Functions-in-Hue/m-p/302843#M221282</guid>
      <dc:creator>_James_</dc:creator>
      <dc:date>2020-09-15T12:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using Oozie Worfklow Expression Language Functions in Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Using-Oozie-Worfklow-Expression-Language-Functions-in-Hue/m-p/302896#M221289</link>
      <description>&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you share your XML action script for that SSH action?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general, the following example shows how to pass arguments to your shell (from &lt;A href="https://oozie.apache.org/docs/4.0.1/WorkflowFunctionalSpec.html#OozieWFExamples" target="_self"&gt;Oozie docs&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;workflow-app name="sample-wf" xmlns="uri:oozie:workflow:0.1"&amp;gt;
    ...
    &amp;lt;action name="myssjob"&amp;gt;
        &amp;lt;ssh&amp;gt;
            &amp;lt;host&amp;gt;foo@bar.com&amp;lt;host&amp;gt;
            &amp;lt;command&amp;gt;YOURCOMMAND&amp;lt;/command&amp;gt;
            &amp;lt;args&amp;gt;${wf:user()}&amp;lt;/args&amp;gt;
            &amp;lt;args&amp;gt;${wf:lastErrorNode()}&amp;lt;/args&amp;gt;
        &amp;lt;/ssh&amp;gt;
        &amp;lt;ok to="myotherjob"/&amp;gt;
        &amp;lt;error to="errorcleanup"/&amp;gt;
    &amp;lt;/action&amp;gt;
    ...
&amp;lt;/workflow-app&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Note the ${} syntax of the parameter.&amp;nbsp; If this helps, please accept this as a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 17:43:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Using-Oozie-Worfklow-Expression-Language-Functions-in-Hue/m-p/302896#M221289</guid>
      <dc:creator>aakulov</dc:creator>
      <dc:date>2020-09-15T17:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using Oozie Worfklow Expression Language Functions in Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Using-Oozie-Worfklow-Expression-Language-Functions-in-Hue/m-p/302952#M221319</link>
      <description>&lt;P&gt;If you are doing this through Hue, please post the generated XML once you submit the job.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 19:21:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Using-Oozie-Worfklow-Expression-Language-Functions-in-Hue/m-p/302952#M221319</guid>
      <dc:creator>aakulov</dc:creator>
      <dc:date>2020-09-16T19:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using Oozie Worfklow Expression Language Functions in Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Using-Oozie-Worfklow-Expression-Language-Functions-in-Hue/m-p/302972#M221328</link>
      <description>&lt;P&gt;Hi Alex,&lt;BR /&gt;&lt;BR /&gt;I've resolved the issue. I had been using the wf:X() in the wrong place. Initially I had added an argument for the shell action like ${user} and then set $wf:user() as the value of that argument when submitting the workflow.&lt;BR /&gt;&lt;BR /&gt;I replaced ${user} with the Expression Language Function and the value was resolved automatically and when submitting the workflow I wasn't asked to provide a value for the argument &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 08:17:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Using-Oozie-Worfklow-Expression-Language-Functions-in-Hue/m-p/302972#M221328</guid>
      <dc:creator>_James_</dc:creator>
      <dc:date>2020-09-17T08:17:27Z</dc:date>
    </item>
  </channel>
</rss>

