code: public static boolean update(RuleEngine ruleEngine, MutableStateObj state) {
          StateObj newState = ruleEngine.evaluateRules(state);
          state.updateState(newState);
          return newState.getState().size() > 0;
  
      }
docs: Update the state by evaluating the rules, and applying state changes
  
  @param ruleEngine rule engine
  @param state      state
  
  @return true if state was modified, false if no state change occured