You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@oozie.apache.org by Paul Chavez <pc...@verticalsearchworks.com> on 2014/05/09 07:18:12 UTC
Decision node EL function help
Hello,
I am trying to implement a workflow that optionally executes an action based on the existence of a configuration property. The property is a path to a script, so I figured I could use fs:exists() to 'convert' the parameter to a Boolean, and also validate the property at the same time.
Right now I have a decision node like this:
<decision name="run_hive_script">
<switch>
<case to="hive_script">${fs:exists(wf:conf('wf_script_path'))}</case>
<default to="cleanup"/>
</switch>
</decision>
However in this example if 'wf_script_path' is not specified I get the error 'Exception in ActionStartXCommand java.lang.IllegalArgumentException: Can not create a Path from an empty string'
Is there a generic EL function I can use that is not in the docs to get length of the string or something I can use to build a Boolean expression?
Thank you,
Paul Chavez