Package org.jbpm.wire.descriptor

Examples of org.jbpm.wire.descriptor.ArgDescriptor


    String connectionName = XmlUtil.attribute(element, "connection");
    if (connectionName!=null) {
      List<ArgDescriptor> argDescriptors = new ArrayList<ArgDescriptor>();
      persistenceSessionDescriptor.setArgDescriptors(argDescriptors);

      ArgDescriptor argDescriptor = new ArgDescriptor();
      argDescriptor.setTypeName(Connection.class.getName());
      ReferenceDescriptor connectionDescriptor = new ReferenceDescriptor();
      connectionDescriptor.setValue(connectionName);
      argDescriptor.setDescriptor(connectionDescriptor);
    }

    SubscribeOperation subscribeOperation = new SubscribeOperation();
    subscribeOperation.setWireEvents(false);
    persistenceSessionDescriptor.addOperation(subscribeOperation);
View Full Code Here


    if (argElements!=null) {
      if (argElements.size()>0) {
        args = new ArrayList<ArgDescriptor>(argElements.size());
      }
      for (Element argElement: argElements) {
        ArgDescriptor argDescriptor = new ArgDescriptor();
        argDescriptor.setTypeName(XmlUtil.attribute(argElement, "type"));
        Element descriptorElement = XmlUtil.element(argElement);
        if (descriptorElement==null) {
          parse.addProblem("arg must contain exactly one descriptor element out of "+bindings.getTagNames(CATEGORY_DESCRIPTOR)+" as contents:"+XmlUtil.toString((Element) argElement.getParentNode()));
        } else {
          Descriptor descriptor = (Descriptor) parseElement(descriptorElement, parse, CATEGORY_DESCRIPTOR);
          argDescriptor.setDescriptor(descriptor);
        }
        args.add(argDescriptor);
      }
    }
    return args;
View Full Code Here

    String signature = methodName+"(";
    if (args!=null) {
      for (int i=0; i<args.length; i++) {
        String argType = null;
        if (argDescriptors!=null) {
          ArgDescriptor argDescriptor = argDescriptors.get(i);
          if ( (argDescriptor!=null)
               && (argDescriptor.getTypeName()!=null)
             ) {
            argType = argDescriptor.getTypeName();
          }
        }
        if ( (argType==null)
             && (args[i]!=null)
           ) {
View Full Code Here

TOP

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

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.