Return-Path: X-Original-To: apmail-incubator-oozie-users-archive@minotaur.apache.org Delivered-To: apmail-incubator-oozie-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 079E97D1F for ; Sat, 22 Oct 2011 16:29:05 +0000 (UTC) Received: (qmail 57789 invoked by uid 500); 22 Oct 2011 16:29:04 -0000 Delivered-To: apmail-incubator-oozie-users-archive@incubator.apache.org Received: (qmail 57764 invoked by uid 500); 22 Oct 2011 16:29:04 -0000 Mailing-List: contact oozie-users-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oozie-users@incubator.apache.org Delivered-To: mailing list oozie-users@incubator.apache.org Received: (qmail 57756 invoked by uid 99); 22 Oct 2011 16:29:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Oct 2011 16:29:04 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tucu@cloudera.com designates 209.85.220.175 as permitted sender) Received: from [209.85.220.175] (HELO mail-vx0-f175.google.com) (209.85.220.175) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Oct 2011 16:28:58 +0000 Received: by vcbf1 with SMTP id f1so4347034vcb.6 for ; Sat, 22 Oct 2011 09:28:37 -0700 (PDT) Received: by 10.52.113.67 with SMTP id iw3mr17480874vdb.121.1319300917080; Sat, 22 Oct 2011 09:28:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.167.130 with HTTP; Sat, 22 Oct 2011 09:28:07 -0700 (PDT) In-Reply-To: References: From: Alejandro Abdelnur Date: Sat, 22 Oct 2011 09:28:07 -0700 Message-ID: Subject: Re: Oozie decision action - Switch / Case predicate To: oozie-users@incubator.apache.org Content-Type: multipart/alternative; boundary=bcaec547ca0183b34004afe5ae9f X-Virus-Checked: Checked by ClamAV on apache.org --bcaec547ca0183b34004afe5ae9f Content-Type: text/plain; charset=ISO-8859-1 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 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). > ----------------------------------------------------------- > > > to="hive-consolidate-dir">${wf:actionData('hfsNumFiles')['dir.numberOfFiles'] > ge 12} > > > > ----------------------------------------------------------- > > These do not seem to work, always returns false. > > ----------------------------------------------------------- > > > to="hive-consolidate-dir">${wf:actionData('hfsNumFiles')['dir.numberOfFiles'] > ge wf:conf('fileThresholdCount')} > > > > > > > to="hive-consolidate-dir">${wf:actionData('hfsNumFiles')['dir.numberOfFiles'] > ge fileThresholdCount} > > > > ----------------------------------------------------------- > > Thanks! > > Ken Ernst > > > --bcaec547ca0183b34004afe5ae9f--