/** * Set <code>userContext</code> and instantiate the WorkflowLauncher, * constructing an instance of the ScuflModel from the XML provided by the * given input stream. * * @param xmlStream * @param userContext * a {@link UserContext} * @throws ProcessorCreationException * @throws DataConstraintCreationException * @throws UnknownProcessorException * @throws UnknownPortException * @throws DuplicateProcessorNameException * @throws MalformedNameException * @throws ConcurrencyConstraintCreationException * @throws DuplicateConcurrencyConstraintNameException * @throws XScuflFormatException */ public WorkflowLauncher(InputStream xmlStream, UserContext userContext) throws ProcessorCreationException, DataConstraintCreationException, UnknownProcessorException, UnknownPortException, DuplicateProcessorNameException, MalformedNameException, ConcurrencyConstraintCreationException, DuplicateConcurrencyConstraintNameException, XScuflFormatException { initialise(); model = openWorkflowModel(xmlStream); this.userContext = userContext; }