public void addConstraint(ConnectionRef connection, Constraint constraint) { if (connection != null) { throw new IllegalArgumentException( "A constraint trigger only accepts one simple constraint"); } this.constraint = constraint.getConstraint(); }
public void addConstraint(ConnectionRef connection, Constraint constraint) { if (connection != null) { throw new IllegalArgumentException( "A Milestone node only accepts one simple constraint"); } this.constraint = constraint.getConstraint(); }
private String createStateRule(Process process, StateNode state, ConnectionRef key, Constraint constraint) { if (constraint.getConstraint() == null || constraint.getConstraint().trim().length() == 0) { return ""; } else { return "rule \"RuleFlowStateNode-" + process.getId() + "-" + state.getUniqueId() + "-" + key.getNodeId() + "-" + key.getToType() + "\" @Propagation(EAGER) \n" + " ruleflow-group \"DROOLS_SYSTEM\" \n" + " when \n" + " " + state.getConstraints().get(key).getConstraint() + "\n" + " then \n" + "end \n\n"; } }
xmlDump.append("dialect=\"" + dialect + "\" "); String constraintString = constraint.getConstraint(); if (constraintString != null) { xmlDump.append(">" + XmlDumper.replaceIllegalChars(constraintString) + "</constraint>" + EOL);
xmlDump.append("priority=\"" + constraint.getPriority() + "\" "); String constraintString = constraint.getConstraint(); if (constraintString != null) { xmlDump.append(">" + XmlDumper.replaceIllegalChars(constraintString) + "</constraint>" + EOL);
xmlDump.append("language=\"" + RULE_LANGUAGE + "\" "); String constraintString = constraint.getConstraint(); if (constraintString == null) { constraintString = "";
builder.append( createSplitRule( process, connection, split.getConstraint( connection ).getConstraint() ) );
if (split.getConstraint(connection) == null && !split.isDefault(connection) || (!split.isDefault(connection) && (split.getConstraint(connection).getConstraint() == null || split.getConstraint(connection).getConstraint().trim().length() == 0))) { addErrorMessage(process, node,
public void addConstraint(ConnectionRef connection, Constraint constraint) { if (connection != null) { throw new IllegalArgumentException( "A Milestone node only accepts one simple constraint"); } this.constraint = constraint.getConstraint(); }
public void addConstraint(ConnectionRef connection, Constraint constraint) { if (connection != null) { throw new IllegalArgumentException( "A constraint trigger only accepts one simple constraint"); } this.constraint = constraint.getConstraint(); }
private String createStateRule(Process process, StateNode state, ConnectionRef key, Constraint constraint) { if (constraint.getConstraint() == null || constraint.getConstraint().trim().length() == 0) { return ""; } else { return "rule \"RuleFlowStateNode-" + process.getId() + "-" + state.getUniqueId() + "-" + key.getNodeId() + "-" + key.getToType() + "\" @Propagation(EAGER) \n" + " ruleflow-group \"DROOLS_SYSTEM\" \n" + " when \n" + " " + state.getConstraints().get(key).getConstraint() + "\n" + " then \n" + "end \n\n"; } }
xmlDump.append("dialect=\"" + dialect + "\" "); String constraintString = constraint.getConstraint(); if (constraintString != null) { xmlDump.append(">" + XmlDumper.replaceIllegalChars(constraintString) + "</constraint>" + EOL);
xmlDump.append("priority=\"" + constraint.getPriority() + "\" "); String constraintString = constraint.getConstraint(); if (constraintString != null) { xmlDump.append(">" + XmlDumper.replaceIllegalChars(constraintString) + "</constraint>" + EOL);
xmlDump.append("language=\"" + RULE_LANGUAGE + "\" "); String constraintString = constraint.getConstraint(); if (constraintString == null) { constraintString = "";
builder.append( createSplitRule( process, connection, split.getConstraint( connection ).getConstraint() ) );
String newTestCode = testCode + " // please make sure that the following constraint is selected to node " + c.getTo().getName() + ":\n" + " // " + split.getConstraint(c).getConstraint() + "\n"; if (!processNodes(name + "Constraint" + i++, c.getTo(), newTestCode, cases, ongoingCases)) { done = false;
if (split.getConstraint(connection) == null && !split.isDefault(connection) || (!split.isDefault(connection) && (split.getConstraint(connection).getConstraint() == null || split.getConstraint(connection).getConstraint().trim().length() == 0))) { addErrorMessage(process, node,