/** * Sets this object's rule node's state property to refer to the specified state node * * @param stateName the name of the state to set the rule node to * @throws RulesRepositoryException */ public void updateState(String stateName) throws RulesRepositoryException { try { //now set the state property of the rule checkout(); StateItem stateItem = this.rulesRepository.getState( stateName ); this.updateState( stateItem ); } catch ( Exception e ) { log.error( "Caught exception", e ); throw new RulesRepositoryException( e ); } }
/** * Sets this object's rule node's state property to refer to the specified state node * * @param stateName the name of the state to set the rule node to * @throws RulesRepositoryException */ public void updateState(String stateName) throws RulesRepositoryException { try { //now set the state property of the rule checkout(); StateItem stateItem = this.rulesRepository.getState( stateName ); this.updateState( stateItem ); } catch ( Exception e ) { log.error( "Caught exception", e ); throw new RulesRepositoryException( e ); } }