/** * Given a launch item, launches a flow in the embedded engine. */ public FlowExpressionId launch (final LaunchItem li, final boolean async) throws LaunchException { final Launcher l = Definitions.getLauncher(getContext()); return l.launch(li, async); }
/** * Loads (interprets / launches) a process definition given by its URL. * The launch is done synchronously, to ensure that definitions are * interpreted and bound before any further launches. */ protected void load (final String url) { if (log.isDebugEnabled()) log.debug("load() url is >"+url+"<"); try { final LaunchItem li = new LaunchItem(); li.setWorkflowDefinitionUrl(url); Definitions.getLauncher(this.getContext()).launch(li, false); // // async is set to false } catch (final Throwable t) { log.warn ("load() failed to load library at '"+url+"' "+t); if (log.isDebugEnabled()) { log.debug ("load() failed to load library at '"+url+"'", t); } } }
getLauncher().launch(launchWi, parentId, ref, areLaunchesAsync());