R30726 Document - Document State Change Is Not Permitted

    Code R30726
    Entity General.Documents Entity
    Name DocumentStateChangeIsNotPermitted
    Attribute State
    Layer Back-End
    Events ClientCommit
    Priority Normal
    Modify NO
    Applicable Legislations ALL // no condition needed
    Action f(obj.ObjectState == Added && obj.State != New)   throw error; if(obj.State != obj.GetDatabaseObject().State)   throw error;
    Description Document State must be changed only using ChangeState method.
    Message The State attribute can not be modified. Use Document.ChangeState method.
    Version Introduced: 2019
    Revocable No

    * For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.

    • Improve this Doc
    Back to top Generated by DocFX