2023-INGIPRO-docs/model/dataConnector.txt

47 lines
1.5 KiB
Plaintext
Raw Normal View History

2024-06-07 20:33:18 +03:00
_extractor doc:Document
# triggering Grounds
# triggering Signatures
# triggering ExternalLinks
self = new Document
.Title = ${/DocumentTitle}
.DateIssue = ${/DateIssue}
.Status = ${/DocumentStatus} | System.Enum.DocumentStatus
_validator doc:Document
foreach signature in self._Signatures
claim System.API.VerifySignature(signature, self.SigningOrder)
foreach ground in self._Grounds
if ground -istype ReferenceDocument
assert self.DateIssue -ge ground.DateIssue
_extractor forms:Act
self.CapitalConstructionObject = ${/Body/CapitalConstructionObject}
self.Parties = ${/Body/Parties}
self.Participants = ${/Body/Participants}
foreach participant in self.Participants
new Representation
.Context = self
.Role = participant.RepresentedRole
.Represented = participant.RepresentedID
.Representative = participant.RepresentativeEntity
_extractor forms:ActFinishInstallation
self.ControlAction = ${/Body/Contents/Entity/ControlEntry}
self.Verdict = ${/Body/Contents/Entity/Verdict}
self.ControlAction.Subjects = self.Parties -union [self.Participants.RepresentativeEntity]
_extractor sem:ControlAction
self = new ControlAction
.ControlTask = ${/ControlTask}
.ControlledTask = ${/ControlledTask}
.ControlledObject = ${/ControlledObject}
.Requirements = ${/Requirements}
.Assessments = ${/Assessments}
.Resolution = ${/Resolution}