command.setProcessInstanceId( id );
return commandService.execute( command );
}
public ProcessInstance getProcessInstance(long id, boolean readOnly) {
GetProcessInstanceCommand command = new GetProcessInstanceCommand();
command.setProcessInstanceId( id );
command.setReadOnly( readOnly );
return commandService.execute( command );
}