<?xml version="1.0" encoding="utf-8"?>

<!--
//
//  View Audit Trail.xml - XML definition for the initial Mocha `View Audit Trail` system task instance
//
//  Author:
//       Michael Becker <alcexhim@gmail.com>
//
//  Copyright (c) 2020-2021 Mike Becker's Software
//
//  This program is free software: you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->
<mocha xmlns="urn:net.alcetech.schemas.Mocha">
	<libraries>
		<library id="{2826E41F-763A-413F-B239-3D9698AB629F}">
			<instances>
				<instance id="{eae88bb1-a6b0-45d7-bbc2-6c1b34b88f4c}" classInstanceId="{EC889225-416A-4F73-B8D1-2A42B37AF43E}">
					<!-- Date Prompt: From Moment -->
					<attributeValues>
						<!-- Order -->
						<!-- Value (Default Value) -->
						
						<!-- Required -->
						<attributeValue attributeInstanceId="&IDA_Required;" value="false" />
					
						<!-- opposite of Do Not Prompt at Runtime -->
						<attributeValue attributeInstanceId="&IDA_Visible;" value="true" />
					</attributeValues>
					<translations>
						<translation relationshipInstanceId="{7FB5D234-042E-45CB-B11D-AD72F8D45BD3}">
							<!-- Label Override -->
							<translationValues>
								<translationValue languageInstanceId="&IDI_Language_English;" value="From Moment" />
							</translationValues>
						</translation>
					</translations>
					<relationships>
						<relationship relationshipInstanceId="&IDR_Prompt__has__Report_Field;">
							<targetInstances>
								<!-- Start Date -->
								<instanceReference instanceId="" />
							</targetInstances>
						</relationship>
					</relationships>
				</instance>
				<instance id="{baa4c453-a2dc-4881-98cc-a4e1a3c7cea2}" classInstanceId="{EC889225-416A-4F73-B8D1-2A42B37AF43E}">
					<!-- Date Prompt: To Moment -->
					<translations>
						<translation relationshipInstanceId="{7FB5D234-042E-45CB-B11D-AD72F8D45BD3}">
							<translationValues>
								<translationValue languageInstanceId="&IDI_Language_English;" value="To Moment" />
							</translationValues>
						</translation>
					</translations>
				</instance>
				<instance id="{8d83272d-0bc6-4751-ba4d-980be75da4ba}" classInstanceId="{EC889225-416A-4F73-B8D1-2A42B37AF43E}">
					<!-- Instance Prompt: Task -->
					<translations>
						<translation relationshipInstanceId="{7FB5D234-042E-45CB-B11D-AD72F8D45BD3}">
							<translationValues>
								<translationValue languageInstanceId="&IDI_Language_English;" value="Task" />
							</translationValues>
						</translation>
					</translations>
					<relationships>
						<relationship relationshipInstanceId="{D5BD754B-F401-4FD8-A707-82684E7E25F0}">
							<!-- Instance Prompt.has valid Class -->
							<targetInstances>
								<instanceReference instanceId="{D4F2564B-2D11-4A5C-8AA9-AF52D4EACC13}" />
							</targetInstances>
						</relationship>
					</relationships>
				</instance>
				<instance id="{1f4d6764-3b94-4926-bd32-fe00cd8acadb}" classInstanceId="{EC889225-416A-4F73-B8D1-2A42B37AF43E}">
					<!-- Prompt: Instance that Changed -->
					<translations>
						<translation relationshipInstanceId="{7FB5D234-042E-45CB-B11D-AD72F8D45BD3}">
							<translationValues>
								<translationValue languageInstanceId="&IDI_Language_English;" value="Instance that Changed" />
							</translationValues>
						</translation>
					</translations>
					<relationships>
						<relationship relationshipInstanceId="{922CCB05-61EA-441D-96E0-63D58231D202}">
							<!-- Prompt.has Report Field -->
							<targetInstances>
								<instanceReference instanceId="{fc4a4f16-d17b-4412-bfa8-fba10fd5591e}" />
							</targetInstances>
						</relationship>
						<relationship relationshipInstanceId="{D5BD754B-F401-4FD8-A707-82684E7E25F0}">
							<!-- Instance Prompt.has valid Class -->
							<targetInstances>
								<instanceReference instanceId="&IDC_ReportObject;" />
							</targetInstances>
						</relationship>
					</relationships>
				</instance>
				
				
				<instance id="{98a08289-276d-4218-a908-af91222aef69}" classInstanceId="{EC889225-416A-4F73-B8D1-2A42B37AF43E}">
					<!-- Prompt: User -->
					<translations>
						<translation relationshipInstanceId="{7FB5D234-042E-45CB-B11D-AD72F8D45BD3}">
							<translationValues>
								<translationValue languageInstanceId="&IDI_Language_English;" value="System Account" />
							</translationValues>
						</translation>
					</translations>
					<relationships>
						<relationship relationshipInstanceId="{922CCB05-61EA-441D-96E0-63D58231D202}">
							<!-- Prompt.has Report Field -->
							<targetInstances>
								<instanceReference instanceId="{2cc9a424-fb37-40b4-81fb-12d5b8aac9d5}" />
							</targetInstances>
						</relationship>
					</relationships>
				</instance>
				
				<instance id="{51e08318-ad24-44c0-be40-1a48408ad5ec}" classInstanceId="&IDC_ReturnInstanceSetMethodBinding;">
					<!-- Return Instance Set Method Binding: return all instances where Class instance = 1$1 (Class) [rsmb] -->
					<translations>
						<translation relationshipInstanceId="{940EBFDB-B064-48D7-A55B-873947F4D19A}">
							<!-- Method Binding.has title Translation -->
							<translationValues>
								<translationValue languageInstanceId="&IDI_Language_English;" value="return all instances where Class instance = (Audit Line)" />
							</translationValues>
						</translation>
					</translations>
					<relationships>
						<relationship relationshipInstanceId="{EE7A3049-8E09-410C-84CB-C2C0D652CF40}">
							<!-- Return Instance Set Method Binding.has source Class -->
							<targetInstances>
								<instanceReference instanceId="&IDC_AuditLine;" />
							</targetInstances>
						</relationship>
					</relationships>
				</instance>
				
				<instance id="{23e09ed9-31e7-4ca6-bba9-70c99059433f}" classInstanceId="&IDC_SelectFromInstanceSetMethod;">
					<!-- Select Instance Set Method -->
					<attributeValues>
						<attributeValue attributeInstanceId="&IDA_Verb;" value="get" />
					</attributeValues>
					<translations>
						<translation relationshipInstanceId="{52B65829-4A3F-44FB-BEE8-D9A240F1E9C9}">
							<translationValues>
								<translationValue languageInstanceId="&IDI_Language_English;" value="all instances for Class parm" />
							</translationValues>
						</translation>
					</translations>
					<relationships>
						<relationship relationshipInstanceId="&IDR_Method__has__Method_Binding;">
							<!-- Method.has Method Binding return instance set method binding [rsmb] -->
							<targetInstances>
								<instanceReference instanceId="{51e08318-ad24-44c0-be40-1a48408ad5ec}" />
							</targetInstances>
						</relationship>
					</relationships>
				</instance>
				
				<instance id="{50ce227b-804f-4f66-9431-79b2904e5ca8}" classInstanceId="{C46FA477-1F9F-4C5E-A232-8BB3CB70B97D}">
					<!-- Report Data Source: Audit Lines -->
					<translations>
						<translation relationshipInstanceId="{0B698B22-1E66-46E2-B152-1259333091F2}">
							<!-- Report Data Source.has title Translation -->
							<translationValues>
								<translationValue languageInstanceId="&IDI_Language_English;" value="Audit Lines" />
							</translationValues>
						</translation>
						<translation relationshipInstanceId="{dd0a60fd-7b08-4a2d-b250-c918487e6c29}">
							<!-- Report Data Source.has description Translation -->
							<translationValues>
								<translationValue languageInstanceId="&IDI_Language_English;" value="Accesses the Audit Line as its primary object and returns one row per audit line. Does not contain any built-in prompts." />
							</translationValues>
						</translation>
					</translations>
					<relationships>
						<relationship relationshipInstanceId="{2D5CB496-5839-46A0-9B94-30D4E2227B56}">
							<!-- Report Data Source.has source Method -->
							<targetInstances>
								<instanceReference instanceId="{23e09ed9-31e7-4ca6-bba9-70c99059433f}" />
							</targetInstances>
						</relationship>
					</relationships>
				</instance>
				
				
				<instance id="{de483ecd-2973-4b49-80df-bfdc6a92adb9}" classInstanceId="&IDC_StandardReport;">
					<!-- Standard Report: View Audit Trail -->
					<translations>
						<translation relationshipInstanceId="{DF93EFB0-8B5E-49E7-8BC0-553F9E7602F9}">
							<translationValues> 
								<translationValue languageInstanceId="&IDI_Language_English;" value="View User or Task or Object Audit Trail" />
							</translationValues>
						</translation>
						<translation relationshipInstanceId="{D5AA18A7-7ACD-4792-B039-6C620A151BAD}">
							<!-- Report.has instructions TTC -->
							<translationValues>
								<translationValue languageInstanceId="&IDI_Language_English;" value="View audit trail for system objects" />
							</translationValues>
						</translation>
					</translations>
					<relationships>
						<relationship relationshipInstanceId="{1DE7B484-F9E3-476A-A9D3-7D2A86B55845}">
							<!-- Report.has Report Data Source -->
							<targetInstances>
								<instanceReference instanceId="{50ce227b-804f-4f66-9431-79b2904e5ca8}" />
							</targetInstances>
						</relationship>
						<relationship relationshipInstanceId="{5D112697-303F-419F-886F-3F09F0670B07}">
							<!-- Report.has Prompt -->
							<targetInstances>
								<!-- From Moment -->
								<instanceReference instanceId="{eae88bb1-a6b0-45d7-bbc2-6c1b34b88f4c}" />
								<!-- To Moment -->
								<instanceReference instanceId="{baa4c453-a2dc-4881-98cc-a4e1a3c7cea2}" />
								<!-- System Account -->
								<instanceReference instanceId="{98a08289-276d-4218-a908-af91222aef69}" />
								<!-- Task -->
								<instanceReference instanceId="{8d83272d-0bc6-4751-ba4d-980be75da4ba}" />
								<!-- Report Object -->
								<instanceReference instanceId="{1f4d6764-3b94-4926-bd32-fe00cd8acadb}" />
							</targetInstances>
						</relationship>
					</relationships>
				</instance>
			</instances>
		</library>
	</libraries>
</mocha>
