public ProcessInstance startProcess(String processId,
Map<String, Object> parameters) {
if ( !this.actionQueue.isEmpty() ) {
executeQueuedActions();
}
final Process process = ((InternalRuleBase) getRuleBase()).getProcess( processId );
if ( process == null ) {
throw new IllegalArgumentException( "Unknown process ID: " + processId );
}
ProcessInstance processInstance = ( ProcessInstance ) getProcessInstance( process );
processInstance.setWorkingMemory( this );