/**
* Create a new process for the given type and start it.
*/
public void createAndStartProcessBatched() throws Exception {
WfRequester cont = new DefaultRequester(workflowService());
ProcessDefinitionDirectory pdd = null;
WfProcessMgr pmgr = null;
try {
pdd = workflowService().processDefinitionDirectory ();
pmgr = pdd.processMgr("ut-process", "jut1");
} finally {
workflowService().release (pdd);
}
MethodInvocationBatch mib = new MethodInvocationBatch();
mib.addInvocation
(pmgr, "createProcess", new String[]
{"de.danet.an.workflow.omgcore.WfRequester"},
new Object[]{new DefaultRequester(workflowService())});
mib.addInvocation(-1, "key", null, null, false);
mib.addInvocation(-2, "start", null, null, false);
MethodInvocationBatch.Result mir = (MethodInvocationBatch.Result)
workflowService().executeBatch(mib);
if (mir.hasExceptions ()) {