/** * @param condition * the condition to set */ @Parameter(name = "condition", required = false, description = "The condition parameter allows to specify a boolean expression that is matched against each item. The processor only processes items matching that expression.") public void setCondition(String condition) { try { ConditionFactory cf = new ConditionFactory(); this.condition = cf.create(condition); if (condition.isEmpty()) this.condition = null; } catch (Exception e) { throw new RuntimeException(e.getMessage()); } }
/** * @param condition * the condition to set */ @Parameter(name = "condition", required = false, description = "The condition parameter allows to specify a boolean expression that is matched against each item. The processor only processes items matching that expression.") public void setCondition(String condition) { try { ConditionFactory cf = new ConditionFactory(); this.condition = cf.create(condition); if (condition.isEmpty()) this.condition = null; } catch (Exception e) { throw new RuntimeException(e.getMessage()); } }
/** * @param condition * the condition to set */ @Parameter(name = "condition", required = false, description = "The condition parameter allows to specify a boolean expression that is matched against each item. The processor only processes items matching that expression.") public void setCondition(String condition) { try { ConditionFactory cf = new ConditionFactory(); this.condition = cf.create(condition); if (condition.isEmpty()) this.condition = null; } catch (Exception e) { throw new RuntimeException(e.getMessage()); } }
/** * @param condition * the condition to set */ @Parameter(name = "condition", required = false) public void setCondition(String condition) { ConditionFactory cf = new ConditionFactory(); this.condition = cf.create(condition); if (condition.isEmpty()) condition = null; }
/** * @param condition * the condition to set */ @Parameter(name = "condition", required = false) public void setCondition(String condition) { ConditionFactory cf = new ConditionFactory(); this.condition = cf.create(condition); if (condition.isEmpty()) condition = null; }
/** * @param condition * the condition to set */ @Parameter(name = "condition", required = false, description = "The condition parameter allows to specify a boolean expression that is matched against each item. The processor only processes items matching that expression.") public void setCondition(String condition) { try { ConditionFactory cf = new ConditionFactory(); this.condition = cf.create(condition); if (condition.isEmpty()) this.condition = null; } catch (Exception e) { throw new RuntimeException(e.getMessage()); } }
@Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); localCtx = DataFactory.create(); localProcessContext = new ProcessContextMock2(); expressions = new SerializableExpression[keys.length]; if (keys == null) throw new IllegalArgumentException("Keys are not set!"); for (int i = 0; i < keys.length; i++) { String key = keys[i]; Expression<Serializable> e = null; e = new SerializableExpression("%{" + sourceCtx + "." + key + "}"); if (e != null) expressions[i] = e; } // KeySetConditions... if (conditionString != null && !conditionString.isEmpty()) { String s = conditionString.replace("sourceCtx.key", sourceCtx + ".key"); ConditionFactory cf = new ConditionFactory(); condition = cf.create(s); } }
@Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); localCtx = DataFactory.create(); localProcessContext = new ProcessContextMock2(); expressions = new SerializableExpression[keys.length]; if (keys == null) throw new IllegalArgumentException("Keys are not set!"); for (int i = 0; i < keys.length; i++) { String key = keys[i]; Expression<Serializable> e = null; e = new SerializableExpression("%{" + sourceCtx + "." + key + "}"); if (e != null) expressions[i] = e; } // KeySetConditions... if (conditionString != null && !conditionString.isEmpty()) { String s = conditionString.replace("sourceCtx.key", sourceCtx + ".key"); ConditionFactory cf = new ConditionFactory(); condition = cf.create(s); } }