incubator-oozie-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Ernst <ker...@mobileposse.com>
Subject Re: Oozie decision action - Switch / Case predicate
Date Mon, 24 Oct 2011 14:43:35 GMT
Tried to reproduce this issue and could not - must have had a typo
somewhere... This is a workflow calling a sub-workflow...

Parameters do work on the right hand side of the predicate.


Ken Ernst


On 10/22/11 12:28 PM, "Alejandro Abdelnur" <tucu@cloudera.com> wrote:


>Hi Ken,
>
>Would you check, in the oozie webconsole, for your decision node action,
>the
>configuration after the run? It should have all values of EL functions
>resolved.
>
>Thanks.
>
>Alejandro
>
>On Sat, Oct 22, 2011 at 6:05 AM, Ken Ernst <kernst@mobileposse.com> wrote:
>
>> Hello,
>> I want to parameterize the right had side of the predicate in a case
>> statement but it does not seem to work. It always returns false. Does
>>anyone
>> know of why this would not work? For example I have the following
>>decision
>> control node where the the right hand side of the case predicate is 12,
>> however I would like to make this a job property (I.e.
>>fileThresholdCount).
>>
>> This works (returns true when the output of my java action
>> 'dir.numberOfFiles' is greater than 12).
>> -----------------------------------------------------------
>>  <decision name="check-return">
>>    <switch>
>>      <case
>> 
>>to="hive-consolidate-dir">${wf:actionData('hfsNumFiles')['dir.numberOfFil
>>es']
>> ge 12}</case>
>>      <default to="end"/>
>>    </switch>
>>  </decision>
>> -----------------------------------------------------------
>>
>> These do not seem to work, always returns false.
>>
>> -----------------------------------------------------------
>>  <decision name="check-return">
>>    <switch>
>>      <case
>> 
>>to="hive-consolidate-dir">${wf:actionData('hfsNumFiles')['dir.numberOfFil
>>es']
>> ge wf:conf('fileThresholdCount')}</case>
>>      <default to="end"/>
>>    </switch>
>>  </decision>
>>
>>  <decision name="check-return">
>>    <switch>
>>      <case
>> 
>>to="hive-consolidate-dir">${wf:actionData('hfsNumFiles')['dir.numberOfFil
>>es']
>> ge  fileThresholdCount}</case>
>>      <default to="end"/>
>>    </switch>
>>  </decision>
>> -----------------------------------------------------------
>>
>> Thanks!
>>
>> Ken Ernst
>>
>>
>>


Mime
View raw message