diff --git a/process/KeywordRegistry_basic/KeywordRegistry_basic.aod b/process/KeywordRegistry_basic/KeywordRegistry_basic.aod new file mode 100644 index 0000000000000000000000000000000000000000..075cdf4574dd82db7b2096fd9c339fd19588ba5b --- /dev/null +++ b/process/KeywordRegistry_basic/KeywordRegistry_basic.aod @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.1.7" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/process/1.1.7"> + <name>KeywordRegistry_basic</name> + <majorModelMode>DISTRIBUTED</majorModelMode> + <process>%aditoprj%/process/KeywordRegistry_basic/process.js</process> +</process> diff --git a/process/KeywordRegistry_basic/process.js b/process/KeywordRegistry_basic/process.js new file mode 100644 index 0000000000000000000000000000000000000000..a141d5584656b0b0c04064bf1ca47762311946ee --- /dev/null +++ b/process/KeywordRegistry_basic/process.js @@ -0,0 +1,42 @@ + +/** + * provides static functionality for a registry of keywords + * The main reason for this is a convenient usage within jdito-code (autocomplete) + * never use these registered keywords directly in an library - only within function definition that are called later + * the reason behind this is that the registry is initalized at the position of the Keyword_lib-import; + * That means, if a value of the registry is used before the import of the Keyword_lib the registry is not set + * + * Not every KeywordContainer that exists has to be listed here (e.g. dynamic created keywords) but every keyword-container-name that is used within + * JDito code should be listed here + * + * This is a very special case of an object and should not be used as a refernece for own implementations since the requirements will be different + * + * @class + * + * @example + * $KeywordRegistry.activityDirection() + */ +function $KeywordRegistry(){} + +$KeywordRegistry.attributeType = function(){return "AttributeType"}; +$KeywordRegistry.keywordAttributeType = function(){return "KeywordAttributeType"}; +$KeywordRegistry.contractPayment = function(){return "ContractPayment"}; +$KeywordRegistry.contractStatus = function(){return "ContractStatus"}; +$KeywordRegistry.contractType = function(){return "ContractType"}; +$KeywordRegistry.activityDirection = function(){return "ActivityDirection"}; +$KeywordRegistry.contactStatus = function(){return "ContactStatus"}; +$KeywordRegistry.currency = function(){return "Currency"}; +$KeywordRegistry.productGroupcode = function(){return "ProductGroupcode"}; +$KeywordRegistry.offerStatus = function(){return "OfferStatus"}; +$KeywordRegistry.organisationType = function(){return "OrganisationType"}; +$KeywordRegistry.personGender = function(){return "PersonGender"}; +$KeywordRegistry.taskStatus = function(){return "TaskStatus"}; +$KeywordRegistry.taskType = function(){return "TaskType"}; +$KeywordRegistry.productPricelist = function(){return "ProductPricelist"}; +$KeywordRegistry.quantityUnit = function(){return "QuantityUnit"}; +$KeywordRegistry.salesprojectMemberRole = function(){return "SalesprojectMemberRole"}; +$KeywordRegistry.salesprojectSource = function(){return "SalesprojectSource"}; +$KeywordRegistry.salesorderState = function(){return "SalesorderState"}; +$KeywordRegistry.salesprojectWonLost = function(){return "SalesprojectWonLost"}; +$KeywordRegistry.stockWarehouse = function(){return "StockWarehouse"}; +$KeywordRegistry.salesprojectProbability = function(){return "SalesprojectProbability"}; \ No newline at end of file diff --git a/process/Keyword_lib/process.js b/process/Keyword_lib/process.js index 9e9513540269f8029bcd9e5dbe1f28300314eec2..c11bd2e8b7494eef6697e0ee0fbeb1486ab1daa2 100644 --- a/process/Keyword_lib/process.js +++ b/process/Keyword_lib/process.js @@ -5,62 +5,6 @@ import("system.translate"); import("system.neon"); import("Sql_lib"); -/** - * provides static functionality for a registry of keywords - * The main reason for this is a convenient usage within jdito-code (autocomplete) - * never use these registered keywords directly in an library - only within function definition that are called later - * the reason behind this is that the registry is initalized at the position of the Keyword_lib-import; - * That means, if a value of the registry is used before the import of the Keyword_lib the registry is not set - * - * Not every KeywordContainer that exists has to be listed here (e.g. dynamic created keywords) but every keyword-container-name that is used within - * JDito code should be listed here - * - * This is a very special case of an object and should not be used as a refernece for own implementations since the requirements will be different - * - * @class - */ -function $KeywordRegistry(){} - -//static property -$KeywordRegistry.get = { - AttributeType: "AttributeType", - KeywordAttributeType: "KeywordAttributeType", - ContractPayment: "ContractPayment", - ContractStatus: "ContractStatus", - ContractType: "ContractType", - ActivityDirection: "ActivityDirection", - ContactStatus: "ContactStatus", - Currency: "Currency", - ProductGroupcode: "ProductGroupcode", - OfferStatus: "OfferStatus", - OrganisationType: "OrganisationType", - PersonGender: "PersonGender", - TaskStatus: "TaskStatus", - TaskType: "TaskType", - ProductPricelist: "ProductPricelist", - QuantityUnit: "QuantityUnit", - SalesprojectMemberRole: "SalesprojectMemberRole", - SalesprojectSource: "SalesprojectSource", - SalesorderState: "SalesorderState", - SalesprojectWonLost: "SalesprojectWonLost", - StockWarehouse: "StockWarehouse", - SalesprojectProbability: "SalesprojectProbability", - ActivityCategory: "ActivityCategory", - AddressType: "AddressType", - OfferProbability: "OfferProbability", - CommunicationMedium: "CommunicationMedium", - SalesprojectPricePolitics: "SalesprojectPricePolitics", - SalesprojectWeakness: "SalesprojectWeakness", - SalesprojectStrenght: "SalesprojectStrenght", - SalesprojectEstimation: "SalesprojectEstimation", - SalesprojectState: "SalesprojectState", - SalesprojectPhase: "SalesprojectPhase", - TaskPriority: "TaskPriority", - - "null": null -}; -Object.freeze($KeywordRegistry.get); - /** * provides methods for interactions with keywords *