CreateUXFMDialogDefinition.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. =================================================================
  4. * Licensed Materials - Property of IBM
  5. * (c) Copyright IBM Corp. 2014. All rights reserved.
  6. *
  7. * US Government Users Restricted Rights - Use, duplication or
  8. * disclosure restricted by GSA ADP Schedule Contract with IBM
  9. * Corp.
  10. *
  11. * DISCLAIMER OF WARRANTIES. The following [enclosed] code is
  12. * sample code created by IBM Corporation. This sample code is
  13. * not part of any standard or IBM product and is provided to you
  14. * solely for the purpose of assisting you in the development of
  15. * your applications. The code is provided "AS IS", without
  16. * warranty of any kind. IBM shall not be liable for any damages
  17. * arising out of your use of the sample code, even if they have
  18. * been advised of the possibility of such damages.
  19. *
  20. =================================================================
  21. -->
  22. <request type="update" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  23. xsi:noNamespaceSchemaLocation="PCM_2.0.xsd">
  24. <portal action="create">
  25. <!-- Please note that this sample cannot be used as-is as the referenced resources do usually not exist (are fictive).
  26. Thus, this sample serves as a kind of skeleton only. -->
  27. <!-- definition of one or more dialogs -->
  28. <dialog-set>
  29. <!-- definition of a dialog with unique name dialog1 -->
  30. <dialog name="dialog1">
  31. <!-- access-control settings that apply to this particular dialog -->
  32. <access-control externalized="false" owner="undefined" private="false">
  33. <role actionset="User" update="set">
  34. <mapping subjectid="uid=wpsadmin,o=defaultWIMFileBasedRealm" subjecttype="USER" update="set" />
  35. </role>
  36. <role actionset="Editor" update="set">
  37. <mapping subjectid="uid=wpsadmin,o=defaultWIMFileBasedRealm" subjecttype="USER" update="set" />
  38. </role>
  39. </access-control>
  40. <!-- default settings that apply if not overwritten by more specific settings further below -->
  41. <default-settings>
  42. <transition-endpoint>
  43. <resource parent-uniquename="parent1" />
  44. <invocation type="dynamic" extension-node="extensionNode1" />
  45. </transition-endpoint>
  46. </default-settings>
  47. <!-- transition-endpoints this particular dialog will makes use of -->
  48. <!-- the transition-endpoint name needs to be unique within this particular dialog -->
  49. <transition-endpoint name="diip">
  50. <!-- the resource uniquename needs to refer to an existing resource (page, portlet, etc.) with the specified unique name -->
  51. <resource uniquename="diip" />
  52. <!-- allowed invocation types are static and dynamic -->
  53. <invocation type="static" />
  54. </transition-endpoint>
  55. <transition-endpoint name="page1">
  56. <!-- custom localized titles and definitions are allowed to be specified -->
  57. <localedata locale="en">
  58. <title>titleEN1</title>
  59. <description>descriptionEN1</description>
  60. </localedata>
  61. <resource uniquename="page1" />
  62. <invocation type="static" />
  63. </transition-endpoint>
  64. <transition-endpoint name="page2">
  65. <resource uniquename="page2" />
  66. <invocation type="static" />
  67. </transition-endpoint>
  68. <!-- transitions this particular dialog makes use of -->
  69. <transition>
  70. <!-- transitions are comprised of sources... -->
  71. <source>
  72. <!-- sources needed to reference previously defined transition-endpoints -->
  73. <transition-endpoint nameref="diip">
  74. <!-- the event that should trigger the transition (if emitted by the encapsulating source) -->
  75. <event qname="START" />
  76. </transition-endpoint>
  77. </source>
  78. <!-- ...and targets -->
  79. <target>
  80. <!-- targets needed to reference previously defined transition-endpoints -->
  81. <transition-endpoint nameref="page1">
  82. <!-- the event the target should be initialized with -->
  83. <event qname="targetEvent0" />
  84. </transition-endpoint>
  85. </target>
  86. </transition>
  87. <transition>
  88. <source>
  89. <transition-endpoint nameref="page1">
  90. <!-- making use of dcx-keys and custom mappers -->
  91. <event qname="sourceEvent1a" dcx-key="sourceEvent1aDCX" mapper-class="sourceEvent1aMapper" />
  92. </transition-endpoint>
  93. </source>
  94. <target>
  95. <transition-endpoint nameref="page2">
  96. <!-- propagating multiple events at once -->
  97. <event qname="targetEvent1a" dcx-key="targetEvent1aDCX" mapper-class="targetEvent1aMapper" />
  98. <event qname="targetEvent1b" dcx-key="targetEvent1bDCX" mapper-class="targetEvent1bMapper" />
  99. </transition-endpoint>
  100. </target>
  101. </transition>
  102. <transition>
  103. <source>
  104. <transition-endpoint nameref="page2">
  105. <event qname="sourceEvent2" />
  106. </transition-endpoint>
  107. </source>
  108. <target>
  109. <transition-endpoint nameref="diip">
  110. <event qname="END" />
  111. </transition-endpoint>
  112. </target>
  113. </transition>
  114. </dialog>
  115. <!-- (incomplete) definition of a dialog with unique name dialog2 -->
  116. <dialog name="dialog2">
  117. </dialog>
  118. </dialog-set>
  119. </portal>
  120. </request>