@ind-rcg/modeler-sfdx-cli-plugin 246.1042.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +37 -0
- package/README.md +756 -0
- package/lib/commands/modeler/workspace/add.js +1 -0
- package/lib/commands/modeler/workspace/build.js +1 -0
- package/lib/commands/modeler/workspace/cleanup.js +1 -0
- package/lib/commands/modeler/workspace/create.js +1 -0
- package/lib/commands/modeler/workspace/package.js +1 -0
- package/lib/commands/modeler/workspace/refreshLocale.js +1 -0
- package/lib/commands/modeler/workspace/server/start.js +1 -0
- package/lib/commands/modeler/workspace/upgrade.js +1 -0
- package/lib/commands/modeler/workspace/utils/base64encode.js +1 -0
- package/lib/commands/modeler/workspace/utils/generateManifest.js +1 -0
- package/lib/commands/modeler/workspace/utils/migrateContracts.js +1 -0
- package/lib/commands/modeler/workspace/validate.js +1 -0
- package/lib/constants.js +1 -0
- package/lib/hooks/init/updateCheck.js +1 -0
- package/lib/model/buildStatus.js +1 -0
- package/lib/model/workspace.js +1 -0
- package/lib/model/workspaceCommand.js +1 -0
- package/lib/shared/commandBuilder.js +1 -0
- package/lib/shared/commandExecutor.js +1 -0
- package/lib/shared/commandOutput.js +1 -0
- package/lib/types/config.js +1 -0
- package/lib/types/errors.js +1 -0
- package/lib/types/messages.js +1 -0
- package/lib/types/package.js +1 -0
- package/lib/types/results.js +1 -0
- package/lib/utils/componentHelper.js +1 -0
- package/lib/utils/errorHelper.js +1 -0
- package/lib/utils/fsHelper.js +1 -0
- package/lib/utils/generateManifestHelper.js +1 -0
- package/lib/utils/messageHelper.js +1 -0
- package/lib/utils/packageHelper.js +1 -0
- package/lib/utils/serverHelper.js +1 -0
- package/lib/utils/templateEngine.js +1 -0
- package/lib/utils/templateHelper.js +1 -0
- package/lib/utils/updateChecker.js +1 -0
- package/lib/utils/validationHelper.js +1 -0
- package/messages/modeler-workspace-add.md +45 -0
- package/messages/modeler-workspace-build.md +29 -0
- package/messages/modeler-workspace-cleanup.md +17 -0
- package/messages/modeler-workspace-create.md +21 -0
- package/messages/modeler-workspace-package.md +21 -0
- package/messages/modeler-workspace-refresh-locale.md +27 -0
- package/messages/modeler-workspace-server-start.md +37 -0
- package/messages/modeler-workspace-upgrade.md +21 -0
- package/messages/modeler-workspace-utils-base64encode.md +25 -0
- package/messages/modeler-workspace-utils-generateManifest.md +15 -0
- package/messages/modeler-workspace-utils-migrateContracts.md +23 -0
- package/messages/modeler-workspace-validate.md +29 -0
- package/messages/modeler-workspace.md +19 -0
- package/oclif.manifest.json +429 -0
- package/package.json +108 -0
- package/templates/.gitignore.tmp +4 -0
- package/templates/README.md.tmp +77 -0
- package/templates/contractTemplates/#ModuleName#/BO/README.md +1 -0
- package/templates/contractTemplates/#ModuleName#/DS/README.md +1 -0
- package/templates/contractTemplates/#ModuleName#/PL/README.md +1 -0
- package/templates/contractTemplates/#ModuleName#/PR/README.md +1 -0
- package/templates/contractTemplates/#ModuleName#/TB/README.md +1 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobject/Bo${NAME}/Bo${NAME}.businessobject.xml +22 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobject/Bo${NAME}/Mv2/CreateAsync/Bo${NAME}.AfterCreateAsync.bl.js +54 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobject/Bo${NAME}/Mv2/CreateAsync/Bo${NAME}.BeforeCreateAsync.bl.js +56 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobject/Bo${NAME}/Mv2/DoValidateAsync/Bo${NAME}.AfterDoValidateAsync.bl.js +57 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobject/Bo${NAME}/Mv2/DoValidateAsync/Bo${NAME}.BeforeDoValidateAsync.bl.js +56 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobject/Bo${NAME}/Mv2/Initialize/Bo${NAME}.AfterInitialize.bl.js +54 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobject/Bo${NAME}/Mv2/Initialize/Bo${NAME}.BeforeInitialize.bl.js +54 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobject/Bo${NAME}/Mv2/LoadAsync/Bo${NAME}.AfterLoadAsync.bl.js +57 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobject/Bo${NAME}/Mv2/LoadAsync/Bo${NAME}.BeforeLoadAsync.bl.js +56 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobject/Bo${NAME}/Mv2/SaveAsync/Bo${NAME}.AfterSaveAsync.bl.js +57 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobject/Bo${NAME}/Mv2/SaveAsync/Bo${NAME}.BeforeSaveAsync.bl.js +56 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobject/BusinessObject.md +186 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobject/snippets/BusinessObjectListObjectsListObjectEventsSnipp.xml +3 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobject/snippets/BusinessObjectListObjectsListObjectSnipp.xml +1 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobject/snippets/BusinessObjectNestedObjectsNestedObjectSnipp.xml +1 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobject/snippets/BusinessObjectObjectLookupsObjectLookupEventsSnipp.xml +3 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobject/snippets/BusinessObjectObjectLookupsObjectLookupSnipp.xml +1 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobject/snippets/BusinessObjectSimplePropertiesSimplePropertyEventsSnipp.xml +3 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobject/snippets/BusinessObjectSimplePropertiesSimplePropertySnipp.xml +1 -0
- package/templates/contractTemplates/BO_BusinessObject/businessobjecthelper/snippets/BusinessObjectHelperSimplePropertiesSimplePropertySnipp.xml +1 -0
- package/templates/contractTemplates/BO_BusinessObject/validationmessages/ValidationMessage.md +38 -0
- package/templates/contractTemplates/BO_BusinessObject/validationmessages/snippets/ValidationMessagesValidationMessageSnipp.xml +1 -0
- package/templates/contractTemplates/DS_DataSource/DataSource.md +319 -0
- package/templates/contractTemplates/DS_DataSource/Ds${NAME}_sf.datasource.xml +11 -0
- package/templates/contractTemplates/DS_DataSource/snippets/DataSourceAttributesAttributeSnipp.xml +1 -0
- package/templates/contractTemplates/DS_DataSource/snippets/DataSourceAttributesDerivedAttributeSnipp.xml +1 -0
- package/templates/contractTemplates/DS_DataSource/snippets/DataSourceEntitiesEntityJoinSimpleJoinConditionAttributeSnipp.xml +1 -0
- package/templates/contractTemplates/DS_DataSource/snippets/DataSourceEntitiesEntityJoinSimpleJoinConditionLiteralSnipp.xml +1 -0
- package/templates/contractTemplates/DS_DataSource/snippets/DataSourceEntitiesEntitySnipp.xml +1 -0
- package/templates/contractTemplates/ExternalFiles/#Name#.externalfile.xml +6 -0
- package/templates/contractTemplates/LO_ListObject/Lo${NAME}/Li${NAME}.listitem.xml +5 -0
- package/templates/contractTemplates/LO_ListObject/Lo${NAME}/ListItem.md +114 -0
- package/templates/contractTemplates/LO_ListObject/Lo${NAME}/ListObject.md +354 -0
- package/templates/contractTemplates/LO_ListObject/Lo${NAME}/Lo${NAME}.listobject.xml +12 -0
- package/templates/contractTemplates/LO_ListObject/Lo${NAME}/Mv2/DoValidateAsync/Lo${NAME}.AfterDoValidateAsync.bl.js +57 -0
- package/templates/contractTemplates/LO_ListObject/Lo${NAME}/Mv2/DoValidateAsync/Lo${NAME}.BeforeDoValidateAsync.bl.js +56 -0
- package/templates/contractTemplates/LO_ListObject/Lo${NAME}/Mv2/LoadAsync/Lo${NAME}.AfterLoadAsync.bl.js +57 -0
- package/templates/contractTemplates/LO_ListObject/Lo${NAME}/Mv2/LoadAsync/Lo${NAME}.BeforeLoadAsync.bl.js +56 -0
- package/templates/contractTemplates/LO_ListObject/Lo${NAME}/Mv2/SaveAsync/Lo${NAME}.AfterSaveAsync.bl.js +57 -0
- package/templates/contractTemplates/LO_ListObject/Lo${NAME}/Mv2/SaveAsync/Lo${NAME}.BeforeSaveAsync.bl.js +56 -0
- package/templates/contractTemplates/LO_ListObject/snippets/ListItemSimplePropertiesSimplepropertySnipp.xml +1 -0
- package/templates/contractTemplates/LU_LookupObject/Lu${NAME}/LookupObject.md +97 -0
- package/templates/contractTemplates/LU_LookupObject/Lu${NAME}/Lu${NAME}.lookupobject.xml +12 -0
- package/templates/contractTemplates/LU_LookupObject/Lu${NAME}/Mv2/LoadAsync/Lu${NAME}.AfterLoadAsync.bl.js +57 -0
- package/templates/contractTemplates/LU_LookupObject/Lu${NAME}/Mv2/LoadAsync/Lu${NAME}.BeforeLoadAsync.bl.js +56 -0
- package/templates/contractTemplates/LU_LookupObject/snippets/LookupObjectSimplePropertiesSimplePropertySnipp.xml +1 -0
- package/templates/contractTemplates/PL_PrintLayout/#Name#PDF/#Name#PDF.printlayoutv2.xml +4 -0
- package/templates/contractTemplates/PR_Process_&_UI/#ModuleName#_#Name#/#ModuleName#_#Name#.userinterface.xml +4 -0
- package/templates/contractTemplates/PR_Process_&_UI/#ModuleName#_#Name#/#ModuleName#_#Name#Process.processflow.xml +12 -0
- package/templates/contractTemplates/PR_Process_&_UI/Process.md +790 -0
- package/templates/contractTemplates/PR_Process_&_UI/UserInterface.md +1545 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/Process/ProcessBodyActionsActionConfirmSnipp.xml +6 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/Process/ProcessBodyActionsActionCreateSnipp.xml +7 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/Process/ProcessBodyActionsActionDecisionSnipp.xml +5 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/Process/ProcessBodyActionsActionEndSnipp.xml +5 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/Process/ProcessBodyActionsActionLoadSnipp.xml +7 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/Process/ProcessBodyActionsActionLogicSnipp.xml +7 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/Process/ProcessBodyActionsActionMasterDetailSnipp.xml +24 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/Process/ProcessBodyActionsActionNavigationSnipp.xml +8 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/Process/ProcessBodyActionsActionPrintSnipp.xml +6 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/Process/ProcessBodyActionsActionPrintV2Snipp.xml +6 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/Process/ProcessBodyActionsActionProcessSnipp.xml +9 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/Process/ProcessBodyActionsActionValidationSnipp.xml +6 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/Process/ProcessBodyActionsActionViewSnipp.xml +6 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/Process/ProcessEntryEntryActionsActionCreateSnipp.xml +6 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/Process/ProcessEntryEntryActionsActionLoadSnipp.xml +6 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/Process/ProcessEntryEntryActionsActionLogicSnipp.xml +6 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Attachment/AttachmentFolderInfoSectionSnipp.xml +6 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Attachment/AttachmentFolderSnipp.xml +24 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Banner/BannerFilterSnipp.xml +19 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Banner/Banner_WithFilterSnipp.xml +25 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Banner/Banner_WithoutFilterSnipp.xml +6 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BindingList/BindingsList_DecisionsSnipp.xml +9 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BindingList/BindingsList_GroupsSnipp.xml +11 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BindingList/BindingsList_ResultsSnipp.xml +13 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/BreadCrumbControlEventsSnipp.xml +6 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/BreadCrumbControlHierarchyBindingsBindingAddItemSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/BreadCrumbControlHierarchyBindingsBindingCategoriesSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/BreadCrumbControlHierarchyBindingsBindingShowCategorySnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/BreadCrumbControlHierarchyDataSourcesSnipp.xml +3 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/BreadCrumbControlItemsBindingsBindingButtonSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/BreadCrumbControlItemsBindingsBindingComboSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/BreadCrumbControlItemsBindingsBindingDateSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/BreadCrumbControlItemsBindingsBindingDecimalSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/BreadCrumbControlItemsBindingsBindingDynamicSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/BreadCrumbControlItemsBindingsBindingImageSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/BreadCrumbControlItemsBindingsBindingStepperSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/BreadCrumbControlItemsBindingsBindingStepper_CorrelationIdSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/BreadCrumbControlItemsBindingsBindingTextSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/BreadCrumbControlItemsBindingsResourceImageSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/BreadCrumbControlItemsBindingsResourceLabelSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/BreadCrumbControlItemsContextMenuSnipp.xml +13 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/BreadCrumbControlSearchAttributesSnipp.xml +3 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/BreadCrumbControlSnipp.xml +22 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/BreadCrumbControl/MultiSelectionBreadCrumbControlSnipp.xml +23 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Calendar/CalendarControlEventsSnipp.xml +11 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Calendar/CalendarControlItemsBindingsBindingDateSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Calendar/CalendarControlItemsBindingsBindingDecimalSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Calendar/CalendarControlItemsBindingsBindingImageSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Calendar/CalendarControlItemsBindingsBindingLabelSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Calendar/CalendarControlItemsBindingsBindingTextSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Calendar/CalendarControlSettingsSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Calendar/CalendarControlSnipp.xml +8 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/CheckBox/CheckBoxEventsSnipp.xml +3 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/CheckBox/CheckBoxSnipp.xml +6 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Cockpit/CockpitSectionsSnipp.xml +7 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/DataImportWizard/DataImportWizardSnipp.xml +12 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/DatePicker/DatePickerFieldSnipp.xml +6 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/EmbededList/EmbeddedListSnipp.xml +8 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/EnhanceDecisionList/EnhancedDecisionListSnipp.xml +52 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/FastEntry/FastDataEntryGridSnipp.xml +69 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/GoogleMaps/GoogleMapDetailsSnipp.xml +20 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/GoogleMaps/GoogleMapSnipp.xml +7 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/GroupElement/GroupElementSnipp.xml +5 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/GroupedButtonList/GroupedButtonListEventsSnipp.xml +5 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/GroupedButtonList/GroupedButtonListFooterSnipp.xml +8 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/GroupedButtonList/GroupedButtonListSnipp.xml +8 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/GroupedList/GroupedListEventsSnipp.xml +7 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/GroupedList/GroupedListSnipp.xml +5 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/GroupedList/MultiSelectionGroupedListEventsSnipp.xml +7 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/GroupedList/MultiSelectionGroupedListSnipp.xml +6 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/ImageButton/ImageButtonSnipp.xml +10 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/ImageSelector/ImageSelectorSnipp.xml +16 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/InputArea/InputAreaMultiLineSnipp.xml +6 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/InputArea/InputAreaSnipp.xml +6 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/ItemListLayout/ItemListLayout_ComplexSnipp.xml +13 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/ItemListLayout/ItemListLayout_GridSnipp.xml +10 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/ItemListLayout/ItemListLayout_TwoRowsSnipp.xml +8 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/LinkBar/LinkBarSnipp.xml +12 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Lookup/LookupEventSnipp.xml +3 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Lookup/LookupSnipp.xml +6 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/MediaControl/MediaControlSnipp.xml +7 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/MediaListControl/MediaListControlBindingsBindingDescriptionSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/MediaListControl/MediaListControlBindingsBindingIsTaggedSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/MediaListControl/MediaListControlBindingsBindingMediaPathSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/MediaListControl/MediaListControlBindingsBindingTypeSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/MediaListControl/MediaListControlEventsSnipp.xml +4 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/MediaListControl/MediaListControlSnipp.xml +8 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Menu/LongPressMenuSnipp.xml +8 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Menu/MenuItemSnipp.xml +9 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Merger/MergerOneInputControlTwoButtonsMaxSnipp.xml +2 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Merger/MergerTwoInputControlsCombinedSnipp.xml +2 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Merger/MergerTwoInputControlsNoneSnipp.xml +2 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Merger/MergerTwoInputControlsOwnSnipp.xml +5 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/NoDataMessageSnipp.xml +9 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Page/MasterDetail/Page_MasterDetail_WithDetailGroupsSnipp.xml +43 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Page/MasterDetail/Page_MasterDetail_WithDetailListSnipp.xml +44 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Page/MasterDetail/Page_MasterDetail_WithDetailTabsSnipp.xml +61 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Page/MasterDetail/Page_MasterDetail_WithExtendedDetailSnipp.xml +44 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Page/SingleSection/Page_SingleSectionScreens_GroupedElementsSnipp.xml +33 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Page/SingleSection/Page_SingleSectionScreens_ListSnipp.xml +41 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Page/SingleSection/Page_SingleSectionScreens_TabSnipp.xml +39 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Page/SingleSection/Page_SingleSectionScreens_WizardSnipp.xml +34 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Page/SplitScreen/Page_SplitScreenSnipp.xml +27 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/SelectionBox/SelectionBoxBindingSnipp.xml +13 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/SelectionBox/SelectionBoxEventsSnipp.xml +4 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/SelectionBox/SelectionBoxToggleSnipp.xml +13 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/SignatureControl/SignatureControlBindingsBindingEditableParametersSnipp.xml +3 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/SignatureControl/SignatureControlBindingsBindingEditableSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/SignatureControl/SignatureControlBindingsBindingVisibleParametersSnipp.xml +3 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/SignatureControl/SignatureControlBindingsBindingVisibleSnipp.xml +1 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/SignatureControl/SignatureControlEditabilityRolesSnipp.xml +3 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/SignatureControl/SignatureControlSnipp.xml +6 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/SignatureControl/SignatureControlVisibilityRolesSnipp.xml +3 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/Stepper/StepperSnipp.xml +7 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/TextBar/TextBarSnipp.xml +7 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/ThemeSelection/ThemeSelectionSnipp.xml +5 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/TimePicker/TimePickerFieldSnipp.xml +6 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/UserWelcomeSnipp.xml +24 -0
- package/templates/contractTemplates/PR_Process_&_UI/snippets/UI/VisitDetailsSnipp.xml +21 -0
- package/templates/contractTemplates/TB_Table/#Name#_T.temptable.xml +11 -0
- package/templates/contractTemplates/TB_Table/snippets/#Name#.dbtable.xml +10 -0
- package/templates/contractTemplates/TB_Table/snippets/dbtable/DBTablecolumnscolumnSnipp.xml +1 -0
- package/templates/contractTemplates/TB_Table/snippets/dbtable/DBTableindexesindexSnipp.xml +3 -0
- package/templates/contractTemplates/TB_Table/snippets/temptable/TempTableColumnsColumnIsDeletedSnipp.xml +1 -0
- package/templates/contractTemplates/TB_Table/snippets/temptable/TempTableColumnsColumnSnipp.xml +1 -0
- package/templates/contractTemplates/TB_Table/snippets/temptable/TempTableindexesindexSnipp.xml +3 -0
- package/templates/contractTemplates/UI_Plugins/#Name#UiPluginV2.uipluginv2.xml +16 -0
- package/templates/templateDefinitions.json +167 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
4
|
+
// IMPORTANT - DO NOT MODIFY AUTO-GENERATED CODE OR COMMENTS //
|
|
5
|
+
//Parts of this file are auto-generated and modifications to those sections will be //
|
|
6
|
+
//overwritten. You are allowed to modify: //
|
|
7
|
+
// - the tags in the jsDoc as described in the corresponding section //
|
|
8
|
+
// - the function name and its parameters //
|
|
9
|
+
// - the function body between the insertion ranges //
|
|
10
|
+
// "Add your customizing javaScript code below / above" //
|
|
11
|
+
// //
|
|
12
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Use the following jsDoc tags to describe the BL function. Setting these tags will
|
|
16
|
+
* change the runtime behavior in the mobile app. The values specified in the tags determine
|
|
17
|
+
* the name of the contract file. The filename format is “@this . @function .bl.js”.
|
|
18
|
+
* For example, LoVisit.BeforeLoadAsync.bl.js
|
|
19
|
+
* -> function: Name of the businessLogic function.
|
|
20
|
+
* -> this: The LO, BO, or LU object that this function belongs to (and it is part of the filename).
|
|
21
|
+
* -> kind: Type of object this function belongs to. Most common value is "businessobject".
|
|
22
|
+
* -> async: If declared as async then the function should return a promise.
|
|
23
|
+
* -> param: List of parameters the function accepts. Make sure the parameters match the function signature.
|
|
24
|
+
* -> namespace: Use CORE or CUSTOM. If you are a Salesforce client or an implementation partner, always use CUSTOM to enable a seamless release upgrade.
|
|
25
|
+
* -> extends: Base class of the LO, BO, and LU objects that this function belongs to.
|
|
26
|
+
* -> maxRuntime: Maximum time this function is allowed to run, takes integer value in ms. If the max time is exceeded, error is logged.
|
|
27
|
+
* -> returns: Type and variable name in which the return value is stored.
|
|
28
|
+
* @function afterLoadAsync
|
|
29
|
+
* @this Lo${NAME}
|
|
30
|
+
* @kind listobject
|
|
31
|
+
* @async
|
|
32
|
+
* @namespace ${NAMESPACE}
|
|
33
|
+
* @param {Object} result
|
|
34
|
+
* @param {Object} context
|
|
35
|
+
* @returns promise
|
|
36
|
+
*/
|
|
37
|
+
function afterLoadAsync(result, context){
|
|
38
|
+
var me = this;
|
|
39
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
40
|
+
// //
|
|
41
|
+
// Add your customizing javaScript code below. //
|
|
42
|
+
// //
|
|
43
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
var promise=when.resolve(result);
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
51
|
+
// //
|
|
52
|
+
// Add your customizing javaScript code above. //
|
|
53
|
+
// //
|
|
54
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
55
|
+
|
|
56
|
+
return promise;
|
|
57
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
4
|
+
// IMPORTANT - DO NOT MODIFY AUTO-GENERATED CODE OR COMMENTS //
|
|
5
|
+
//Parts of this file are auto-generated and modifications to those sections will be //
|
|
6
|
+
//overwritten. You are allowed to modify: //
|
|
7
|
+
// - the tags in the jsDoc as described in the corresponding section //
|
|
8
|
+
// - the function name and its parameters //
|
|
9
|
+
// - the function body between the insertion ranges //
|
|
10
|
+
// "Add your customizing javaScript code below / above" //
|
|
11
|
+
// //
|
|
12
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Use the following jsDoc tags to describe the BL function. Setting these tags will
|
|
16
|
+
* change the runtime behavior in the mobile app. The values specified in the tags determine
|
|
17
|
+
* the name of the contract file. The filename format is “@this . @function .bl.js”.
|
|
18
|
+
* For example, LoVisit.BeforeLoadAsync.bl.js
|
|
19
|
+
* -> function: Name of the businessLogic function.
|
|
20
|
+
* -> this: The LO, BO, or LU object that this function belongs to (and it is part of the filename).
|
|
21
|
+
* -> kind: Type of object this function belongs to. Most common value is "businessobject".
|
|
22
|
+
* -> async: If declared as async then the function should return a promise.
|
|
23
|
+
* -> param: List of parameters the function accepts. Make sure the parameters match the function signature.
|
|
24
|
+
* -> namespace: Use CORE or CUSTOM. If you are a Salesforce client or an implementation partner, always use CUSTOM to enable a seamless release upgrade.
|
|
25
|
+
* -> extends: Base class of the LO, BO, and LU objects that this function belongs to.
|
|
26
|
+
* -> maxRuntime: Maximum time this function is allowed to run, takes integer value in ms. If the max time is exceeded, error is logged.
|
|
27
|
+
* -> returns: Type and variable name in which the return value is stored.
|
|
28
|
+
* @function beforeLoadAsync
|
|
29
|
+
* @this Lo${NAME}
|
|
30
|
+
* @kind listobject
|
|
31
|
+
* @async
|
|
32
|
+
* @namespace ${NAMESPACE}
|
|
33
|
+
* @param {Object} context
|
|
34
|
+
* @returns promise
|
|
35
|
+
*/
|
|
36
|
+
function beforeLoadAsync(context){
|
|
37
|
+
var me = this;
|
|
38
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
39
|
+
// //
|
|
40
|
+
// Add your customizing javaScript code below. //
|
|
41
|
+
// //
|
|
42
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
var promise=when.resolve(context);
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
50
|
+
// //
|
|
51
|
+
// Add your customizing javaScript code above. //
|
|
52
|
+
// //
|
|
53
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
54
|
+
|
|
55
|
+
return promise;
|
|
56
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
4
|
+
// IMPORTANT - DO NOT MODIFY AUTO-GENERATED CODE OR COMMENTS //
|
|
5
|
+
//Parts of this file are auto-generated and modifications to those sections will be //
|
|
6
|
+
//overwritten. You are allowed to modify: //
|
|
7
|
+
// - the tags in the jsDoc as described in the corresponding section //
|
|
8
|
+
// - the function name and its parameters //
|
|
9
|
+
// - the function body between the insertion ranges //
|
|
10
|
+
// "Add your customizing javaScript code below / above" //
|
|
11
|
+
// //
|
|
12
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Use the following jsDoc tags to describe the BL function. Setting these tags will
|
|
16
|
+
* change the runtime behavior in the mobile app. The values specified in the tags determine
|
|
17
|
+
* the name of the contract file. The filename format is “@this . @function .bl.js”.
|
|
18
|
+
* For example, LoVisit.BeforeLoadAsync.bl.js
|
|
19
|
+
* -> function: Name of the businessLogic function.
|
|
20
|
+
* -> this: The LO, BO, or LU object that this function belongs to (and it is part of the filename).
|
|
21
|
+
* -> kind: Type of object this function belongs to. Most common value is "businessobject".
|
|
22
|
+
* -> async: If declared as async then the function should return a promise.
|
|
23
|
+
* -> param: List of parameters the function accepts. Make sure the parameters match the function signature.
|
|
24
|
+
* -> namespace: Use CORE or CUSTOM. If you are a Salesforce client or an implementation partner, always use CUSTOM to enable a seamless release upgrade.
|
|
25
|
+
* -> extends: Base class of the LO, BO, and LU objects that this function belongs to.
|
|
26
|
+
* -> maxRuntime: Maximum time this function is allowed to run, takes integer value in ms. If the max time is exceeded, error is logged.
|
|
27
|
+
* -> returns: Type and variable name in which the return value is stored.
|
|
28
|
+
* @function afterSaveAsync
|
|
29
|
+
* @this Lo${NAME}
|
|
30
|
+
* @kind listobject
|
|
31
|
+
* @async
|
|
32
|
+
* @namespace ${NAMESPACE}
|
|
33
|
+
* @param {Object} result
|
|
34
|
+
* @param {Object} context
|
|
35
|
+
* @returns promise
|
|
36
|
+
*/
|
|
37
|
+
function afterSaveAsync(result, context){
|
|
38
|
+
var me = this;
|
|
39
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
40
|
+
// //
|
|
41
|
+
// Add your customizing javaScript code below. //
|
|
42
|
+
// //
|
|
43
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
var promise=when.resolve(result);
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
51
|
+
// //
|
|
52
|
+
// Add your customizing javaScript code above. //
|
|
53
|
+
// //
|
|
54
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
55
|
+
|
|
56
|
+
return promise;
|
|
57
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
4
|
+
// IMPORTANT - DO NOT MODIFY AUTO-GENERATED CODE OR COMMENTS //
|
|
5
|
+
//Parts of this file are auto-generated and modifications to those sections will be //
|
|
6
|
+
//overwritten. You are allowed to modify: //
|
|
7
|
+
// - the tags in the jsDoc as described in the corresponding section //
|
|
8
|
+
// - the function name and its parameters //
|
|
9
|
+
// - the function body between the insertion ranges //
|
|
10
|
+
// "Add your customizing javaScript code below / above" //
|
|
11
|
+
// //
|
|
12
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Use the following jsDoc tags to describe the BL function. Setting these tags will
|
|
16
|
+
* change the runtime behavior in the mobile app. The values specified in the tags determine
|
|
17
|
+
* the name of the contract file. The filename format is “@this . @function .bl.js”.
|
|
18
|
+
* For example, LoVisit.BeforeLoadAsync.bl.js
|
|
19
|
+
* -> function: Name of the businessLogic function.
|
|
20
|
+
* -> this: The LO, BO, or LU object that this function belongs to (and it is part of the filename).
|
|
21
|
+
* -> kind: Type of object this function belongs to. Most common value is "businessobject".
|
|
22
|
+
* -> async: If declared as async then the function should return a promise.
|
|
23
|
+
* -> param: List of parameters the function accepts. Make sure the parameters match the function signature.
|
|
24
|
+
* -> namespace: Use CORE or CUSTOM. If you are a Salesforce client or an implementation partner, always use CUSTOM to enable a seamless release upgrade.
|
|
25
|
+
* -> extends: Base class of the LO, BO, and LU objects that this function belongs to.
|
|
26
|
+
* -> maxRuntime: Maximum time this function is allowed to run, takes integer value in ms. If the max time is exceeded, error is logged.
|
|
27
|
+
* -> returns: Type and variable name in which the return value is stored.
|
|
28
|
+
* @function beforeSaveAsync
|
|
29
|
+
* @this Lo${NAME}
|
|
30
|
+
* @kind listobject
|
|
31
|
+
* @async
|
|
32
|
+
* @namespace ${NAMESPACE}
|
|
33
|
+
* @param {Object} context
|
|
34
|
+
* @returns promise
|
|
35
|
+
*/
|
|
36
|
+
function beforeSaveAsync(context){
|
|
37
|
+
var me = this;
|
|
38
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
39
|
+
// //
|
|
40
|
+
// Add your customizing javaScript code below. //
|
|
41
|
+
// //
|
|
42
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
var promise=when.resolve(context);
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
50
|
+
// //
|
|
51
|
+
// Add your customizing javaScript code above. //
|
|
52
|
+
// //
|
|
53
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
54
|
+
|
|
55
|
+
return promise;
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<SimpleProperty name="${#Name#}" type="${#Domain#}" dataSourceProperty="${#DataSourceProperty#}" />
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# LookupObject (LU) Contract Definition
|
|
2
|
+
|
|
3
|
+
## Description
|
|
4
|
+
The Lookup Contract specifies the Lookups used in Business Objects of the Mobility Application.
|
|
5
|
+
A Lookup consists of Simple Properties and Methods.
|
|
6
|
+
|
|
7
|
+
## Contract Defintion
|
|
8
|
+
Hierarchical Definition of the Nodes, Attribtues and possible Subnodes
|
|
9
|
+
|
|
10
|
+
### Root Node (ListItem Node)
|
|
11
|
+
### Example
|
|
12
|
+
```
|
|
13
|
+
<LookupObject name="LuCustomerManagementInfo" generateLoadMethod="true" >
|
|
14
|
+
<DataSource name="DsLuProductInformation" />
|
|
15
|
+
<SimpleProperties/>
|
|
16
|
+
<Methods />
|
|
17
|
+
</LookupObject>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Properties
|
|
21
|
+
| name | Type | optional | Annotation | Validations/Checks|
|
|
22
|
+
|:---------------|:------|:---------|:----------------------------------------|:------------------|
|
|
23
|
+
|simpleEditorOnly|Boolean|yes (default='false')| Not used anymore. Was used in Web based modeler: If this attribute is set to true, the modeler prevents opening in tree editor. This might be necessary as an early adaptor of the modeler to use features of the framework before Editor support is available| none|
|
|
24
|
+
|name|String|no|Defines the name of the Lookup Object as well as the name of the JS File generated.|Name needs to be unique for all Lookups in the Model|
|
|
25
|
+
|generateLoadMethod|Boolean|yes (default='true')|Specifies if a load method should be generated for this Lookup. If Property is 'False', the customizer|designer has to care for the implementation on his own (in the beforeLoadAsync or afterLoadAsync Method)||
|
|
26
|
+
|
|
27
|
+
### Sub nodes:
|
|
28
|
+
* DataSource references to the DataSource that is specified for the Lookup
|
|
29
|
+
* SimpleProperties contains all Simple Properties of the Lookup
|
|
30
|
+
* Methods contains the methods of the Lookup
|
|
31
|
+
|
|
32
|
+
#### DataSource Node
|
|
33
|
+
Each Lookup Contract has exactly one DataSource Node. It defines the relation to the Data Source. The only Attribute of the Data Source Node is the Name of the Data Source.
|
|
34
|
+
|
|
35
|
+
#### Example
|
|
36
|
+
```
|
|
37
|
+
<DataSource name="DsLuMyBpaTEST" />
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
#### Properties
|
|
41
|
+
| name | Type | optional | Annotation | Validations/Checks|
|
|
42
|
+
|:---------------|:------|:---------|:----------------------------------------|:------------------|
|
|
43
|
+
|name|String|no|Defines the name of the DataSource|DataSource with this name must exist in the model|
|
|
44
|
+
|
|
45
|
+
#### Sub Nodes:
|
|
46
|
+
* no Sub Nodes are available
|
|
47
|
+
|
|
48
|
+
#### SimpleProperties Node
|
|
49
|
+
SimpleProperties contains a list of Simple Properties (1..N) of the Lookup. The SimpleProperties Node does not have any attributes, but it has a list of SimpleProperty SubNodes.
|
|
50
|
+
|
|
51
|
+
#### Example
|
|
52
|
+
```
|
|
53
|
+
<SimpleProperties>
|
|
54
|
+
<SimpleProperty id="true" name="pKey" type="DomPKey" dataSourceProperty="pKey" />
|
|
55
|
+
<SimpleProperty name="isManaged" type="DomBool" dataSourceProperty="isManaged" />
|
|
56
|
+
<SimpleProperty name="isSubstituted" type="DomBool" dataSourceProperty="isSubstituted" />
|
|
57
|
+
<SimpleProperty name="subMainUsrMainPKey" type="DomPKey" dataSourceProperty="subMainUsrMainPKey" />
|
|
58
|
+
<SimpleProperty name="subMainUsrName" type="DomString" dataSourceProperty="subMainUsrName" />
|
|
59
|
+
<SimpleProperty name="subValidFrom" type="DomDate" dataSourceProperty="subValidFrom" />
|
|
60
|
+
<SimpleProperty name="subValidThru" type="DomDate" dataSourceProperty="subValidThru" />
|
|
61
|
+
</SimpleProperties>
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
#### Properties
|
|
65
|
+
| name | Type | optional | Annotation | Validations/Checks|
|
|
66
|
+
|:---------------|:------|:---------|:----------------------------------------|:------------------|
|
|
67
|
+
|name|String|no|Defines the name of the Simple Property|Must be unique in the List of simple Properties, (Methods and Validations?!?)|
|
|
68
|
+
|type|Name of a Domain or JavaScript Type (Boolean, Sting, Object,...)|no|Defines the Type of the Simple Property. Important for Validations and Constistency Checks.|Must be in the List of Domain Names or in a list of reserved JS Types.|
|
|
69
|
+
|id|Boolean|yes|Maximum one simple property has ID=True|Maximum one simple property has ID=True|
|
|
70
|
+
|dataSourceProperty|String (List of DataSource Attributes of the specified DataSource)|?|In current Contracts many Simple Properties are defined without valid dataSourceProperties (Attribute exists but content not valid)|DataSourceProperty must exist in the List of Attributes of the DataSource. Types must match|
|
|
71
|
+
|nullable|Boolean|yes|ability to specify empty numbers|if true, must mach related column in dbTable contract|
|
|
72
|
+
|
|
73
|
+
#### Sub Nodes:
|
|
74
|
+
* no Sub Nodes are available
|
|
75
|
+
|
|
76
|
+
#### Methods Node
|
|
77
|
+
The Methods Node has no attributes but a list of Method Sub Nodes (0..N)
|
|
78
|
+
|
|
79
|
+
#### Example
|
|
80
|
+
```
|
|
81
|
+
<Methods>
|
|
82
|
+
<Method name="afterLoadAsync" />
|
|
83
|
+
<Method name="beforeLoadAsync" />
|
|
84
|
+
<Method name="loadAsync" />
|
|
85
|
+
</Methods>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
#### Properties
|
|
89
|
+
| name | Type | optional | Annotation | Validations/Checks|
|
|
90
|
+
|:---------------|:------|:---------|:----------------------------------------|:------------------|
|
|
91
|
+
|name|String|no|Defines the name of the Method|A Method with this name must exist in the model and this method has a relation to this Lookup|
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
#### Sub Nodes:
|
|
95
|
+
* no Sub Nodes are available
|
|
96
|
+
|
|
97
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<LookupObject name="Lu${NAME}" generateLoadMethod="true" schemaVersion="1.1">
|
|
2
|
+
<!--In case lookup does not require datasource, let name of datasource property empty-->
|
|
3
|
+
<DataSource name="${DATASOURCE_REFERENCE}" />
|
|
4
|
+
<SimpleProperties>
|
|
5
|
+
<!-- You can use LookupObjectSimplePropertiesSimplePropertySnipp.xml as template (workingFolder->templates->snippets->LU_LookupObject->snippets) for your case/-->
|
|
6
|
+
</SimpleProperties>
|
|
7
|
+
<Methods>
|
|
8
|
+
<Method name="afterLoadAsync" />
|
|
9
|
+
<Method name="beforeLoadAsync" />
|
|
10
|
+
<Method name="loadAsync" />
|
|
11
|
+
</Methods>
|
|
12
|
+
</LookupObject>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
4
|
+
// IMPORTANT - DO NOT MODIFY AUTO-GENERATED CODE OR COMMENTS //
|
|
5
|
+
//Parts of this file are auto-generated and modifications to those sections will be //
|
|
6
|
+
//overwritten. You are allowed to modify: //
|
|
7
|
+
// - the tags in the jsDoc as described in the corresponding section //
|
|
8
|
+
// - the function name and its parameters //
|
|
9
|
+
// - the function body between the insertion ranges //
|
|
10
|
+
// "Add your customizing javaScript code below / above" //
|
|
11
|
+
// //
|
|
12
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Use the following jsDoc tags to describe the BL function. Setting these tags will
|
|
16
|
+
* change the runtime behavior in the mobile app. The values specified in the tags determine
|
|
17
|
+
* the name of the contract file. The filename format is “@this . @function .bl.js”.
|
|
18
|
+
* For example, LoVisit.BeforeLoadAsync.bl.js
|
|
19
|
+
* -> function: Name of the businessLogic function.
|
|
20
|
+
* -> this: The LO, BO, or LU object that this function belongs to (and it is part of the filename).
|
|
21
|
+
* -> kind: Type of object this function belongs to. Most common value is "businessobject".
|
|
22
|
+
* -> async: If declared as async then the function should return a promise.
|
|
23
|
+
* -> param: List of parameters the function accepts. Make sure the parameters match the function signature.
|
|
24
|
+
* -> namespace: Use CORE or CUSTOM. If you are a Salesforce client or an implementation partner, always use CUSTOM to enable a seamless release upgrade.
|
|
25
|
+
* -> extends: Base class of the LO, BO, and LU objects that this function belongs to.
|
|
26
|
+
* -> maxRuntime: Maximum time this function is allowed to run, takes integer value in ms. If the max time is exceeded, error is logged.
|
|
27
|
+
* -> returns: Type and variable name in which the return value is stored.
|
|
28
|
+
* @function afterLoadAsync
|
|
29
|
+
* @this Lu${NAME}
|
|
30
|
+
* @kind lookupobject
|
|
31
|
+
* @async
|
|
32
|
+
* @namespace ${NAMESPACE}
|
|
33
|
+
* @param {Object} result
|
|
34
|
+
* @param {Object} context
|
|
35
|
+
* @returns promise
|
|
36
|
+
*/
|
|
37
|
+
function afterLoadAsync(result, context){
|
|
38
|
+
var me = this;
|
|
39
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
40
|
+
// //
|
|
41
|
+
// Add your customizing javaScript code below. //
|
|
42
|
+
// //
|
|
43
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
var promise=when.resolve(result);
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
51
|
+
// //
|
|
52
|
+
// Add your customizing javaScript code above. //
|
|
53
|
+
// //
|
|
54
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
55
|
+
|
|
56
|
+
return promise;
|
|
57
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
4
|
+
// IMPORTANT - DO NOT MODIFY AUTO-GENERATED CODE OR COMMENTS //
|
|
5
|
+
//Parts of this file are auto-generated and modifications to those sections will be //
|
|
6
|
+
//overwritten. You are allowed to modify: //
|
|
7
|
+
// - the tags in the jsDoc as described in the corresponding section //
|
|
8
|
+
// - the function name and its parameters //
|
|
9
|
+
// - the function body between the insertion ranges //
|
|
10
|
+
// "Add your customizing javaScript code below / above" //
|
|
11
|
+
// //
|
|
12
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Use the following jsDoc tags to describe the BL function. Setting these tags will
|
|
16
|
+
* change the runtime behavior in the mobile app. The values specified in the tags determine
|
|
17
|
+
* the name of the contract file. The filename format is “@this . @function .bl.js”.
|
|
18
|
+
* For example, LoVisit.BeforeLoadAsync.bl.js
|
|
19
|
+
* -> function: Name of the businessLogic function.
|
|
20
|
+
* -> this: The LO, BO, or LU object that this function belongs to (and it is part of the filename).
|
|
21
|
+
* -> kind: Type of object this function belongs to. Most common value is "businessobject".
|
|
22
|
+
* -> async: If declared as async then the function should return a promise.
|
|
23
|
+
* -> param: List of parameters the function accepts. Make sure the parameters match the function signature.
|
|
24
|
+
* -> namespace: Use CORE or CUSTOM. If you are a Salesforce client or an implementation partner, always use CUSTOM to enable a seamless release upgrade.
|
|
25
|
+
* -> extends: Base class of the LO, BO, and LU objects that this function belongs to.
|
|
26
|
+
* -> maxRuntime: Maximum time this function is allowed to run, takes integer value in ms. If the max time is exceeded, error is logged.
|
|
27
|
+
* -> returns: Type and variable name in which the return value is stored.
|
|
28
|
+
* @function beforeLoadAsync
|
|
29
|
+
* @this Lu${NAME}
|
|
30
|
+
* @kind lookupobject
|
|
31
|
+
* @async
|
|
32
|
+
* @namespace ${NAMESPACE}
|
|
33
|
+
* @param {Object} context
|
|
34
|
+
* @returns promise
|
|
35
|
+
*/
|
|
36
|
+
function beforeLoadAsync(context){
|
|
37
|
+
var me = this;
|
|
38
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
39
|
+
// //
|
|
40
|
+
// Add your customizing javaScript code below. //
|
|
41
|
+
// //
|
|
42
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
var promise=when.resolve(context);
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
50
|
+
// //
|
|
51
|
+
// Add your customizing javaScript code above. //
|
|
52
|
+
// //
|
|
53
|
+
///////////////////////////////////////////////////////////////////////////////////////////////
|
|
54
|
+
|
|
55
|
+
return promise;
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<SimpleProperty name="${#Name#}" type="${#Domain#}" dataSourceProperty="${#DataSourceProperty#}" />
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<Process name="${#ModuleName#}::${#Name#}Process" defaultAction="" schemaVersion="0.0.0.5">
|
|
2
|
+
<Entry>
|
|
3
|
+
<ProcessContext>
|
|
4
|
+
<Declarations></Declarations>
|
|
5
|
+
<Parameters></Parameters>
|
|
6
|
+
</ProcessContext>
|
|
7
|
+
<EntryActions></EntryActions>
|
|
8
|
+
</Entry>
|
|
9
|
+
<Body>
|
|
10
|
+
<Actions></Actions>
|
|
11
|
+
</Body>
|
|
12
|
+
</Process>
|