Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.28 KB | None | 0 0
  1. # -----------------------------------------------------------------------
  2. # [y] hybris Platform
  3. #
  4. # Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
  5. #
  6. # This software is the confidential and proprietary information of SAP
  7. # ("Confidential Information"). You shall not disclose such Confidential
  8. # Information and shall use it only in accordance with the terms of the
  9. # license agreement you entered into with SAP.
  10. # -----------------------------------------------------------------------
  11.  
  12. INSERT_UPDATE Domain;code[unique=true]
  13. ;backofficeDomain
  14.  
  15. ###### VALIDATION AND DATA QUALITY ######
  16. # Following two constraints groups are also created in backoffice/resources/impex/projectdataValidation.impex
  17. # due to initialization limitation of the addons which are not respecting the required extensions
  18. INSERT_UPDATE ConstraintGroup ; id[unique = true] ; dedicatedTypes(code) ; interfaceName
  19. ; defaultBackofficeValidationGroup ; Item ; de.hybris.platform.validation.groupinterfaces.DefaultBackofficeValidationGroup
  20. ; emptyValidationGroup ; Item ; de.hybris.platform.validation.groupinterfaces.EmptyValidationGroup
  21.  
  22. # PRODUCT DATA QUALITY:
  23. $solrValueRanges = solrValueRanges(name);
  24. $solrValueRangeSet = solrValueRangeSet(name);
  25. $backofficeSFCName = Solr Config for Backoffice;
  26. $solrIndexedTypes = solrIndexedTypes(identifier);
  27. $solrServerConfig = solrServerConfig(name);
  28. $solrIndexConfig = solrIndexConfig(name);
  29. $typeCode = type(code)[default = 'Product'];
  30. $target = target[allownull = true, default = 'de.hybris.platform.core.model.product.ProductModel'];
  31. $active = active[allownull = true, default = true];
  32. $solrIndexedType = solrIndexedType(identifier)[unique = true, default = 'BackofficeProduct'];
  33.  
  34. INSERT_UPDATE SolrIndexedType ; identifier[unique=true] ; type(code)
  35. ; BackofficeProduct ; Product
  36.  
  37. INSERT_UPDATE SolrValueRangeSet ; name[unique = true] ; type ; $solrValueRanges ;
  38. ; backofficeDataQualityRanges ; double ; 0-19%,20-39%,40-59%,60-79%,80-99%,100% ;
  39.  
  40. INSERT_UPDATE SolrValueRange ; name[unique=true] ; from ; to ; $solrValueRangeSet ;
  41. ; 0-19% ; 0.0 ; 0.1999 ; backofficeDataQualityRanges ;
  42. ; 20-39% ; 0.1999 ; 0.3999 ; backofficeDataQualityRanges ;
  43. ; 40-59% ; 0.3999 ; 0.5999 ; backofficeDataQualityRanges ;
  44. ; 60-79% ; 0.5999 ; 0.7999 ; backofficeDataQualityRanges ;
  45. ; 80-99% ; 0.7999 ; 0.9999 ; backofficeDataQualityRanges ;
  46. ; 100% ; 0.9999 ; 1.0001 ; backofficeDataQualityRanges ;
  47.  
  48. INSERT_UPDATE CoverageConstraintGroup ; id[unique=true] ; dedicatedTypes(code) ; interfaceName ; coverageDomainID ;
  49. ; pcmCoreAttributesCoverageGroup ; Product ; de.hybris.platform.validation.groupinterfaces.PcmCoreAttributesCoverageGroup ; pcmCoreAttributesCoverageGroup ;
  50. ; pcmMarketingAttributesCoverageGroup ; Product ; de.hybris.platform.validation.groupinterfaces.MarketingCoreAttributesCoverageGroup ; pcmMarketingAttributesCoverageGroup ;
  51.  
  52. INSERT_UPDATE SolrIndexedProperty ; name[unique=true] ; $solrIndexedType[unique=true] ; type(code) ; facet[default=true] ; localized[default=false] ; currency[default=false] ; multiValue[default=false] ; rangeSet(name) ; fieldValueProvider ; includeInResponse[default=false] ; facetType(code)[unique=true,default='MultiSelectOr'] ; priority ;
  53. ; pcmCoreAttributesCoverageGroup ; ; double ; ; ; ; ; backofficeDataQualityRanges ; coreDataQualityValueResolver ; ; ; 400 ;
  54. ; pcmMarketingAttributesCoverageGroup ; ; double ; ; ; ; ; backofficeDataQualityRanges ; marketingDataQualityValueResolver ; ; ; 300 ;
  55.  
  56.  
  57. INSERT_UPDATE HybrisEnumValueCodeConstraint; active[allownull = true, default = true]; id[unique = true]; severity(code, itemtype(code)); message[lang = en]; target[allownull = true]; type(code); value; constraintGroups(id); qualifier;
  58. ; ; ProductApprovedHybrisEnumValueCodeConstraint ; ERROR:Severity ; The attribute value for "Approval" should be "approved". ; de.hybris.platform.core.model.product.ProductModel ; Product; approved ; pcmCoreAttributesCoverageGroup ; approvalStatus;
  59.  
  60. INSERT_UPDATE NotNullConstraint ; id[unique=true] ; constraintGroups(id)[mode=append] ; severity(code,itemtype(code)) ; $active ; $target ; $typeCode ; qualifier ; descriptor(enclosingType(code),qualifier) ; languages(isocode)[allownull=true] ;
  61. ; ProductNameNotNullConstraint ; pcmCoreAttributesCoverageGroup ; ERROR:Severity ; ; ; ; name ; Product:name ; ;
  62. ; ProductUnitNotNullConstraint ; pcmCoreAttributesCoverageGroup ; WARN:Severity ; ; ; ; unit ; Product:unit ; ;
  63. ; ProductSupercategoriesNotNullConstraint ; pcmCoreAttributesCoverageGroup ; INFO:Severity ; ; ; ; supercategories ; Product:supercategories ; ;
  64. ; ProductEurope1PricesNotNullConstraint ; pcmCoreAttributesCoverageGroup ; WARN:Severity ; ; ; ; europe1Prices ; Product:europe1Prices ; ;
  65. ; ProductPriceQuantityNotNullConstraint ; pcmCoreAttributesCoverageGroup ; WARN:Severity ; ; ; ; priceQuantity ; Product:priceQuantity ; ;
  66. ; ProductManufacturerNameNotNullConstraint ; pcmCoreAttributesCoverageGroup ; WARN:Severity ; ; ; ; manufacturerName ; Product:manufacturerName ; ;
  67. ; ProductDeliveryTimeNotNullConstraint ; pcmCoreAttributesCoverageGroup ; WARN:Severity ; ; ; ; deliveryTime ; Product:deliveryTime ; ;
  68. ; ProductThumbnailNotNullConstraint ; pcmMarketingAttributesCoverageGroup ; WARN:Severity ; ; ; ; thumbnail ; Product:thumbnail ; ;
  69. ; ProductPictureNotNullConstraint ; pcmMarketingAttributesCoverageGroup ; ERROR:Severity ; ; ; ; picture ; Product:picture ; ;
  70. ; ProductGalleryImagesNotNullConstraint ; pcmMarketingAttributesCoverageGroup ; WARN:Severity ; ; ; ; galleryImages ; Product:galleryImages ; ;
  71. ; ProductProductReferencesNotNullConstraint ; pcmMarketingAttributesCoverageGroup ; INFO:Severity ; ; ; ; productReferences ; Product:productReferences ; ;
  72. ; ProductDescriptionNotNullConstraint ; pcmMarketingAttributesCoverageGroup ; ERROR:Severity ; ; ; ; description ; Product:description ; ;
  73. ; ProductNameNotNullForAllLocalesConstraint ; pcmMarketingAttributesCoverageGroup ; WARN:Severity ; ; ; ; name ; Product:name ; en,de,es,es_CO,fr,it,ja,ko,pt,ru,zh,zh_TW,hi,id ;
  74.  
  75.  
  76. INSERT_UPDATE SizeConstraint ; id[unique=true] ; constraintGroups(id)[mode=append] ; severity(code,itemtype(code)) ; $active ; $target ; $typeCode ; qualifier ; descriptor(enclosingType(code),qualifier) ; min ; max ;
  77. ; ProductEanSizeConstraint ; pcmCoreAttributesCoverageGroup ; ERROR:Severity ; ; ; ; ean ; Product:ean ; 8 ; 13 ;
  78. ; ProductEurope1PricesSizeConstraint ; pcmCoreAttributesCoverageGroup ; WARN:Severity ; ; ; ; europe1Prices ; Product:europe1Prices ; 1 ; 2147483647 ;
  79. ; ProductSupercategoriesSizeConstraint ; pcmCoreAttributesCoverageGroup ; INFO:Severity ; ; ; ; supercategories ; Product:supercategories ; 1 ; 2147483647 ;
  80. ; ProductGalleryImagesSizeConstraint ; pcmMarketingAttributesCoverageGroup ; WARN:Severity ; ; ; ; galleryImages ; Product:galleryImages ; 1 ; 2147483647 ;
  81. ; ProductReferencesSizeConstraint ; pcmMarketingAttributesCoverageGroup ; INFO:Severity ; ; ; ; productReferences ; Product:productReferences ; 1 ; 2147483647 ;
  82.  
  83. INSERT_UPDATE NotEmptyConstraint ; id[unique=true] ; constraintGroups(id)[mode=append] ; severity(code,itemtype(code)) ; $active ; $target ; $typeCode ; qualifier ; descriptor(enclosingType(code),qualifier) ;
  84. ; ProductCodeNotEmptyConstraint ; pcmCoreAttributesCoverageGroup ; ERROR:Severity ; ; ; ; code ; Product:code ;
  85. ; ProductDescriptionNotEmptyConstraint ; pcmCoreAttributesCoverageGroup ; WARN:Severity ; ; ; ; description ; Product:description ;
  86. ; ProductEanNotEmptyConstraint ; pcmCoreAttributesCoverageGroup ; WARN:Severity ; ; ; ; ean ; Product:ean ;
  87.  
  88. INSERT_UPDATE EnumCodeConstraint ; id[unique=true] ; constraintGroups(id)[mode=append] ; severity(code,itemtype(code)) ; $active ; $target ; $typeCode ; qualifier ; descriptor(enclosingType(code),qualifier) ; code ;
  89. ; ProductApprovedConstraint ; pcmCoreAttributesCoverageGroup ; ERROR:Severity ; ; ; ; approvalStatus ; Product:approvalStatus ; approved ;
  90.  
  91.  
  92. # ^PRODUCT DATA QUALITY
  93.  
  94. #simple fields
  95. INSERT_UPDATE SolrIndexedProperty ; name[unique = true] ; $solrIndexedType ; type(code) ; localized[default = false] ; currency[default = false] ; multiValue[default = false] ; includeInResponse[default = false] ; useForSpellChecking[default = false] ;
  96. ; minOrderQuantity ; ; int ; ; ; ; ; ;
  97. ; maxOrderQuantity ; ; int ; ; ; ; ; ;
  98. ; priceQuantity ; ; int ; ; ; ; ; ;
  99. ; manufacturerAID ; ; text ; ; ; ; ; ;
  100. ; numberContentUnits ; ; double ; ; ; ; ; ;
  101. ; manufacturerTypeDescription ; ; text ; true ; ; ; ; ;
  102. ; supplierAlternativeAID ; ; text ; ; ; ; ; ;
  103. ; erpGroupBuyer ; ; text ; ; ; ; ; ;
  104. ; erpGroupSupplier ; ; text ; ; ; ; ; ;
  105. ; order ; ; int ; ; ; ; ; ;
  106. ; orderQuantityInterval ; ; int ; ; ; ; ; ;
  107. ; xmlcontent ; ; text ; ; ; ; ; ;
  108. ; startLineNumber ; ; int ; ; ; ; ; ;
  109. ; endLineNumber ; ; int ; ; ; ; ; ;
  110.  
  111. #references
  112. INSERT_UPDATE SolrIndexedProperty ; name[unique = true] ; $solrIndexedType ; type(code) ; localized[default = false] ; fieldValueProvider ; includeInResponse[default = false] ; valueProviderParameter ;
  113. ; contentUnitPk ; ; long ; ; itemModelPKValueResolver ; ; contentUnit ;
  114. ; contentUnit ; ; string ; true ; itemModelLabelValueResolver ; ; contentUnit ;
  115.  
  116. ###### WORKFLOWS ######
  117. INSERT_UPDATE Component ; code[unique=true] ; name ; domain(code)[unique=true] ; readPermitted(uid)[mode=append, lang=en] ; writePermitted(uid)[mode=append, lang=en] ; createPermitted(uid)[mode=append, lang=en] ; removePermitted(uid)[mode=append, lang=en]
  118. ; collaborationCenter ; Collaboration Center ; backofficeDomain ; backofficeworkflowusergroup,backofficeworkflowadmingroup ; backofficeworkflowusergroup,backofficeworkflowadmingroup ; backofficeworkflowusergroup,backofficeworkflowadmingroup ; backofficeworkflowadmingroup
  119.  
  120. # Workflow Sample Data - Workflow A (A_ProductCreation)
  121.  
  122. INSERT_UPDATE WorkflowTemplate ; code[unique=true] ; name[lang=de] ; name[lang=en] ; owner(uid) ; description[lang=en] ; description[lang=de] ; visibleForPrincipals(uid) ; ; ;
  123. ; A_ProductCreation ; Neuanlage Produkt ; Product Creation ; admin ; "This workflow is for Product creation. There are several steps involved which include: Purchase and Marketing Base information ; Approval through the involved departments and roles, translations to different languages and finally approval through marketing again." ; ; backofficeworkflowadmingroup,wfl_productManagementGroup ; ; ;
  124. ; ; ; ; ; ; ; ; ; ; ;
  125. INSERT_UPDATE WorkflowActionTemplate ; code[unique=true] ; name[lang=de] ; name[lang=en] ; description[lang=de] ; description[lang=en] ; principalAssigned(uid) ; workflow(code)[unique=true] ; sendEmail ; emailAddress ; rendererTemplate(code) ; actionType(code)
  126. ; A001_Base_information_Purchase ; Basisinformationen Einkauf ; Base information Purchase ; ; ; wfl_PurchaseGroup ; A_ProductCreation ; false ; ; ; start
  127. ; A002_Base_information_Marketing ; Basisinformationen Marketing ; Base information Marketing ; ; ; wfl_marketingGroup ; A_ProductCreation ; false ; ; ; start
  128. ; A003_Approval_through_Product_Management ; Freigabe PM ; Approval through Product Management ; ; ; wfl_productManagementGroup ; A_ProductCreation ; false ; ; ; normal
  129. ; A005_Detailed_information_Purchase ; Detailinformationen Einkauf ; Detailed information Purchase ; ; ; wfl_PurchaseGroup ; A_ProductCreation ; false ; ; ; normal
  130. ; A006_Detailed_information_PM ; Detailinformationen PM ; Detailed information PM ; ; ; wfl_productManagementGroup ; A_ProductCreation ; false ; ; ; normal
  131. ; A007_Create_Editorial_Content ; Produktredaktion ; Create Editorial Content ; ; ; wfl_marketingGroup_EN ; A_ProductCreation ; false ; ; ; normal
  132. ; A008_Assign_assets_to_product ; Zuweisung von Assets ; Assign assets to product ; ; ; wfl_marketingGroup_EN ; A_ProductCreation ; false ; ; ; normal
  133. ; A009_Create_description_for_assets ; Beschreibung von Assets ; Create description for assets ; ; ; wfl_marketingGroup_EN ; A_ProductCreation ; false ; ; ; normal
  134. ; A010_Approval_through_Product_Management ; Freigabe PM ; Approval through Product Management ; ; ; wfl_productManagementGroup ; A_ProductCreation ; false ; ; ; normal
  135. ; A012_Approval_through_Product_Marketing ; Freigabe Marketing ; Approval through Product Marketing ; ; ; wfl_marketingGroup ; A_ProductCreation ; false ; ; ; normal
  136. ; A013_Translation_to_german ; Übersetzung Deutsch ; Translation to german ; ; ; wfl_translatorGroup_DE ; A_ProductCreation ; false ; ; ; normal
  137. ; A014_Translation_Approval_german ; Übersetzungs-Freigabe Deutsch ; Translation Approval german ; ; ; wfl_marketingGroup_DE ; A_ProductCreation ; false ; ; ; normal
  138. ; A017_Translation_to_spanish ; Übersetzung Spanisch ; Translation to spanish ; ; ; wfl_translatorGroup_ES ; A_ProductCreation ; false ; ; ; normal
  139. ; A018_Translation_Approval_spanish ; Übersetzung-Freigabe Spanisch ; Translation Approval spanish ; ; ; wfl_marketingGroup_ES ; A_ProductCreation ; false ; ; ; normal
  140. ; A021_Translation_to_swedish ; Übersetzung Schwedisch ; Translation to swedish ; ; ; wfl_translatorGroup_SWE ; A_ProductCreation ; false ; ; ; normal
  141. ; A022_Translation_Approval_swedish ; Übersetzung-Freigabe Schwedisch ; Translation Approval swedish ; ; ; wfl_marketingGroup_SWE ; A_ProductCreation ; false ; ; ; normal
  142. ; A025_Translation_to_german-swiss ; Übersetzung Schweizer-Deutsch ; Translation to german-swiss ; ; ; wfl_translatorGroup_GSW ; A_ProductCreation ; false ; ; ; normal
  143. ; A026_Translation_to_french ; Übersetzung Französisch ; Translation to french ; ; ; wfl_translatorGroup_FR ; A_ProductCreation ; false ; ; ; normal
  144. ; A027_Translation_to_italian ; Übersetzung Italienisch ; Translation to italian ; ; ; wfl_translatorGroup_IT ; A_ProductCreation ; false ; ; ; normal
  145. ; A028_Approval_german-swiss ; Übersetzung-Freigabe Schweizer-Deutsch ; Translation Approval german-swiss ; ; ; wfl_marketingGroup_GSW ; A_ProductCreation ; false ; ; ; normal
  146. ; A029_Approval_french ; Übersetzung-Freigabe Französisch ; Translation Approval french ; ; ; wfl_marketingGroup_FR ; A_ProductCreation ; false ; ; ; normal
  147. ; A030_Approval_italian ; Übersetzung-Freigabe Italienisch ; Translation Approval italian ; ; ; wfl_marketingGroup_IT ; A_ProductCreation ; false ; ; ; normal
  148. ; A031_Market_Approval_Germany ; Freigabe deutscher Markt ; Approval german market ; ; ; wfl_marketingGroup_DE ; A_ProductCreation ; false ; ; ; normal
  149. ; A032_Market_Approval_Spain ; Freigabe Spanischer Markt ; Approval spanish market ; ; ; wfl_marketingGroup_ES ; A_ProductCreation ; false ; ; ; normal
  150. ; A033_Market_Approval_Sweden ; Freigabe Schwedischer Markt ; Approval swedish market ; ; ; wfl_marketingGroup_SWE ; A_ProductCreation ; false ; ; ; normal
  151. ; A034_Market_Approval_Switzerland ; Freigabe Schweizer Markt ; Approval swiss market ; ; ; wfl_marketingGroup_GSW ; A_ProductCreation ; false ; ; ; normal
  152. ; A037_Approval_All_Markets ; Freigabe alle Märkte ; Approval all Markets ; ; ; wfl_marketingGroup ; A_ProductCreation ; false ; ; ; end
  153. ; ; ; ; ; ; ; ; ; ; ;
  154. ; ; ; ; ; ; ; ; ; ; ;
  155. INSERT_UPDATE WorkflowDecisionTemplate ; code[unique=true] ; name[lang=de] ; name[lang=en] ; actionTemplate(code) ; description[allownull=true] ; ; ; ; ; ;
  156. ; AA001 ; Fertig! ; Done! ; A001_Base_information_Purchase ; ; ; ; ; ; ;
  157. ; AA002 ; Fertig! ; Done! ; A002_Base_information_Marketing ; ; ; ; ; ; ;
  158. ; AA003 ; Zurück an Einkauf ; Back to Purchase ; A003_Approval_through_Product_Management ; ; ; ; ; ; ;
  159. ; AA004 ; Zurück an Marketing ; Back to Marketing ; A003_Approval_through_Product_Management ; ; ; ; ; ; ;
  160. ; AA005 ; Freigabe ; Approval ; A003_Approval_through_Product_Management ; ; ; ; ; ; ;
  161. ; AA006 ; Fertig! ; Done! ; A005_Detailed_information_Purchase ; ; ; ; ; ; ;
  162. ; AA007 ; Fertig! ; Done! ; A006_Detailed_information_PM ; ; ; ; ; ; ;
  163. ; AA008 ; Fertig! ; Done! ; A007_Create_Editorial_Content ; ; ; ; ; ; ;
  164. ; AA009 ; Fertig! ; Done! ; A008_Assign_assets_to_product ; ; ; ; ; ; ;
  165. ; AA010 ; Fertig! ; Done! ; A009_Create_description_for_assets ; ; ; ; ; ; ;
  166. ; AA011 ; Zurück an Einkauf ; Back to Purchase ; A010_Approval_through_Product_Management ; ; ; ; ; ; ;
  167. ; AA012 ; Zurück an Marketing (Redaktion) ; Back to Marketing (Editoral) ; A010_Approval_through_Product_Management ; ; ; ; ; ; ;
  168. ; AA013 ; Zurück an Marketing (Assetzuweisung) ; Back to Marketing (assign assets) ; A010_Approval_through_Product_Management ; ; ; ; ; ; ;
  169. ; AA014 ; Zurück an Marketing (Assetbeschreibung) ; Back to Marketing (describe assets) ; A010_Approval_through_Product_Management ; ; ; ; ; ; ;
  170. ; AA015 ; Freigabe ; Approval ; A010_Approval_through_Product_Management ; ; ; ; ; ; ;
  171. ; AA017 ; Zurück an Produkt Management ; Back to Product Management ; A012_Approval_through_Product_Marketing ; ; ; ; ; ; ;
  172. ; AA021 ; Freigabe ; Approval ; A012_Approval_through_Product_Marketing ; ; ; ; ; ; ;
  173. ; AA022 ; Fertig! ; Done! ; A013_Translation_to_german ; ; ; ; ; ; ;
  174. ; AA023 ; Keine Freigabe ; No Approval ; A014_Translation_Approval_german ; ; ; ; ; ; ;
  175. ; AA024 ; Freigabe ; Approval ; A014_Translation_Approval_german ; ; ; ; ; ; ;
  176. ; AA025 ; Fertig! ; Done! ; A017_Translation_to_spanish ; ; ; ; ; ; ;
  177. ; AA026 ; Keine Freigabe ; No Approval ; A018_Translation_Approval_spanish ; ; ; ; ; ; ;
  178. ; AA027 ; Freigabe ; Approval ; A018_Translation_Approval_spanish ; ; ; ; ; ; ;
  179. ; AA028 ; Fertig! ; Done! ; A021_Translation_to_swedish ; ; ; ; ; ; ;
  180. ; AA029 ; Keine Freigabe ; No Approval ; A022_Translation_Approval_swedish ; ; ; ; ; ; ;
  181. ; AA030 ; Freigabe ; Approval ; A022_Translation_Approval_swedish ; ; ; ; ; ; ;
  182. ; AA031 ; Fertig! ; Done! ; A025_Translation_to_german-swiss ; ; ; ; ; ; ;
  183. ; AA032 ; Fertig! ; Done! ; A026_Translation_to_french ; ; ; ; ; ; ;
  184. ; AA033 ; Fertig! ; Done! ; A027_Translation_to_italian ; ; ; ; ; ; ;
  185. ; AA034 ; Keine Freigabe ; No Approval ; A028_Approval_german-swiss ; ; ; ; ; ; ;
  186. ; AA035 ; Freigabe ; Approval ; A028_Approval_german-swiss ; ; ; ; ; ; ;
  187. ; AA036 ; Keine Freigabe ; No Approval ; A029_Approval_french ; ; ; ; ; ; ;
  188. ; AA037 ; Freigabe ; Approval ; A029_Approval_french ; ; ; ; ; ; ;
  189. ; AA038 ; Keine Freigabe ; No Approval ; A030_Approval_italian ; ; ; ; ; ; ;
  190. ; AA039 ; Freigabe ; Approval ; A030_Approval_italian ; ; ; ; ; ; ;
  191. ; AA040 ; Freigabe ; Approval ; A031_Market_Approval_Germany ; ; ; ; ; ; ;
  192. ; AA041 ; Freigabe ; Approval ; A032_Market_Approval_Spain ; ; ; ; ; ; ;
  193. ; AA042 ; Freigabe ; Approval ; A033_Market_Approval_Sweden ; ; ; ; ; ; ;
  194. ; AA043 ; Freigabe ; Approval ; A034_Market_Approval_Switzerland ; ; ; ; ; ; ;
  195. ; ; ; ; ; ; ; ; ; ; ;
  196. ; ; ; ; ; ; ; ; ; ; ;
  197. # new Workflow Model;;;;;;;;;;;
  198. insert_update WorkflowActionTemplateLinkTemplateRelation ; source(code)[unique=true] ; target(code)[unique=true] ; andConnectionTemplate ; qualifier ; ; ; ; ; ; ;
  199. ; AA001 ; A003_Approval_through_Product_Management ; true ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  200. ; AA002 ; A003_Approval_through_Product_Management ; true ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  201. ; AA003 ; A001_Base_information_Purchase ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  202. ; AA004 ; A002_Base_information_Marketing ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  203. ; AA005 ; A005_Detailed_information_Purchase ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  204. ; AA005 ; A006_Detailed_information_PM ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  205. ; AA005 ; A007_Create_Editorial_Content ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  206. ; AA005 ; A008_Assign_assets_to_product ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  207. ; AA005 ; A009_Create_description_for_assets ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  208. ; AA006 ; A010_Approval_through_Product_Management ; true ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  209. ; AA007 ; A010_Approval_through_Product_Management ; true ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  210. ; AA008 ; A010_Approval_through_Product_Management ; true ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  211. ; AA009 ; A010_Approval_through_Product_Management ; true ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  212. ; AA010 ; A010_Approval_through_Product_Management ; true ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  213. ; AA011 ; A005_Detailed_information_Purchase ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  214. ; AA012 ; A007_Create_Editorial_Content ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  215. ; AA013 ; A008_Assign_assets_to_product ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  216. ; AA014 ; A009_Create_description_for_assets ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  217. ; AA015 ; A012_Approval_through_Product_Marketing ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  218. ; AA017 ; A010_Approval_through_Product_Management ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  219. ; AA021 ; A013_Translation_to_german ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  220. ; AA021 ; A017_Translation_to_spanish ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  221. ; AA021 ; A021_Translation_to_swedish ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  222. ; AA021 ; A025_Translation_to_german-swiss ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  223. ; AA021 ; A026_Translation_to_french ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  224. ; AA021 ; A027_Translation_to_italian ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  225. ; AA022 ; A014_Translation_Approval_german ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  226. ; AA023 ; A013_Translation_to_german ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  227. ; AA024 ; A031_Market_Approval_Germany ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  228. ; AA025 ; A018_Translation_Approval_spanish ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  229. ; AA026 ; A017_Translation_to_spanish ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  230. ; AA027 ; A032_Market_Approval_Spain ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  231. ; AA028 ; A022_Translation_Approval_swedish ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  232. ; AA029 ; A021_Translation_to_swedish ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  233. ; AA030 ; A033_Market_Approval_Sweden ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  234. ; AA031 ; A028_Approval_german-swiss ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  235. ; AA032 ; A029_Approval_french ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  236. ; AA033 ; A030_Approval_italian ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  237. ; AA034 ; A025_Translation_to_german-swiss ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  238. ; AA035 ; A034_Market_Approval_Switzerland ; true ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  239. ; AA036 ; A026_Translation_to_french ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  240. ; AA037 ; A034_Market_Approval_Switzerland ; true ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  241. ; AA038 ; A027_Translation_to_italian ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  242. ; AA039 ; A034_Market_Approval_Switzerland ; true ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  243. ; AA040 ; A037_Approval_All_Markets ; true ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  244. ; AA041 ; A037_Approval_All_Markets ; true ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  245. ; AA042 ; A037_Approval_All_Markets ; true ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  246. ; AA043 ; A037_Approval_All_Markets ; true ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  247.  
  248.  
  249. # Workflow Sample Data - Workflow B (B_ProductApproval).
  250.  
  251. INSERT_UPDATE WorkflowTemplate ; code[unique=true] ; name[lang=de] ; name[lang=en] ; owner(uid) ; description[lang=en] ; description[lang=de] ; activationscript ; visibleForPrincipals(uid) ; ; ;
  252. ; B_ProductApproval ; Produkt Freigabe ; Product Approval ; admin ; "This workflow approves products by the marketing group after being reviewed by product marketing and purchase. It will also be automatically started when a product is created or saved and its approval status is check" ; ; "// this script will create a new workflow when a product is created or saved and its approval status is check
  253. (
  254. // create new item
  255. (action.equals(""create"") &&
  256.  
  257. // initialValues must be set
  258. initialValues != null &&
  259.  
  260. // approvalStatus must be set
  261. initialValues.get(""approvalstatus"") != null &&
  262.  
  263. // approvalStatus must be set to ""check""
  264. initialValues.get(""approvalstatus"").getCode().equals(""check"")
  265. ) ||
  266.  
  267. // save item
  268. (action.equals(""save"") &&
  269.  
  270. // currentValues must be set
  271. currentValues != null &&
  272.  
  273. // approvalStatus must be set
  274. currentValues.get(""approvalstatus"") != null &&
  275.  
  276. // approvalStatus must be set to ""check""
  277. currentValues.get(""approvalstatus"").getCode().equals(""check""))) &&
  278.  
  279. // created or saved item is a product
  280. typeService.isAssignableFrom(""Product"", itemType.getCode())" ; backofficeworkflowadmingroup,wfl_productManagementGroup; ; ;
  281. ; ; ; ; ; ; ; ; ; ; ;
  282. INSERT_UPDATE WorkflowActionTemplate ; code[unique=true] ; name[lang=de] ; name[lang=en] ; description[lang=de] ; description[lang=en] ; principalAssigned(uid) ; workflow(code)[unique=true] ; sendEmail ; emailAddress ; rendererTemplate(code) ; actionType(code)
  283. ; B001_Approval_through_Product_Management ; Freigabe PM ; Approval through Product Management ; ; ; wfl_productManagementGroup ; B_ProductApproval ; false ; ; ; start
  284. ; B002_Approval_through_Purchase ; Freigabe Einkauf ; Approval through Purchase ; ; ; wfl_PurchaseGroup ; B_ProductApproval ; false ; ; ; start
  285. ; B003_Approval_through_Product_Marketing ; Freigabe Marketing ; Approval through Product Marketing ; ; ; wfl_marketingGroup_EN ; B_ProductApproval ; false ; ; ; normal
  286. ; B004_Approval_Product ; Produkt freigegeben ; Product approved ; ; ; wfl_marketingGroup ; B_ProductApproval ; false ; ; ; end
  287. ; ; ; ; ; ; ; ; ; ; ;
  288. ; ; ; ; ; ; ; ; ; ; ;
  289. INSERT_UPDATE WorkflowDecisionTemplate ; code[unique=true] ; name[lang=de] ; name[lang=en] ; actionTemplate(code) ; description[allownull=true] ; ; ; ; ; ;
  290. ; BB001 ; Fertig! ; Done! ; B001_Approval_through_Product_Management ; ; ; ; ; ; ;
  291. ; BB002 ; Fertig! ; Done! ; B002_Approval_through_Purchase ; ; ; ; ; ; ;
  292. ; BB003 ; Zurück an PM ; Back to product Management ; B003_Approval_through_Product_Marketing ; ; ; ; ; ; ;
  293. ; BB004 ; Zurück an Einkauf ; Back to Purchase ; B003_Approval_through_Product_Marketing ; ; ; ; ; ; ;
  294. ; BB005 ; Freigabe ; Approval ; B003_Approval_through_Product_Marketing ; ; ; ; ; ; ;
  295. ; ; ; ; ; ; ; ; ; ; ;
  296. ; ; ; ; ; ; ; ; ; ; ;
  297. ; ; ; ; ; ; ; ; ; ; ;
  298. # new Workflow Model;;;;;;;;;;;
  299. insert_update WorkflowActionTemplateLinkTemplateRelation ; source(code)[unique=true] ; target(code)[unique=true] ; andConnectionTemplate ; qualifier ; ; ; ; ; ; ;
  300. ; BB001 ; B003_Approval_through_Product_Marketing ; true ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  301. ; BB002 ; B003_Approval_through_Product_Marketing ; true ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  302. ; BB003 ; B001_Approval_through_Product_Management ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  303. ; BB004 ; B002_Approval_through_Purchase ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
  304. ; BB005 ; B004_Approval_Product ; false ; WorkflowActionTemplateLinkTemplateRelation ; ; ; ; ; ; ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement