com-pas / compas-scl-data-service

Service to store and retrieve the SCL XML to a database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make it possible to add some comment to a create or update call of a SCL

dlabordus opened this issue · comments

As a user
I want to add some comment when adding or updating a SCL
So that in the future we have more information to know why a add or update was done

To the CreateRequest and UpdateRequest and a required field "what" this field will be added to the SCL XML.
This can be done as THitem in the History of the Header.

Accepetance criteria:
Minimun amount of charaters: 10
Comment can be added in THitem: what
Save/date time can be added to THitem: when ->XSD date-time format

Create a THItem Record in the header
version -> from Header
revision -> from Header
when -> current date/time (YYYY-MM-DDThh:mm:ss)
who -> Username of the logged in user
what -> "SCL created, {comment}" or "SCL updated, {comment}"

<xs:complexType name="tHitem" mixed="true">
	<xs:complexContent>
		<xs:extension base="tAnyContentFromOtherNamespace">
			<xs:attribute name="version" type="xs:normalizedString" use="required"/>
			<xs:attribute name="revision" type="xs:normalizedString" use="required"/>
			<xs:attribute name="when" type="xs:normalizedString" use="required"/>
			<xs:attribute name="who" type="xs:normalizedString"/>
			<xs:attribute name="what" type="xs:normalizedString"/>
			<xs:attribute name="why" type="xs:normalizedString"/>
		</xs:extension>
	</xs:complexContent>
</xs:complexType>