Tabnine Logo
org.drools.guvnor.models.commons.shared.workitems
Code IndexAdd Tabnine to your IDE (free)

How to use org.drools.guvnor.models.commons.shared.workitems

Best Java code snippets using org.drools.guvnor.models.commons.shared.workitems (Showing top 20 results out of 315)

origin: org.drools/drools-guvnor-models-commons

@Override
public String asString() {
  if ( isBound() ) {
    return this.getBinding();
  }
  if ( this.value == null ) {
    return "null";
  }
  return "\"" + value + "\"";
}
origin: org.drools/drools-guvnor-models-commons

@Override
public String asString() {
  if ( isBound() ) {
    return this.getBinding();
  }
  return "null";
}
origin: org.drools/drools-guvnor-models-commons

public PortableParameterDefinition( String name ) {
  setName( name );
}
origin: org.kie.guvnor/guvnor-guided-dtable-editor-client

private PortableWorkDefinition cloneWorkItemDefinition( PortableWorkDefinition pwd ) {
  if ( pwd == null ) {
    return null;
  }
  PortableWorkDefinition clone = new PortableWorkDefinition();
  clone.setName( pwd.getName() );
  clone.setDisplayName( pwd.getDisplayName() );
  clone.setParameters( cloneParameters( pwd.getParameters() ) );
  clone.setResults( cloneParameters( pwd.getResults() ) );
  return clone;
}
origin: org.kie.guvnor/guvnor-guided-dtable-editor-client

public void onChange( ChangeEvent event ) {
  int index = workItemResultParameters.getSelectedIndex();
  if ( index >= 0 ) {
    String key = workItemResultParameters.getValue( index );
    WorkItemParameter wip = workItemResultParametersMap.get( key );
    editingCol.setWorkItemName( wip.workDefinition.getName() );
    editingCol.setWorkItemResultParameterName( wip.workParameterDefinition.getName() );
    editingCol.setParameterClassName( wip.workParameterDefinition.getClassName() );
  }
}
origin: org.drools/drools-guvnor-models-commons

@Override
public String asString() {
  if ( isBound() ) {
    return this.getBinding();
  }
  if ( this.value == null ) {
    return "null";
  }
  return Float.toString( this.value ) + "f";
}
origin: org.drools/drools-guvnor-models-commons

@Override
public String asString() {
  if ( isBound() ) {
    return this.getBinding();
  }
  if ( this.value == null ) {
    return "null";
  }
  return Integer.toString( this.value );
}
origin: org.kie.guvnor/guvnor-commons-ui

public int compare( PortableParameterDefinition o1,
          PortableParameterDefinition o2 ) {
  return o1.getName().compareTo( o2.getName() );
}
origin: org.drools/drools-guvnor-models-commons

public boolean isBound() {
  return ( this.getBinding() != null && !"".equals( this.getBinding() ) );
}
origin: org.drools/drools-guvnor-models-commons

public boolean isBound() {
  return ( this.getBinding() != null && !"".equals( this.getBinding() ) );
}
origin: org.drools/drools-guvnor-models-commons

public boolean isBound() {
  return ( this.getBinding() != null && !"".equals( this.getBinding() ) );
}
origin: org.drools/drools-guvnor-models-commons

public boolean isBound() {
  return ( this.getBinding() != null && !"".equals( this.getBinding() ) );
}
origin: org.drools/drools-guvnor-models-commons

@Override
public String asString() {
  if ( !( this.getBinding() == null || "".equals( this.getBinding() ) ) ) {
    return this.getBinding();
  }
  if ( this.value == null ) {
    return "null";
  }
  return this.getClassName() + "." + this.value;
}
origin: org.drools/drools-guvnor-models-commons

public boolean isBound() {
  return ( this.getBinding() != null && !"".equals( this.getBinding() ) );
}
origin: org.drools/drools-guvnor-models-commons

public PortableListParameterDefinition() {
  this.setClassName( "java.util.List" );
}
origin: org.drools/drools-guvnor-models-commons

public String getSimpleClassName() {
  String className = getClassName();
  if ( className == null ) {
    return null;
  }
  int index = className.lastIndexOf( "." );
  if ( index >= 0 ) {
    className = className.substring( index + 1 );
  }
  return className;
}
origin: org.kie.guvnor/guvnor-commons-ui

public WorkItemListParameterWidget( PortableListParameterDefinition ppd,
                  IBindingProvider bindingProvider,
                  boolean isReadOnly ) {
  super( ppd,
      bindingProvider,
      isReadOnly );
  this.parameterName.setText( ppd.getName() );
}
origin: org.kie.guvnor/guvnor-guided-dtable-editor-client

public void onChange( ChangeEvent event ) {
  int index = workItemResultParameters.getSelectedIndex();
  if ( index >= 0 ) {
    String key = workItemResultParameters.getValue( index );
    WorkItemParameter wip = workItemResultParametersMap.get( key );
    editingCol.setWorkItemName( wip.workDefinition.getName() );
    editingCol.setWorkItemResultParameterName( wip.workParameterDefinition.getName() );
    editingCol.setParameterClassName( wip.workParameterDefinition.getClassName() );
  }
}
origin: org.drools/drools-guvnor-models-commons

public void addParameter( PortableParameterDefinition parameter ) {
  parameters.put( parameter.getName(),
          parameter );
}
origin: org.drools/drools-guvnor-models-commons

public void addResult( PortableParameterDefinition result ) {
  results.put( result.getName(),
         result );
}
org.drools.guvnor.models.commons.shared.workitems

Most used classes

  • PortableBooleanParameterDefinition
    A Boolean parameter
  • PortableFloatParameterDefinition
    A Float parameter
  • PortableIntegerParameterDefinition
    An Integer parameter
  • PortableStringParameterDefinition
    A String parameter
  • PortableWorkDefinition
    A WorkDefinition used in Guvnor.
  • PortableParameterDefinition,
  • PortableEnumParameterDefinition,
  • PortableListParameterDefinition,
  • HasBinding
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now