Package org.jbpm.wire.descriptor

Examples of org.jbpm.wire.descriptor.StringDescriptor


* @see WireParser
*/
public class StringBinding extends BasicTypeBinding {

  protected AbstractDescriptor createDescriptor(String value) {
    StringDescriptor stringDescriptor = new StringDescriptor();
    stringDescriptor.setValue(value);
    return stringDescriptor;
  }
View Full Code Here


    commandExecutorInjection.setDescriptor(commandExecutorDescriptor);
   
    descriptor.addOperation(commandExecutorInjection);

    if (element.hasAttribute("name")) {
      StringDescriptor nameDescriptor = new StringDescriptor();
      nameDescriptor.setValue(element.getAttribute("name"));
      FieldOperation nameInjection = new FieldOperation();
      nameInjection.setFieldName("name");
      nameInjection.setDescriptor(nameDescriptor);
    }
View Full Code Here

          String value = XmlUtil.attribute(propertyElement, "value");

          if ( (name!=null)
               && (value!=null)
             ) {
            StringDescriptor nameDescriptor = new StringDescriptor();
            nameDescriptor.setValue(name);
            keyDescriptors.add(nameDescriptor);
            StringDescriptor valueDescriptor = new StringDescriptor();
            valueDescriptor.setValue(value);
            valueDescriptors.add(valueDescriptor);
          } else {
            parse.addProblem("property must have name and value attributes: "+XmlUtil.toString(propertyElement));
          }
        } else {
View Full Code Here

    return event;
  }

  /** adds a string-valued configuration to the current process element */
  public ProcessFactory property(String name, String stringValue) {
    StringDescriptor stringDescriptor = new StringDescriptor();
    stringDescriptor.setName(name);
    stringDescriptor.setValue(stringValue);
    property(stringDescriptor);
    return this;
  }
View Full Code Here

TOP

Related Classes of org.jbpm.wire.descriptor.StringDescriptor

Copyright © 2018 www.massapicom. 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.