private static void generatePredicateElementsForUnaryExpression( ArchetypeBinding archetypeBinding, ArchetypeReference ar, Guide guide, DateTime dateTime, boolean resolvePredicates, UnaryExpression expressionItem) { UnaryExpression ue = expressionItem; OperatorKind op = ue.getOperator(); ExpressionItem operand = ue.getOperand(); if (operand instanceof Variable) { String idElement = archetypeBinding.getArchetypeId() + ((Variable) operand).getPath(); DataValue dv = null; generateElementInstanceForPredicate(ar, op, idElement, dv, guide, dateTime, resolvePredicates); //TODO No rule references added (no gt codes) } }
ExpressionItem right = be.getRight(); if (left instanceof Variable) { String path = ((Variable) left).getPath(); if (right instanceof ConstantExpression) { String idElement =
Variable variable = (Variable) binaryExpression.getLeft(); ConstantExpression constantExpression2 = (ConstantExpression) binaryExpression.getRight(); String path = variable.getPath(); String dvStr = constantExpression2.getValue(); ArchetypeElementVO archetypeElementVO = Variable variable = (Variable) binaryExpression.getLeft(); WithElementPredicateExpressionDefinitionRuleLine wepdrl = new WithElementPredicateExpressionDefinitionRuleLine(airl); String path = variable.getPath(); String attribute = StringUtils.substringAfterLast(path, "/value/"); wepdrl.getArchetypeElementAttributeRuleLineDefinitionElement().setAttribute(attribute); Variable variable = (Variable) unaryExpression.getOperand(); airl.addChildRuleLine(wefd); String path = variable.getPath(); ArchetypeElementVO archetypeElementVO = airl.getArchetypeManager().getArchetypeElements().getArchetypeElement(