<?xml version="1.0" encoding="utf-8"?>
<!--
//
//  Edit Class.xml - XML definition for the initial Mocha `Edit Class` system task instance
//
//  Author:
//       Michael Becker <alcexhim@gmail.com>
//
//  Copyright (c) 2020 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="{70e91586-0afc-4e00-a3c4-a6b2f600d020}" classInstanceId="{0A6E2CF2-97B6-4339-B1DA-1DBBFE9806C6}">
					<relationships>
						<relationship relationshipInstanceId="{7CD62362-DDCE-4BFC-87B9-B5499B0BC141}">
							<!-- Prompt Value.has Prompt `Class Instance ID` -->
							<targetInstances>
								<instanceReference instanceId="{06210C75-9093-4B3D-ACF2-124C84E95C2A}" />
							</targetInstances>
						</relationship>
						<relationship relationshipInstanceId="{512B518E-A892-44AB-AC35-4E9DBCABFF0B}">
							<!-- Instance Prompt Value.has Instance `x509 Public Key` -->
							<targetInstances>
								<instanceReference instanceId="{d7007835-d3fe-4ee5-81ed-e9173cfb3d30}" />
							</targetInstances>
						</relationship>
					</relationships>
				</instance>
				<instance id="{7d91597f-6d4a-4761-8d19-513680e4e35e}" classInstanceId="{084A6D58-32C9-4A5F-9D2B-86C46F74E522}">
					<!-- Method Call: create instance of class `x509 Public Key` -->
					<relationships>
						<relationship relationshipInstanceId="{3D3B601B-4EF0-49F3-AF05-86CEA0F00619}">
							<!-- Method Call.has Method -->
							<targetInstances>
								<instanceReference instanceId="{4E92D64E-AC91-4ABF-8052-96366DF93996}" />
							</targetInstances>
						</relationship>
						<relationship relationshipInstanceId="{765BD0C9-117D-4D0E-88C9-2CEBD4898135}">
							<!-- Method Call.has Prompt Value -->
							<targetInstances>
								<!-- Class `x509 Public Key` for Create Instance -->
								<instanceReference instanceId="{70e91586-0afc-4e00-a3c4-a6b2f600d020}" />
							</targetInstances>
						</relationship>
					</relationships>
				</instance>
				
				<instance id="{c22ce728-beaa-4619-94bb-d6b8e14baf2a}" classInstanceId="{084A6D58-32C9-4A5F-9D2B-86C46F74E522}">
					<!-- Method Call: assign attribute `Name` to Instance parm (newly created) using Value parm (from prompt `Class Name`) -->
					<relationships>
						<relationship relationshipInstanceId="{3D3B601B-4EF0-49F3-AF05-86CEA0F00619}">
							<!-- Method Call.has Method -->
							<targetInstances>
								<instanceReference instanceId="{05BE1694-9B42-4E6C-880F-B5EE1765EE44}" />
							</targetInstances>
						</relationship>
						<relationship relationshipInstanceId="{765BD0C9-117D-4D0E-88C9-2CEBD4898135}">
							<!-- Method Call.has Prompt Value -->
							<targetInstances>
								<!-- `Target Instance for Assign Attribute` = the newly created instance from create instance method -->
								<instanceReference instanceId="{08AB6C76-7461-4F10-9131-E2B63CF404C3}" />
								<!-- `Attribute Value for Assign Attribute` = value (from prompt `Class Name`) -->
								<instanceReference instanceId="{2376fc80-02c2-42a3-8324-c51ff4e3cd2a}" />
							</targetInstances>
						</relationship>
					</relationships>
				</instance>
				<instance id="{2376fc80-02c2-42a3-8324-c51ff4e3cd2a}" classInstanceId="{056B2384-F841-4562-886B-F7AFB6D272F2}">
					<!-- Reference Prompt Value: Attribute Value for Assign Attribute :: Class Name for Create Class -->
					<relationships>
						<relationship relationshipInstanceId="{7CD62362-DDCE-4BFC-87B9-B5499B0BC141}">
							<!-- Prompt Value.has Prompt -->
							<targetInstances>
								<!-- Attribute Value for Assign Attribute -->
								<instanceReference instanceId="{73AB917D-7C1A-49F2-B278-67AED75EF7D8}" />
							</targetInstances>
						</relationship>
						<relationship relationshipInstanceId="{C9472658-9E50-48FD-BF7F-ED31A72DEF39}">
							<!-- Reference Prompt Value.has source Prompt -->e
							<targetInstances>
								<!-- Class Name for Create Class -->
								<instanceReference instanceId="{0ad49db2-5273-430c-851b-583d29e9fc94}" />
							</targetInstances>
						</relationship>
					</relationships>
				</instance>
				
				<instance id="{0ad49db2-5273-430c-851b-583d29e9fc94}" classInstanceId="{195dddd7-0b74-4498-bf61-b0549fe05cf3}">
					<!-- Text Prompt: Name -->
					<translations>
						<translation relationshipInstanceId="{7FB5D234-042E-45CB-B11D-AD72F8D45BD3}">
							<translationValues>
								<translationValue languageInstanceId="&IDI_Language_English;" value="Name" />
							</translationValues>
						</translation>
					</translations>
				</instance>
				<instance id="{ab4c2d05-564d-493d-899e-efa28fd903c8}" classInstanceId="{195dddd7-0b74-4498-bf61-b0549fe05cf3}">
					<!-- Date Prompt: Valid From -->
					<translations>
						<translation relationshipInstanceId="{7FB5D234-042E-45CB-B11D-AD72F8D45BD3}">
							<translationValues>
								<translationValue languageInstanceId="&IDI_Language_English;" value="Valid From" />
							</translationValues>
						</translation>
					</translations>
				</instance>
				<instance id="{72dc6850-df95-44e6-b7d2-c20decfd0cf8}" classInstanceId="{195dddd7-0b74-4498-bf61-b0549fe05cf3}">
					<!-- Date Prompt: Valid To -->
					<translations>
						<translation relationshipInstanceId="{7FB5D234-042E-45CB-B11D-AD72F8D45BD3}">
							<translationValues>
								<translationValue languageInstanceId="&IDI_Language_English;" value="Valid To" />
							</translationValues>
						</translation>
					</translations>
				</instance>
				<instance id="{edf31690-402a-477c-986d-09e2d73a2206}" classInstanceId="{195dddd7-0b74-4498-bf61-b0549fe05cf3}">
					<!-- Text Prompt: Certificate -->
					<translations>
						<translation relationshipInstanceId="{7FB5D234-042E-45CB-B11D-AD72F8D45BD3}">
							<translationValues>
								<translationValue languageInstanceId="&IDI_Language_English;" value="Certificate" />
							</translationValues>
						</translation>
					</translations>
				</instance>
				<instance id="{f058c667-6e85-462f-b722-c97d55d694df}" classInstanceId="{bfd07772-178c-4885-a6ce-c85076c8461c}">
					<!-- UI Task: Create X.509 Public Key -->
					<translations>
						<translation relationshipInstanceId="{D97AE03C-261F-4060-A06D-985E26FA662C}">
							<!-- UI Task.has title Translation -->
							<translationValues>
								<translationValue languageInstanceId="&IDI_Language_English;" value="Create x509 Public Key" />
							</translationValues>
						</translation>
						<translation relationshipInstanceId="{A9387898-9DC0-4006-94F1-1FB02EB3ECD7}">
							<!-- UI Task.has instructions Translation -->
							<translationValues>
								<translationValue languageInstanceId="&IDI_Language_English;" value="" />
							</translationValues>
						</translation>
					</translations>
					<relationships>
						<relationship relationshipInstanceId="{929B106F-7E3E-4D30-BB84-E450A4FED063}">
							<!-- Task.has Prompt -->
							<targetInstances>
								<!-- Name -->
								<instanceReference instanceId="{0ad49db2-5273-430c-851b-583d29e9fc94}" />
								<!-- Valid From -->
								<instanceReference instanceId="{ab4c2d05-564d-493d-899e-efa28fd903c8}" />
								<!-- Valid To -->
								<instanceReference instanceId="{72dc6850-df95-44e6-b7d2-c20decfd0cf8}" />
								<!-- Certificate -->
								<instanceReference instanceId="{edf31690-402a-477c-986d-09e2d73a2206}" />
							</targetInstances>
						</relationship>
						<relationship relationshipInstanceId="{D8C0D4D4-F8C6-4B92-A2C1-8BF16B16203D}">
							<!-- Task.executes Method Call -->
							<targetInstances>
								<!-- create instance of class `x509 Public Key` -->
								<instanceReference instanceId="{7d91597f-6d4a-4761-8d19-513680e4e35e}" />
								<!-- assign attribute `Name` to Instance parm (newly created) using Value parm (from prompt `Class Name`) -->
								<instanceReference instanceId="{c22ce728-beaa-4619-94bb-d6b8e14baf2a}" />
							</targetInstances>
						</relationship>
					</relationships>
				</instance>
			</instances>
		</library>
	</libraries>
</mocha>
