return (ProcessInstance) executeCommand(cmd);
}
@Override
public ProcessInstance getProcessInstance( long processInstanceId, boolean readonly ) {
GetProcessInstanceCommand cmd = new GetProcessInstanceCommand();
cmd.setProcessInstanceId(processInstanceId);
cmd.setReadOnly(readonly);
return (ProcessInstance) executeCommand(cmd);
}