Except as otherwise provided in Article 3657, a petition may set forth two or more causes of action in the alternative, even though the legal or factual bases thereof may be inconsistent or mutually exclusive. In such cases all allegations shall be made subject to the obligations set forth in Article 863.