Package org.jbpm.wire.operation

Examples of org.jbpm.wire.operation.InvokeOperation


  public Object parse(Element element, Parse parse, Parser parser) {
      ObjectDescriptor objectDescriptor = new ObjectDescriptor();
      objectDescriptor.setClassName(StandardTimerSession.class.getName());

      InvokeOperation invokeStartOperation = new InvokeOperation();
      invokeStartOperation.setMethodName("start");
      objectDescriptor.addOperation(invokeStartOperation);

      return objectDescriptor;
  }
View Full Code Here


    descriptor.setClassName(JobExecutor.class.getName());

    // by default invoke the start method, unless auto-start is disabled
    boolean autoStart = XmlUtil.booleanEquals(element, "auto-start", Boolean.TRUE);
    if (autoStart) {
      InvokeOperation invokeStartOperation = new InvokeOperation();
      invokeStartOperation.setMethodName("start");
      descriptor.addOperation(invokeStartOperation);
    }
   
    // by default eager initialization is enabled
//    descriptor.setInit(AbstractDescriptor.INIT_REQUIRED);
View Full Code Here

* @see ObjectBinding
*/

public class InvokeBinding implements Binding {
  public Object parse(Element element, Parse parse, Parser parser) {
    InvokeOperation invokeOperation = new InvokeOperation();
    if (element.hasAttribute("method")) {
      invokeOperation.setMethodName(element.getAttribute("method"));
    } else {
      parse.addProblem("invoke must have method : "+XmlUtil.toString(element));
    }
    List<Element> argElements = XmlUtil.elements(element, "arg");
    WireParser wireParser = (WireParser) parser;
    List<ArgDescriptor> argDescriptors = wireParser.parseArgs(argElements, parse);
    invokeOperation.setArgDescriptors(argDescriptors);
    return invokeOperation;
  }
View Full Code Here

TOP

Related Classes of org.jbpm.wire.operation.InvokeOperation

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.