Examples of addFieldValue()


Examples of org.drools.brms.client.modeldriven.brl.ActionSetField.addFieldValue()

        set.fieldValues[1] = v1;

        final ActionFieldValue q = new ActionFieldValue( "q",
                                                         "q",
                                                         SuggestionCompletionEngine.TYPE_NUMERIC );
        set.addFieldValue( q );

        assertEquals( 3,
                      set.fieldValues.length );
        assertEquals( q,
                      set.fieldValues[2] );
View Full Code Here

Examples of org.drools.brms.client.modeldriven.brl.ActionUpdateField.addFieldValue()

        comp.addFactPattern( new FactPattern( "Cancel" ) );
        m.addLhsItem( comp );

        final ActionUpdateField set = new ActionUpdateField();
        set.variable = "p1";
        set.addFieldValue( new ActionFieldValue( "status",
                                                 "rejected",
                                                 SuggestionCompletionEngine.TYPE_STRING ) );
        m.addRhsItem( set );

        final ActionRetractFact ret = new ActionRetractFact( "p1" );
View Full Code Here

Examples of org.drools.guvnor.client.modeldriven.brl.ActionInsertFact.addFieldValue()

            a.action = ins;
            actions.add(a);
          }
          ActionInsertFact ins = (ActionInsertFact) a.action;
          ActionFieldValue val = new ActionFieldValue(ac.factField, cell, ac.type);
          ins.addFieldValue(val);
        } else if (c instanceof ActionRetractFactCol) {
          ActionRetractFactCol rf = (ActionRetractFactCol)c;
          LabelledAction a = find(actions, rf.boundName);
          if (a == null) {
            a = new LabelledAction();
View Full Code Here

Examples of org.drools.guvnor.client.modeldriven.brl.ActionSetField.addFieldValue()

            a.action = new ActionSetField(sf.boundName);
            actions.add(a);
          }
          ActionSetField asf = (ActionSetField) a.action;
          ActionFieldValue val = new ActionFieldValue(sf.factField, cell, sf.type);
          asf.addFieldValue(val);
        }
      }
    }

    rm.rhs = new IAction[actions.size()];
View Full Code Here

Examples of org.drools.guvnor.models.commons.shared.rule.ActionCallMethod.addFieldValue()

                                param = param.trim();
                                if ( param.length() == 0 ) {
                                    continue;
                                }
                                String dataType = inferDataType( param, isJavaDialect );
                                acm.addFieldValue( new ActionFieldFunction( null, adjustParam( dataType, param, isJavaDialect ), dataType ) );
                            }
                        }
                        continue;
                    }
                }
View Full Code Here

Examples of org.drools.guvnor.models.commons.shared.rule.ActionInsertFact.addFieldValue()

            ActionWorkItemFieldValue val = new ActionWorkItemFieldValue( ac.getFactField(),
                                                                         ac.getType(),
                                                                         ac.getWorkItemName(),
                                                                         ac.getWorkItemResultParameterName(),
                                                                         ac.getParameterClassName() );
            ins.addFieldValue( val );
        }
    }

    private void doAction( List<LabelledAction> actions,
                           ActionInsertFactCol52 ac,
View Full Code Here

Examples of org.drools.guvnor.models.commons.shared.rule.ActionInsertFact.addFieldValue()

        }
        ActionInsertFact ins = (ActionInsertFact) a.action;
        ActionFieldValue val = new ActionFieldValue( ac.getFactField(),
                                                     cell,
                                                     ac.getType() );
        ins.addFieldValue( val );
    }

    private void doAction( List<LabelledAction> actions,
                           ActionWorkItemSetFieldCol52 sf,
                           String cell ) {
View Full Code Here

Examples of org.drools.guvnor.models.commons.shared.rule.ActionInsertLogicalFact.addFieldValue()

            ActionWorkItemFieldValue val = new ActionWorkItemFieldValue( ac.getFactField(),
                                                                         ac.getType(),
                                                                         ac.getWorkItemName(),
                                                                         ac.getWorkItemResultParameterName(),
                                                                         ac.getParameterClassName() );
            ins.addFieldValue( val );
        }
    }

    private void doAction( List<LabelledAction> actions,
                           ActionInsertFactCol52 ac,
View Full Code Here

Examples of org.drools.guvnor.models.commons.shared.rule.ActionInsertLogicalFact.addFieldValue()

        }
        ActionInsertFact ins = (ActionInsertFact) a.action;
        ActionFieldValue val = new ActionFieldValue( ac.getFactField(),
                                                     cell,
                                                     ac.getType() );
        ins.addFieldValue( val );
    }

    private void doAction( List<LabelledAction> actions,
                           ActionWorkItemSetFieldCol52 sf,
                           String cell ) {
View Full Code Here

Examples of org.drools.guvnor.models.commons.shared.rule.ActionSetField.addFieldValue()

            ActionWorkItemFieldValue val = new ActionWorkItemFieldValue( sf.getFactField(),
                                                                         sf.getType(),
                                                                         sf.getWorkItemName(),
                                                                         sf.getWorkItemResultParameterName(),
                                                                         sf.getParameterClassName() );
            asf.addFieldValue( val );
        }
    }

    private void doAction( List<LabelledAction> actions,
                           ActionSetFieldCol52 sf,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.