Examples of InvokeOperation


Examples of org.jbpm.pvm.internal.wire.operation.InvokeOperation

    parseIntAttribute(element, "history", descriptor, "historySize", parse);
    parseIntAttribute(element, "lock", descriptor, "lockMillis", parse);

    // by default invoke the start method, unless auto-start is disabled
    if (XmlUtil.attributeBoolean(element, "auto-start", false, parse, true)) {
      InvokeOperation invokeStartOperation = new InvokeOperation();
      invokeStartOperation.setMethodName("start");
      descriptor.addOperation(invokeStartOperation);
      descriptor.setAutoStart(true);
    }

    return descriptor;
View Full Code Here

Examples of org.jbpm.pvm.internal.wire.operation.InvokeOperation

  public InvokeBinding() {
    super("invoke");
  }

  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), element);
    }
    List<Element> argElements = XmlUtil.elements(element, "arg");
    Parser wireParser = (Parser) parser;
    List<ArgDescriptor> argDescriptors = wireParser.parseArgs(argElements, parse);
    invokeOperation.setArgDescriptors(argDescriptors);
    return invokeOperation;
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.wire.operation.InvokeOperation

    javaActivity.setVariableName(variableName);

    List<Element> argElements = XmlUtil.elements(element, "arg");
    if (!argElements.isEmpty()) {
      List<ArgDescriptor> argDescriptors = wireParser.parseArgs(argElements, parse);
      InvokeOperation invokeOperation = new InvokeOperation();
      invokeOperation.setArgDescriptors(argDescriptors);
      javaActivity.setInvokeOperation(invokeOperation);
    }

    if (element.hasAttribute("class")) {
      ObjectDescriptor objectDescriptor = JpdlParser.parseObjectDescriptor(element, parse);
View Full Code Here

Examples of org.jbpm.pvm.internal.wire.operation.InvokeOperation

    parseIntAttribute(element, "history", descriptor, "historySize", parse);
    parseIntAttribute(element, "lock", descriptor, "lockMillis", parse);

    // by default invoke the start method, unless auto-start is disabled
    if (XmlUtil.attributeBoolean(element, "auto-start", false, parse, true)) {
      InvokeOperation invokeStartOperation = new InvokeOperation();
      invokeStartOperation.setMethodName("start");
      descriptor.addOperation(invokeStartOperation);
      descriptor.setAutoStart(true);
      descriptor.setInit(AbstractDescriptor.INIT_EAGER);
    }
View Full Code Here

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

Examples of org.jbpm.wire.operation.InvokeOperation

    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

Examples of org.jbpm.wire.operation.InvokeOperation

* @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
Copyright © 2018 www.massapi.com. 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.