command.setProcessInstanceId( id );
return commandService.execute( command );
}
public void abortProcessInstance(long id) {
SetProcessInstanceStateCommand command = new SetProcessInstanceStateCommand();
command.setProcessInstanceId( id );
command.setState( ProcessInstance.STATE_ABORTED );
commandService.execute( command );
}