Executing a non-interruptible process using the EJB interface

Why and when to perform this task

You can use the Enterprise Java Bean (EJB) interface to run non-interruptible processes.

Steps for this task

  1. (Optional)   List the process templates to find the name of the non-interruptible process you want to execute.
    This step is optional if you already know the name of the process.
    ProcessTemplateData[] processTemplates = process.queryProcessTemplates
    ("PROCESS_TEMPLATE.CAN_RUN_SYNC=TRUE",
     "PROCESS_TEMPLATE_NAME",
     newInteger(50),
     null);
    The results are sorted by name. The query returns an array containing the first 50 sorted templates that can be started as non-interruptible processes.
  2. Start the process with an input message.
    In the following example, Customer and OrderNo are message types known to the system.
    Customer input = new Customer("Smith");
    ...
    ClientObjectWrapper output = 
          process.call("CustomerTemplate", new ClientObjectWrapper(input));
    OrderNo order = (OrderNo) output.getObject();
    This action creates an instance of the process template, CustomerTemplate, and passes some customer data. The operation returns only when the process is complete. The result of the process, OrderNo, is returned to the caller.

Related concepts
Queries on business-process objects in V5.0-style processes



Searchable topic ID:   t6micexe
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/wfapi/tasks/t6micexe.html

Library | Support | Terms of Use | Feedback