A motion to dismiss making any of these defenses shall be made before pleading if a further pleading is permitted. The grounds upon which any of the enumerated defenses are based shall be stated specifically and with particularity in the responsive pleading or motion. No defense or objection is waived by being joined with one or more other defenses or objections in a responsive pleading or motion. If, on a motion to dismiss asserting defenses (1) through (7), the facts constituting such defenses do not appear on the face of the pleading and matters outside the pleading, including affidavits, declarations and other evidence, are presented to the court, all parties shall be given a reasonable opportunity to present affidavits, declarations and other evidence, and the court may determine the existence or nonexistence of the facts supporting such defense or may defer such determination until further discovery or until trial on the merits. If the court grants a motion to dismiss, the court may enter judgment in favor of the moving party or grant leave to file an amended complaint. If the court grants the motion to dismiss on the basis of defense (3), the court may enter judgment in favor of the moving party, stay the proceeding, or defer entry of judgment.
Or. R. Civ. P. 21