Data Changelog
We strongly advise you to download and configure changelog schemas at your IntelliJ IDEA, this will be necessary to obtain IntelliSense when editing. More information here.
The platform provides a schema definition based on changelog/changeset to manipulate structures that need existing data, such as, Filter Criterion
.
Supported Operations
DataObject
dataObjectDataSourceCriteria
: Setcriteria
for an existingDataSource
related to aDataObject
.
DocumentType
subDocumentExpressionCriteria
: Setcriteria
for an existingExpression
related to aSubDocument
andDocumentType
.
HumanBeingDataSource
humanBeingDataSourceCriteria
: Setcriteria
for an existingHumanBeingDataSource
.
Macro
macroCriteria
: Setcriteria
for an existingMacro
.addOrChangeMacroFunction
: Add Or changeMacro Function
.addMacroFunction
: AddMacro Function
.changeMacroFunction
: ChangeMacro Function
.removeMacroFunction
: RemoveMacro Function
.
Dynamic Filter
dynamicFilterCriteria
: Setcriteria
for an existingDynamic Filter
.
Tracking
addOrChangeTrackingProcess
: Add Or changeTracking Process
.addTrackingProcess
: AddTracking Process
.changeTrackingProcess
: ChangeTracking Process
.removeTrackingProcess
: RemoveTracking Process
.
Phase
addOrChangeTrackingPhase
: Add or changeTracking Phase
for an existingTracking Process
.addTrackingPhase
: AddTracking Phase
for an existingTracking Process
.changeTrackingPhase
: ChangeTracking Phase
for an existingTracking Process
.removeTrackingPhase
: RemoveTracking Phase
from an existingTracking Process
.
Indicator
addOrChangeTrackingPhaseIndicator
: Add or changeIndicator
for an existingTracking Phase
.addTrackingPhaseIndicator
: AddIndicator
for an existingTracking Phase
.changeTrackingPhaseIndicator
: ChangeIndicator
for an existingTracking Phase
.removeTrackingPhaseIndicator
: RemoveIndicator
from an existingTracking Phase
.
Template Data
addOrChangeTemplateData
: Add Or changeTemplate Data
.addTemplateData
: AddTemplate Data
.changeTemplateData
: ChangeTemplate Data
.removeTemplateData
: RemoveTemplate Data
.
Document Type Data
addOrChangeTemplateDataDocTypeData
: Add or changeDocument Type Data
for an existingTemplate Data
.addTemplateDataDocTypeData
: AddDocument Type Data
for an existingTemplate Data
.changeTemplateDataDocTypeData
: ChangeDocument Type Data
for an existingTemplate Data
.removeTemplateDataDocTypeData
: RemoveDocument Type Data
from an existingTemplate Data
.
Fields
addOrChangeTemplateDataField
: Add or changeField
for an existingTemplate Data Document Type Data
.addTemplateDataField
: AddField
for an existingTemplate Data Document Type Data
.changeTemplateDataField
: ChangeField
for an existingTemplate Data Document Type Data
.removeTemplateDataField
: RemoveField
from an existingTemplate Data Document Type Data
.
Macro
addOrChangeTrackingPhaseIndicator
: Add or changeMacro
for an existingTemplate Data
.AppBuilder compatibility
addTrackingPhaseIndicator
: AddMacro
for an existingTemplate Data
.removeTrackingPhaseIndicator
: RemoveMacro
from an existingTemplate Data
.
Calendar
addCalendar
: AddSystem Calendar
.changeCalendar
: ChangeSystem Calendar
.addOrChangeCalendar
: Add or changeSystem Calendar
.removeCalendar
: RemoveSystem Calendar
.addCalendarResource
: AddCalendar Resource
.changeCalendarResource
: ChangeCalendar Resource
.addOrChangeCalendarResource
: Add or changeCalendar Resource
.removeCalendarResource
: RemoveCalendar Resource
.addCalendarPeriod
: AddCalendar Period
.changeCalendarPeriod
: ChangeCalendar Period
.addOrChangeCalendarPeriod
: Add or changeCalendar Period
.removeCalendarPeriod
: RemoveCalendar Period
.addCalendarHoliday
: AddCalendar Holiday
.changeCalendarHoliday
: ChangeCalendar Holiday
.addOrChangeCalendarHoliday
: Add or changeCalendar Holiday
.removeCalendarHoliday
: RemoveCalendar Holiday
.
Role And Permission
addRole
: AddRole, here you can configure if default permissions will be added to the role addDefaultPermissions=true
.changeRole
: ChangeRole
.addOrChangeRole
: Add or changeRole
.removeRole
: RemoveRole
.addOrChangePermission
: Add or changePermission
.addPermission
: AddPermission
.changePermission
: ChangePermission
.removePermission
: RemovePermission
.
Report Filter
addReportFilter
: AddReport Filter
for an existingDocument Type
.changeReportFilter
: ChangeReport Filter
for an existingDocument Type
.addOrChangeReportFilter
: Add or ChangeReport Filter
for an existingDocument Type
.removeReportFilter
: RemoveReport Filter
for an existingDocument Type
.
AppBuilder compatibility: Operations marked as
AppBuilder compatibility
has no effect forchange
, onlyadd
the target object if not exists.
Changelog File
Main structure
As demonstrated below, the root
element of a changelog file is changelog
, it supports n changesets
.
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<changeLog xmlns="http://meceap.me.com.br/schema/changeLog-data-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://meceap.me.com.br/schema/changeLog-data-mapping http://docs.miisy.me/xsd/changelog-data-mapping.xsd">
<changeSet author="author 01" description="changeset description 01" id="01-01-0001" runAlways="false" runOnChange="false" failOnError="true">
</changeSet>
<changeSet author="author 02" description="changeset description 02" id="01-01-0002" runAlways="false" runOnChange="false" failOnError="true">
</changeSet>
<changeSet author="author n" description="changeset description n..." id="n-n-n..." runAlways="false" runOnChange="false" failOnError="true">
</changeSet>
</changeLog>
Must be stored at src\main\mapping\changelogdata
and must have the .changelog.data.xml
extension. Example: \customroot\core\src\main\mapping\changelogdata\v1.changelog.data.xml
.
Use
.ext
in the filename when working with application extensions. Example:v1.ext.changelog.data.xml
.
ChangeSet element
ChangeSet
is the root
element for all supported operations, it's possible to define 0..n of each operation.
Example of use:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<changeLog xmlns="http://meceap.me.com.br/schema/changeLog-data-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://meceap.me.com.br/schema/changeLog-data-mapping http://docs.miisy.me/xsd/changelog-data-mapping.xsd">
<changeSet author="author" description="update criteria for datasource" id="01-01-0001" runAlways="false" runOnChange="false"
failOnError="true">
<dataObjectDataSourceCriteria dataObject="MyDataObjectBaseName" name="MyDataSourceName">
<criteria fieldName="information.requester" operator="is" originalPath="information" value="User Name"/>
<criteria fieldName="information.listener" operator="contains" value="User Name"/>
<criteria fieldName="amountCalc" operator="greaterThan" value="10"/>
</dataObjectDataSourceCriteria>
</changeSet>
<changeSet author="author" description="update criteria for myExpression" id="01-01-0002" runAlways="false" runOnChange="false"
failOnError="true">
<subDocumentExpressionCriteria documentType="MyDocumentType" name="myExpression"
subDocumentType="MySubDocumentType">
<criteria fieldName="header.information.requester" operator="is" originalPath="header.information"
value="User Name"/>
<criteria fieldName="header.information.requester" operator="contains" value="User Name"/>
</subDocumentExpressionCriteria>
</changeSet>
</changeLog>
Tips
- You can make many operations at the same
changeset
, but break in multipleschangesets
is more readable and easy to maintain. - Don't forget to read about changelog master file. More information here.
XSD Download
How to manually configure xsd
location at IntelliJ IDEA for IntelliSense here.