Codota Logo
ActionCallMethod.getVariable
Code IndexAdd Codota to your IDE (free)

How to use
getVariable
method
in
org.drools.guvnor.models.commons.shared.rule.ActionCallMethod

Best Java code snippets using org.drools.guvnor.models.commons.shared.rule.ActionCallMethod.getVariable (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: org.drools/drools-guvnor-models-commons

  private void generateSetMethodCallsMethod( final ActionCallMethod action,
                        final FieldNature[] fieldValues ) {
    buf.append( indentation );
    if ( isDSLEnhanced ) {
      buf.append( ">" );
    }
    buf.append( action.getVariable() );
    buf.append( "." );
    buf.append( action.getMethodName() );
    buf.append( "( " );
    boolean isFirst = true;
    for ( int i = 0; i < fieldValues.length; i++ ) {
      ActionFieldFunction valueFunction = (ActionFieldFunction) fieldValues[ i ];
      if ( isFirst == true ) {
        isFirst = false;
      } else {
        buf.append( ", " );
      }
      constraintValueBuilder.buildRHSFieldValue( buf,
                            valueFunction.getType(),
                            valueFunction.getValue() );
    }
    buf.append( " );\n" );
  }
}
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

private Widget valueEditor( final ActionFieldFunction val ) {
  DataModelOracle completions = this.getModeller().getSuggestionCompletions();
  String type = "";
  if ( completions.isGlobalVariable( this.model.getVariable() ) ) {
    type = completions.getGlobalVariable( this.model.getVariable() );
  } else {
    type = this.getModeller().getModel().getLHSBindingType( this.model.getVariable() );
    if ( type == null ) {
      type = this.getModeller().getModel().getRHSBoundFact( this.model.getVariable() ).getFactType();
    }
  }
  DropDownData enums = completions.getEnums( type,
                        val.getField(),
                        FieldNatureUtil.toMap( this.model.getFieldValues() ) );
  return new MethodParameterValueEditor( val,
                      enums,
                      this.getModeller(),
                      val.getType(),
                      new Command() {
                        public void execute() {
                          setModified( true );
                        }
                      } );
}
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

if ( completions.isGlobalVariable( set.getVariable() ) ) {
  List<MethodInfo> infos = completions.getMethodInfosForGlobalVariable( set.getVariable() );
  if ( infos != null ) {
    this.fieldCompletionTexts = new String[ infos.size() ];
    this.variableClass = completions.getGlobalVariable( set.getVariable() );
  FactPattern pattern = mod.getModel().getLHSBoundFact( set.getVariable() );
  if ( pattern != null ) {
    List<String> methodList = completions.getMethodNames( pattern.getFactType() );
    ActionInsertFact patternRhs = mod.getModel().getRHSBoundFact( set.getVariable() );
    if ( patternRhs != null ) {
      List<String> methodList = completions.getMethodNames( patternRhs.getFactType() );
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

private Widget getSetterLabel() {
  HorizontalPanel horiz = new HorizontalPanel();
  if ( model.getState() == ActionCallMethod.TYPE_UNDEFINED ) {
    Image edit = GuidedRuleEditorImages508.INSTANCE.AddFieldToFact();
    edit.setAltText( Constants.INSTANCE.AddAnotherFieldToThisSoYouCanSetItsValue() );
    edit.setTitle( Constants.INSTANCE.AddAnotherFieldToThisSoYouCanSetItsValue() );
    edit.addClickHandler( new ClickHandler() {
      public void onClick( ClickEvent event ) {
        Widget w = (Widget) event.getSource();
        showAddFieldPopup( w );
      }
    } );
    horiz.add( new SmallLabel( HumanReadable.getActionDisplayName("call") + " [" + model.getVariable() + "]" ) ); // NON-NLS
    if ( !this.readOnly ) {
      horiz.add( edit );
    }
  } else {
    horiz.add( new SmallLabel( HumanReadable.getActionDisplayName( "call" ) + " [" + model.getVariable() + "." + model.getMethodName() + "]" ) ); // NON-NLS
  }
  return horiz;
}
origin: org.drools/drools-guvnor-models-commons

       a.getVariable() );
assertEquals( "addName",
       a.getMethodName() );
org.drools.guvnor.models.commons.shared.ruleActionCallMethodgetVariable

Popular methods of ActionCallMethod

  • <init>
  • addFieldValue
  • getFieldValues
  • getMethodName
  • setMethodName
  • getFieldValue
  • setVariable
  • getState
  • setState

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • getApplicationContext (Context)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now