Compare commits

..

2 Commits

8 changed files with 132 additions and 5 deletions

View File

@ -42,6 +42,8 @@
- IDA_EvaluateWorkSet: '{62c28f9e-5ce8-4ce5-8a56-1e80f1af7f6a}'
- IDA_Editable: '{957fd8b3-fdc4-4f35-87d6-db1c0682f53c}'
- IDA_Static: '{9A3A0719-64C2-484F-A55E-22CD4597D9FD}'
- IDA_StarS: '{fe56aed9-4a6a-451d-ba88-1c2b43a37a4e}'
- IDA_StarP: '{e7ae3233-3d5c-4a90-bf93-6824e9c7fd5e}'
- IDA_Final: '{adaba7c7-0f14-46c6-9f87-10be712c889f}'
- IDA_ThisInInstancesParm: '{8bd6ff6c-8e9f-4c47-b3e8-5bd8e250fa77}'
- IDA_Required: '{4061c1c4-7ec3-439b-b72d-59c7df344a76}'

View File

@ -139,10 +139,18 @@
name: 'Destination URL'
index: 108
- textAttribute: '&IDA_StarS;'
name: 'Star S'
index: 112
- textAttribute: '&IDA_EmailAddress;'
name: 'Email Address'
index: 160
- textAttribute: '&IDA_StarP;'
name: 'Star P'
index: 218
- textAttribute: '&IDA_GlobalIdentifier;'
name: 'Global Identifier'
index: 3456

View File

@ -1,3 +1,13 @@
- entityDefinitions:
- IDMB_Person_Name__get__Full_Name: '{75368890-4f3b-41d1-a8c8-74c992fe3c63}'
- IDM_Person_Name__get__Full_Name: '{24ec3d7b-52d6-4d3f-bb09-9a1567f80c7f}'
# {179d667e-299f-4931-8214-fdc32e87b064}
# {fa79e97e-a90f-4b8f-ab4e-5155e35976b6}
# {2f68f649-9522-487e-8423-7c3e197ab02d}
# {2611f7c5-c2cf-4d9c-a6da-328ad211d36b}
- library: '&IDL_MochaBaseSystem;'
instances:
- class: '&IDC_PersonName;'
@ -5,8 +15,28 @@
index: 402
customTagName: 'personName'
registerForTemplate: yes
instancesLabeledByRAMB: '&IDMB_Person_Name__get__Full_Name;'
attributes:
- instance: '&IDA_GivenName;'
customTagName: 'givenName'
- instance: '&IDA_FamilyName;'
customTagName: 'familyName'
customTagName: 'familyName'
- returnAttributeMethodBinding: '&IDMB_Person_Name__get__Full_Name;'
executesMethod: '&IDM_Person_Name__get__Full_Name;'
- buildAttributeMethod: '&IDM_Person_Name__get__Full_Name;'
forClassId: '&IDC_PersonName;'
verb: 'get'
name: 'Full Name'
accessModifierId: '&IDI_AccessModifier_Public;'
initialValue: ''
returnsAttributeId: '&IDA_Value;'
buildsWithAttributes:
- order: a
executes: '&IDMB_Person_Name__get__Given_Name;'
- order: b
executes: '&IDMB_Common_Text__get__Single_Space;'
- order: c
executes: '&IDMB_Person_Name__get__Family_Name;' #@

View File

@ -9,7 +9,7 @@
verb: 'get'
name: 'Static Qualifier or Empty String'
accessModifierId: '&IDI_AccessModifier_Public;'
returnsAttributeId: '&IDA_Static;'
returnsAttributeId: '&IDA_StarS;'
cases:
- globalIdentifier: '{07947dc8-4f1e-47ec-9fdd-d9ed2d83086f}'
trueConditions:

View File

@ -34,16 +34,20 @@
processedByPRUMethod: '{2aa20384-4132-49d3-a661-ae7d9a2e2feb}'
moduleId: '&IDI_Module_MochaBaseSystem_UI_UIExamples;'
attributes:
- instance: '&IDA_Name;'
customTagName: 'name'
- instance: '{1a907d6e-b3fd-4f8e-a170-550aeb2faea5}' # test with maxlength 20
customTagName: 'twml'
- instance: '{d53d7283-92a2-4a62-b8f2-cf0a0b975634}' # req field test
customTagName: 'rqft'
- ettc: '{98e038eb-ad55-4259-a4c5-8e82c221270c}'
name: 'Element Test Line Item 1'
twml: 'hi world'
rqft: 'test test'
- ettc: '{d1a0e1d2-e380-4056-8c4f-f893c554527f}'
name: 'Line Item 2 for Element Tests'
twml: 'second ETTC test'
rqft: 'another value for testing required'

View File

@ -0,0 +1,66 @@
# Copyright (C) 2025 Michael Becker <alcexhim@gmail.com>
#
# This file is part of mocha-docker.
#
# mocha-docker 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.
#
# mocha-docker 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 mocha-docker. If not, see <https://www.gnu.org/licenses/>.
- entityDefinitions:
- IDI_Task_Relationship_Create: '{a0f94dac-72e2-47cf-8a06-24b629160118}'
- IDE_Relationship_Create: '{d3b9a84a-f424-43a7-bad7-79bd87342967}'
- IDM_Relationship_Create_CT: '{69d7cfcb-add9-433a-aae0-7274ed3ec4f1}'
- IDM_Relationship_Create_PRU: '{4737a39e-50f4-4e45-9b91-251856e3c983}'
- IDMB_Relationship_Create_Final: '{9e9a593d-21c7-4b1d-b690-d7f218f4bd36}'
- IDM_Relationship_Create_Final: '{adff8354-22b3-4952-86a8-9780c7d2cc2d}'
- library: '&IDL_MochaBaseSystem;'
instances:
- sequenceTask: '&IDI_Task_Relationship_Create;'
name: 'Create Relationship'
initiatingElement: '&IDE_Relationship_Create;'
taskCategory: '&IDI_TaskCategory_Relationship;'
- element: '&IDE_Relationship_Create;'
name: 'Create Relationship'
elementContents:
- globalIdentifier: '{9d16cbd4-23a5-428b-8f00-9daa8f5d3e8d}'
defaultDataType: '&IDC_Relationship;'
label: 'Relationship'
displayOptions:
- instance: '&IDI_DisplayOption_NotEnterable;'
- instance: '&IDI_DisplayOption_DoNotShow;'
- globalIdentifier: '{cf2558ee-9bb9-4992-92db-73f02915950d}'
defaultDataType: '&IDE_Relationship_Definition;'
displayOptions:
- instance: '&IDI_DisplayOption_Singular;'
- instance: '&IDI_DisplayOption_ShowSubelementsVertically;'
processedByCTMethod: '&IDM_Relationship_Create_CT;'
processedByPRUMethod: '&IDM_Relationship_Create_PRU;'
- controlTransactionMethod: '&IDM_Relationship_Create_CT;'
forClassId: '&IDC_Relationship;'
verb: ''
name: 'Create Relationship'
buildsResponseWithBRMB:
- instance: '&IDMB_Relationship_Create_Final;'
- buildResponseMethodBinding: '&IDMB_Relationship_Create_Final;'
executesMethod: '&IDM_Relationship_Create_Final;'
- buildUIResponseMethod: '&IDM_Relationship_Create_Final;'
# usesExecutableReturningElement: '&IDE_BuildAttributeMethod_View;'
targetUrl: '~/d/home.htmld'
# targetUrlAttributeId: '&IDA_ReferralURL;'
# FIXME!: this should trigger a write user session, then redirect to home page

View File

@ -0,0 +1,17 @@
# Copyright (C) 2025 Michael Becker <alcexhim@gmail.com>
#
# This file is part of mocha-docker.
#
# mocha-docker 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.
#
# mocha-docker 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 mocha-docker. If not, see <https://www.gnu.org/licenses/>.

View File

@ -63,9 +63,9 @@
- globalIdentifier: '{10c99202-8661-4739-8bfd-316228a1f47d}'
defaultDataType: '&IDR_Relationship__has_destination__Class;'
label: 'Destination Class'
- globalIdentifier: '{4bc7ee05-32e2-44b8-b01f-7caf3031974f}'
defaultDataType: '&IDR_Relationship__has_sibling__Relationship;'
label: 'Sibling Relationship'
# - globalIdentifier: '{4bc7ee05-32e2-44b8-b01f-7caf3031974f}'
# defaultDataType: '&IDR_Relationship__has_sibling__Relationship;'
# label: 'Sibling Relationship'
- globalIdentifier: '{5808a175-2451-4549-865a-281dae0951b8}'
defaultDataType: '&IDA_Singular;'
label: 'Singular'