Hi Felix,
Oozie has if-like statement, called decision-switch-case.

More at: 
http://oozie.apache.org/docs/3.3.1/WorkflowFunctionalSpec.html#a3.1.4_Decision_Control_Node

Regards,
Mohammad


________________________________
 From: Felix.徐 <[email protected]>
To: [email protected] 
Sent: Monday, March 4, 2013 5:58 PM
Subject: Re: How to conditionally initialize parameters?
 
Thanks Rebert.

Is flow control such as if/while supported by EL expression?


2013/3/5 Robert Kanter <[email protected]>

> Hi Felix,
>
> If you specify the <capture-output> element, you can have Oozie get the
> output of an action; the output has to be in java properties format and
> there's a few other restrictions.  Try searching
> http://oozie.apache.org/docs/3.3.1/WorkflowFunctionalSpec.html for
> <capture-output>; it should be similar to the Java action.  You can then
> use an EL function to pass that output to any of your actions.
>
> Oozie workflows must be DAGs (
> http://en.wikipedia.org/wiki/Directed_acyclic_graph) so no loops/cycles
> are
> allowed.
>
> - Robert
>
>
>
> On Sun, Mar 3, 2013 at 11:33 PM, Felix.徐 <[email protected]> wrote:
>
> > Hi,
> >
> > I'm new to oozie and I'm wandering if there is any way to initialize
> > Action's parameters according to the output of previous Action?
> >
> > The scenario is that I have a few hive scripts(A,B,C)
> > If the output of A is null then I would initialize B's parameter with
> some
> > other value.
> >
> > Another question is that does oozie support loop action that can invoke
> > other actions?
> >
>

Reply via email to