R37343 Case - Create History Case Development

Code R37343
Entity Projects.Agile.Cases Entity
Name CreateHistoryCaseDevelopment
Attribute SystemState, AssignedToUser, Description
Layer Back-End
Events ClientCommit
Record State Inserted, Updated
Priority Normal
Modify YES
Action On Insert:
Create a new CaseDevelopment record where DevelopmentType = Create, NewSystemState = Case.SystemState, AssignedToUser = Case.AssignedToUser, Description = Case.Description

If the Case.Description field has a value
, then Case.Description = NULL

On Update:
If the System state field has been changed
, then create a new CaseDevelopment record where DevelopmentType = State change/STH and NewSystemState = Case.SystemState

If the Assigned To User field has been changed
, then create a new CaseDevelopment record where DevelopmentType = Assignment/ASH and AssignedToUser = Case.AssignedToUser

If the Assigned To User and System State fields have been changed
, then create a new CaseDevelopment record where DevelopmentType = Assignment/ASH and NewSystemState = Case.SystemState

If the Description field differs from null
, then create a new CaseDevelopment record where DevelopmentType = Edit and Description = Case.Description

If the Assigned To User and Description fields have been changed
, then create a new CaseDevelopment record where DevelopmentType = Assignment/ASH and Description = Case.Description

If the System State and Description fields have been changed
, then create a new CaseDevelopment record where DevelopmentType = Change state/STH and Description = Case.Description

If the Assigned To User and System State and Description fields have been changed
, then create a new CaseDevelopment record where DevelopmentType = Assignment/ASH, NewSystemState = Case.SystemState and Description = Case.Description

If the Case.Description field has a value
, then Case.Description = NULL
Description The rule ensures that the history of creation, state changes, assignments, and the addition of new descriptions for a given case will be tracked by creating new case developments containing this information.
Message -
Version Introduced: v.25
Revocable YES

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