view_executing_details.xts 79 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ps
  5. (C) Copyright IBM Corp. 2005, 2014
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml" includeConfig="true">
  13. <!--
  14. ===============================================================================================
  15. formlogic_init :
  16. ===============================================================================================
  17. -->
  18. <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
  19. <!--
  20. ========================================================
  21. Session Management
  22. ========================================================
  23. -->
  24. <!-- Reads session-sensitive info from CM -->
  25. <xts:block processor="XSLT" type="exec" mandatory="false" id="refreshSession" path="portal/cc/read_session.xml" condition=".[string(/root/cookies/cookie[@name = 'cc_session']) = '' or /root/env/param[@name='m_reload'] or /root/env/param[@name='m_root'] ]">
  26. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  27. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  28. </xts:block>
  29. <!-- Update the <session> element for this request. -->
  30. <xts:block id="buildSession" path="portal/session.xml" dependency="refreshSession" processor="XSLT" type="exec" condition=".[ /root/newSession or /root/env/param[@name='ui'] or /root/env/param[@name='d'] or /root/env/param[starts-with(@name,'m_s_')] or /root/env/param[@name = 'resetSort'] ]" mandatory="false"/>
  31. <!-- Save changes to the state info in a cookie -->
  32. <xts:block mode="interpret" processor="XSLT" type="exec" id="setSession" path="portal/set_session.xml" dependency="buildSession" condition=".[/root/updateSession]" mandatory="false"/>
  33. <!--
  34. ===============================================================================================
  35. reloadEnvironment:
  36. reload the packed environment from the savedEnv param if it exists.
  37. ===============================================================================================
  38. -->
  39. <xts:block id="reloadEnvironment" processor="XSLT" type="exec" dependency="formlogic_init buildSession" mandatory="false" condition=".[/root/env/param[@name = 'savedEnv'] != '']">
  40. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  41. <xsl:template match="/">
  42. <xts:sequence>
  43. <xts:replace select="/root/env">
  44. <env>
  45. <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap',string(/root/env/param[@name='savedEnv'])), true())" disable-output-escaping="yes"/>
  46. </env>
  47. </xts:replace>
  48. </xts:sequence>
  49. </xsl:template>
  50. </xsl:stylesheet>
  51. </xts:block>
  52. <!--
  53. ===============================================================================================
  54. getContent :
  55. Get history and historyDetail objects
  56. ===============================================================================================
  57. -->
  58. <xts:block id="getContent" processor="XSLT" type="exec" nodelist="session, env, header, http" dependency="formlogic_init buildSession reloadEnvironment">
  59. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  60. <xts:logicsheet path="logicsheets/contentadmin.xsl"/>
  61. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  62. <xsl:stylesheet version="1.0"
  63. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  64. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  65. xmlns:async="http://developer.cognos.com/schemas/xts/cogadmin/iAsyncRequest/1/"
  66. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  67. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  68. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  69. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  70. xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  71. xmlns:adm="http://developer.cognos.com/schemas/xts/logicsheets/contentadmin/"
  72. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  73. xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
  74. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  75. exclude-result-prefixes="xsl send async bus cm xsi SOAP-ENV SOAP-ENC xsd adm dt xtsext">
  76. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  77. <xsl:variable name="class" select="key('env-param','m_class')"/>
  78. <xsl:template match="/">
  79. <xts:sequence>
  80. <xts:append>
  81. <!-- get the history information -->
  82. <!-- TODO: support paging -->
  83. <send:request provider="xts" option="xml-multipart">
  84. <async:asyncRequest>
  85. <provider>monitorService</provider>
  86. <conversation><xsl:value-of select="key('env-param','web64conversation')"/></conversation>
  87. <tracking><xsl:value-of select="key('env-param','tracking')"/></tracking>
  88. <request>
  89. <xsl:choose>
  90. <xsl:when test="key('env-param','secondaryRequest') != ''">
  91. <xsl:value-of select="key('env-param','secondaryRequest')"/>
  92. </xsl:when>
  93. <xsl:otherwise>runSpecification</xsl:otherwise>
  94. </xsl:choose>
  95. </request>
  96. <specification>
  97. <bus:specification xsi:type="bus:monitorServiceSpecification">
  98. <bus:value xsi:type="bus:specification">
  99. <xts:transform name="XMLEncode">
  100. <monitorServiceSpecification>
  101. <scope>
  102. <eventID><xsl:value-of select="key('env-param','eventID')"/></eventID>
  103. </scope>
  104. <subSort>
  105. <order>
  106. <xsl:choose>
  107. <xsl:when test="key('env-param', 'm_s_hd')='td'">descending</xsl:when>
  108. <xsl:otherwise>ascending</xsl:otherwise>
  109. </xsl:choose>
  110. </order>
  111. <sortItem>historyDetails.detailTime</sortItem>
  112. </subSort>
  113. <!-- user just did a from/to action -->
  114. <xsl:if test="key('env-param','m_pagerfrom') != '' and key('env-param','m_pagerto') != ''">
  115. <display>
  116. <start><xsl:value-of select="key('env-param','m_pagerfrom')"/></start>
  117. <end><xsl:value-of select="key('env-param','m_pagerto')"/></end>
  118. </display>
  119. </xsl:if>
  120. <filters>
  121. <!-- history detail severity filter -->
  122. <xsl:if test="key('env-param','vrh_severity') != '' and key('env-param','vrh_severity') != 'all'">
  123. <detailSeverity><xsl:value-of select="key('env-param','vrh_severity')"/></detailSeverity>
  124. </xsl:if>
  125. </filters>
  126. </monitorServiceSpecification>
  127. </xts:transform>
  128. </bus:value>
  129. </bus:specification>
  130. </specification>
  131. <parameters>
  132. <bus:parameterValues xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parameterValue[]"/>
  133. </parameters>
  134. <options>
  135. <bus:options SOAP-ENC:arrayType="bus:option[]" xsi:type="SOAP-ENC:Array">
  136. <item xsi:type="bus:asynchOptionInt">
  137. <bus:name xsi:type="bus:asynchOptionEnum">primaryWaitThreshold</bus:name>
  138. <bus:value xsi:type="xsd:int">0</bus:value>
  139. </item>
  140. <item xsi:type="bus:pagingOptionInt">
  141. <bus:name xsi:type="bus:pagingOptionEnum">maximumObjects</bus:name>
  142. <bus:value xsi:type="xsd:int">0</bus:value>
  143. </item>
  144. </bus:options>
  145. </options>
  146. </async:asyncRequest>
  147. </send:request>
  148. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  149. <send:request provider="cm">
  150. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  151. <cm:query>
  152. <cm:requests>
  153. <cm:query>
  154. <cm:search>//history[@eventID = '<xsl:value-of select="key('env-param','eventID')"/>']/..</cm:search>
  155. <cm:properties>
  156. <cm:property name="defaultName"/>
  157. </cm:properties>
  158. </cm:query>
  159. </cm:requests>
  160. </cm:query>
  161. </xts:transform>
  162. </send:request>
  163. </xts:transform>
  164. </xts:append>
  165. <dt:splitParameters queryNode="/root/*[local-name()='asyncRequestResponse']/*[local-name()='response']/*[local-name()='runSpecificationResponse']/*[local-name()='result']/*[local-name()='details']/*[local-name()='details']/*[local-name()='historyDetails']/*[local-name()='historyDetails']/*[local-name()='parameters']"/>
  166. </xts:sequence>
  167. </xsl:template>
  168. </xsl:stylesheet>
  169. </xts:block>
  170. <!--
  171. ===============================================================================================
  172. getContent2 :
  173. Get the steps/tasks and also fix up the class and name in the env
  174. OR
  175. Query CM for the class and name if the task has finished executing
  176. ===============================================================================================
  177. -->
  178. <xts:block id="getContent2" processor="XSLT" type="exec" nodelist="asyncRequestResponse, queryResponse, cmHistory, session, env, header, http" dependency="getContent">
  179. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  180. <xts:logicsheet path="logicsheets/contentadmin.xsl"/>
  181. <xsl:stylesheet version="1.0"
  182. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  183. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  184. xmlns:async="http://developer.cognos.com/schemas/xts/cogadmin/iAsyncRequest/1/"
  185. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  186. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  187. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  188. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  189. xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  190. xmlns:adm="http://developer.cognos.com/schemas/xts/logicsheets/contentadmin/"
  191. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  192. exclude-result-prefixes="xsl send async bus xsi SOAP-ENV SOAP-ENC xsd adm cm">
  193. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  194. <xsl:key name="system-param" match="/root/system/param" use="@name"/>
  195. <xsl:key name="session-param" match="/root/session/param" use="@name"/>
  196. <xsl:variable name="linesPerPage">
  197. <xsl:choose>
  198. <xsl:when test="key('session-param','linesPerPage')">
  199. <xsl:value-of select="key('session-param','linesPerPage')"/>
  200. </xsl:when>
  201. <xsl:when test="key('system-param','defaultPortalPreferences')/pref[@name='lines']">
  202. <xsl:value-of select="key('system-param','defaultPortalPreferences')/pref[@name='lines']"/>
  203. </xsl:when>
  204. <xsl:otherwise>15</xsl:otherwise>
  205. </xsl:choose>
  206. </xsl:variable>
  207. <xsl:template match="/">
  208. <xts:sequence>
  209. <xsl:variable name="msResponse" select="/root/asyncRequestResponse/response/*[local-name()='runSpecificationResponse']/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')][1]"/>
  210. <xsl:variable name="hasNoCMHistory" select="not(/root/cm:queryResponse/cm:queryReply/*)"/>
  211. <xsl:choose>
  212. <xsl:when test="string($msResponse/*) != '' and ($msResponse/status != 'failed' or ($msResponse/status='failed' and $hasNoCMHistory))">
  213. <xsl:variable name="class" select="$msResponse/runnable/runnable/objectClass/value"/>
  214. <xsl:variable name="searchPath" select="$msResponse/runnable/runnable/searchPath/value"/>
  215. <xts:append>
  216. <!-- get the steps/tasks -->
  217. <xsl:if test="contains(' jobDefinition agentDefinition agentDefinitionView reportDataServiceAgentDefinition humanTask ',concat(' ',$class, ' '))">
  218. <steps>
  219. <send:request provider="xts" option="xml-multipart">
  220. <async:asyncRequest>
  221. <provider>monitorService</provider>
  222. <conversation><xsl:value-of select="key('env-param','web64conversationSteps')"/></conversation>
  223. <tracking><xsl:value-of select="key('env-param','trackingSteps')"/></tracking>
  224. <request>
  225. <xsl:choose>
  226. <xsl:when test="key('env-param','secondaryRequestSteps') != ''">
  227. <xsl:value-of select="key('env-param','secondaryRequestSteps')"/>
  228. </xsl:when>
  229. <xsl:otherwise>runSpecification</xsl:otherwise>
  230. </xsl:choose>
  231. </request>
  232. <specification>
  233. <bus:specification xsi:type="bus:monitorServiceSpecification">
  234. <bus:value xsi:type="bus:specification">
  235. <xts:transform name="XMLEncode">
  236. <monitorServiceSpecification>
  237. <scope>
  238. <parentEventID><xsl:value-of select="key('env-param','eventID')"/></parentEventID>
  239. </scope>
  240. <!-- user just did a from/to action -->
  241. <xsl:if test="key('env-param','m_pagerfromSteps') != '' and key('env-param','m_pagertoSteps') != ''">
  242. <display>
  243. <start><xsl:value-of select="key('env-param','m_pagerfromSteps')"/></start>
  244. <end><xsl:value-of select="key('env-param','m_pagertoSteps')"/></end>
  245. </display>
  246. </xsl:if>
  247. <filters/>
  248. </monitorServiceSpecification>
  249. </xts:transform>
  250. </bus:value>
  251. </bus:specification>
  252. </specification>
  253. <parameters>
  254. <bus:parameterValues xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parameterValue[]"/>
  255. </parameters>
  256. <options>
  257. <bus:options SOAP-ENC:arrayType="bus:option[]" xsi:type="SOAP-ENC:Array">
  258. <item xsi:type="bus:asynchOptionInt">
  259. <bus:name xsi:type="bus:asynchOptionEnum">primaryWaitThreshold</bus:name>
  260. <bus:value xsi:type="xsd:int">0</bus:value>
  261. </item>
  262. <item xsi:type="bus:pagingOptionInt">
  263. <bus:name xsi:type="bus:pagingOptionEnum">maximumObjects</bus:name>
  264. <bus:value xsi:type="xsd:int"><xsl:value-of select="$linesPerPage"/></bus:value>
  265. </item>
  266. </bus:options>
  267. </options>
  268. </async:asyncRequest>
  269. </send:request>
  270. </steps>
  271. </xsl:if>
  272. </xts:append>
  273. <!-- need to get the list of namespaces if we're dealing with a contentTask -->
  274. <xsl:if test="$class='contentTask'">
  275. <xts:append>
  276. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  277. <send:request provider="cm">
  278. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  279. <cm:query>
  280. <cm:search>/directory/namespace</cm:search>
  281. <cm:properties>
  282. <cm:property name="defaultName"/>
  283. <cm:property name="searchPath"/>
  284. <cm:property name="active"/>
  285. </cm:properties>
  286. </cm:query>
  287. </xts:transform>
  288. </send:request>
  289. </xts:transform>
  290. </xts:append>
  291. </xsl:if>
  292. <xsl:if test="contains(' report interactiveReport query analysis reportView ',concat(' ',$class,' '))">
  293. <xts:append>
  294. <deliveryOptionsQueries>
  295. <xts:transform src="transforms/portal/options/generateCMQueriesForDeliveryInfo.xslt" processor="XSLT">
  296. <root>
  297. <checkUIHelpers>false</checkUIHelpers>
  298. <queryReply>
  299. <xsl:copy-of select="$msResponse/historyDetails/historyDetails[contains(@*[local-name()='type'], ':historyDetailRequestArguments')]"/>
  300. </queryReply>
  301. </root>
  302. </xts:transform>
  303. </deliveryOptionsQueries>
  304. </xts:append>
  305. </xsl:if>
  306. <xsl:if test="$class = 'contentTask'">
  307. <!-- create any queries that need to be sent to CM for the context options.
  308. Also create the params that should be copied into the env -->
  309. <xsl:if test="/root/asyncRequestResponse/response/*[local-name()='runSpecificationResponse']/result/details/*[contains(@*[local-name()='type'], ':asynchDetailEventRecord')][1]/historyDetails/*[contains(@*[local-name()='type'], ':historyDetailRequestArguments')]/options">
  310. <adm:parseContentTaskOptions optionsPath="/root/asyncRequestResponse/response/*[local-name()='runSpecificationResponse']/result/details/*[contains(@*[local-name()='type'], ':asynchDetailEventRecord')][1]/historyDetails/*[contains(@*[local-name()='type'], ':historyDetailRequestArguments')]/options"/>
  311. </xsl:if>
  312. </xsl:if>
  313. <!--
  314. when talking to the Monitor Service, there is no way to get the owner class and name. So if the user
  315. did a 'view the parent entry' action the class and name would be wrong in the env. Make sure they're
  316. correct by using the response we just got back from MS
  317. -->
  318. <xts:replace select="/root/env/param[@name='m_class']">
  319. <param name="m_class"><xsl:value-of select="$class"/></param>
  320. </xts:replace>
  321. <xts:replace select="/root/env/param[@name='m_name']">
  322. <param name="m_name"><xsl:value-of select="$msResponse/runnable/runnable/defaultName/value"/></param>
  323. </xts:replace>
  324. <!-- delete this parameter when coming from the confirmation page. Keeping it will cause the view output page not to work -->
  325. <xts:delete select="/root/env/param[@name = 'method']"/>
  326. <!-- we need to post process the ancestors since do-the-path link expects a certain xml structure. -->
  327. <xsl:if test="$msResponse/runnable/runnable/ancestors != ''">
  328. <xts:replace select="/root/asyncRequestResponse/response/*[local-name()='runSpecificationResponse']/result/details/*[contains(@*[local-name()='type'], ':asynchDetailEventRecord')][1]/runnable/runnable/ancestors">
  329. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  330. <xsl:copy-of select="$msResponse/runnable/runnable/ancestors"/>
  331. </xts:transform>
  332. </xts:replace>
  333. </xsl:if>
  334. <!-- all our logicsheets that deal with showing the prompt summary need the post-process structure -->
  335. <xsl:if test="string($msResponse/historyDetails/historyDetails[contains(@*[local-name()='type'], ':historyDetailRequestArguments')]/parameters/value) != ''">
  336. <xts:replace select="/root/asyncRequestResponse/response/*[local-name()='runSpecificationResponse']/result/details/*[contains(@*[local-name()='type'], ':asynchDetailEventRecord')][1]/historyDetails/*[contains(@*[local-name()='type'], ':historyDetailRequestArguments')]/parameters">
  337. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  338. <xsl:copy-of select="$msResponse/historyDetails/*[contains(@xsi:type, ':historyDetailRequestArguments')]/parameters"/>
  339. </xts:transform>
  340. </xts:replace>
  341. </xsl:if>
  342. <xts:append>
  343. <stillExecuting>true</stillExecuting>
  344. </xts:append>
  345. <xsl:if test="$class='indexUpdateTask'">
  346. <xts:append>
  347. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  348. <send:request provider="cm">
  349. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  350. <cm:query>
  351. <cm:search><xsl:value-of select="$searchPath"/></cm:search>
  352. <cm:properties>
  353. <cm:property name="defaultName"/>
  354. <cm:property name="searchPath"/>
  355. <cm:property name="options"/>
  356. </cm:properties>
  357. </cm:query>
  358. </xts:transform>
  359. </send:request>
  360. </xts:transform>
  361. </xts:append>
  362. </xsl:if>
  363. </xsl:when>
  364. <xsl:otherwise>
  365. <xts:append>
  366. <stillExecuting>false</stillExecuting>
  367. </xts:append>
  368. </xsl:otherwise>
  369. </xsl:choose>
  370. </xts:sequence>
  371. </xsl:template>
  372. </xsl:stylesheet>
  373. </xts:block>
  374. <!--
  375. ===============================================================================================
  376. replace
  377. ===============================================================================================
  378. -->
  379. <xts:block id="replace" nodelist="asyncRequestResponse, queryResponse, env" type="exec" mode="interpret" processor="XSLT" dependency="getContent2" mandatory="true">
  380. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  381. <xsl:stylesheet version="1.0"
  382. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  383. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  384. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  385. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  386. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  387. exclude-result-prefixes="xsl send cm xsi xtsext">
  388. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  389. <xsl:variable name="query-values" select="/root/env/param"/>
  390. <xsl:template match="/">
  391. <xts:sequence>
  392. <xsl:if test="not(string(/root/asyncRequestResponse/response/*[local-name()='runSpecificationResponse']/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')][1]/*) != '')">
  393. <!-- make sure the m_class and m_name are correct before redirecting to the details page that talks to CM -->
  394. <xts:replace select="/root/env/param[@name='m_class']">
  395. <param name="m_class"><xsl:value-of select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*/*[local-name()='objectClass']"/></param>
  396. </xts:replace>
  397. <xts:replace select="/root/env/param[@name='m_name']">
  398. <param name="m_name"><xsl:value-of select="xtsext:xmlencode(string(/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*/*[local-name()='defaultName']))"/></param>
  399. </xts:replace>
  400. </xsl:if>
  401. </xts:sequence>
  402. </xsl:template>
  403. </xsl:stylesheet>
  404. </xts:block>
  405. <!--
  406. ===============================================================================================
  407. getArchiveLocations
  408. ===============================================================================================
  409. -->
  410. <xts:block id="getArchiveLocations" nodelist="header, asyncRequestResponse, queryResponse" type="exec" mode="interpret" processor="XSLT" dependency="replace" mandatory="false" condition=".[string(/root/asyncRequestResponse/response/*[local-name()='runSpecificationResponse']/result/details/*[contains(@*[local-name()='type'], ':asynchDetailEventRecord')][1]/historyDetails/*[contains(@*[local-name()='type'], ':historyDetailRequestArguments')]/options/value/*[name='archiveLocation']/value) != '']">
  411. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  412. <xsl:stylesheet version="1.0"
  413. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  414. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  415. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  416. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  417. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  418. exclude-result-prefixes="xsl send cm xsi xtsext">
  419. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  420. <xsl:variable name="query-values" select="/root/env/param"/>
  421. <xsl:template match="/">
  422. <xts:sequence>
  423. <xts:append>
  424. <temp>
  425. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  426. <send:request provider="cm">
  427. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  428. <cm:query>
  429. <cm:requests>
  430. <cm:query>
  431. <cm:search><xsl:value-of select="/root/asyncRequestResponse/response/*[local-name()='runSpecificationResponse']/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')][1]/historyDetails/*[contains(@xsi:type, ':historyDetailRequestArguments')]/options/value/*[name='archiveLocation']/value"/></cm:search>
  432. <cm:properties>
  433. <cm:property name="defaultName"/>
  434. <cm:property name="searchPath"/>
  435. </cm:properties>
  436. </cm:query>
  437. </cm:requests>
  438. </cm:query>
  439. </xts:transform>
  440. </send:request>
  441. </xts:transform>
  442. </temp>
  443. </xts:append>
  444. <!--
  445. need to place the archive locations inside /root/cm:queryResponse since that's where the template
  446. that builds the summary looks for it
  447. -->
  448. <xsl:choose>
  449. <xsl:when test="/root/*[local-name()='queryResponse']">
  450. <xts:append select="/root/*[local-name()='queryResponse']">
  451. <xts:queryNode select="/root/temp/*[local-name()='queryResponse']/*[local-name()='queryReply']"/>
  452. </xts:append>
  453. </xsl:when>
  454. <xsl:otherwise>
  455. <xts:append>
  456. <xts:queryNode select="/root/temp/*"/>
  457. </xts:append>
  458. </xsl:otherwise>
  459. </xsl:choose>
  460. <!-- delete the temporary node -->
  461. <xts:delete select="/root/temp"/>
  462. </xts:sequence>
  463. </xsl:template>
  464. </xsl:stylesheet>
  465. </xts:block>
  466. <!--
  467. getIndexUpdateOptions.
  468. -->
  469. <xts:block id="getIndexUpdateOptions" processor="XSLT" type="exec" dependency="getArchiveLocations" condition=".[contains('indexUpdateTask ', /root/env/param[@name='m_class'])]" mandatory="false">
  470. <xts:logicsheet path="logicsheets/contentadmin.xsl"/>
  471. <xts:logicsheet path="portal/runWithOptions/logicsheets/request.xslt"/>
  472. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  473. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  474. <xsl:stylesheet version="1.0"
  475. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  476. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  477. xmlns:rdr="http://developer.cognos.com/schemas/xts/rdr/"
  478. xmlns:adm="http://developer.cognos.com/schemas/xts/logicsheets/contentadmin/"
  479. exclude-result-prefixes="xsl xtsext rdr adm">
  480. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  481. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  482. <xsl:template match="/">
  483. <xts:sequence>
  484. <adm:parseIndexUpdateTaskOptions optionsPath="/root/*[local-name()='queryResponse']/*[local-name()='indexUpdateTask']/*[local-name()='options']"/>
  485. <xts:append select="/root/env">
  486. <xts:queryNode select="/root/indexUpdateTaskSearchPaths/env/*[local-name()='param']"/>
  487. </xts:append>
  488. <!-- unpack the indexUpdate information -->
  489. <xsl:if test="key('env-param','m_indexUpdates')!=''">
  490. <xts:append>
  491. <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap',string(key('env-param','m_indexUpdates'))), true())" disable-output-escaping="yes"/>
  492. </xts:append>
  493. </xsl:if>
  494. </xts:sequence>
  495. </xsl:template>
  496. </xsl:stylesheet>
  497. </xts:block>
  498. <!--
  499. ===============================================================================================
  500. genDefaultIndexUpdateOptions - Query CM for the display information needed, build the appropriate XML structure
  501. of the indexUpdateTask and populate the DOM
  502. ===============================================================================================
  503. -->
  504. <xts:block id="genDefaultIndexUpdateOptions" processor="XSLT" type="exec" dependency="getIndexUpdateOptions" mandatory="false" condition=".[contains('indexUpdateTask ', /root/env/param[@name='m_class'])]">
  505. <xts:logicsheet path="logicsheets/portal.xsl"/>
  506. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  507. <xsl:stylesheet version="1.0"
  508. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  509. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  510. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  511. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  512. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  513. exclude-result-prefixes="xsl cm send pf xtsext">
  514. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  515. <pf:variables/>
  516. <xsl:template match="/">
  517. <xts:sequence>
  518. <xts:append select="/root">
  519. <indexUpdateInfoResponse>
  520. <xts:transform src="transforms/portal/options/swapSearchPaths.xslt" processor="XSLT">
  521. <root>
  522. <xsl:if test="count(/root/indexUpdateTaskSearchPaths/*) != 0">
  523. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  524. <send:request provider="cm">
  525. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  526. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  527. <cm:requests>
  528. <xsl:copy-of select="/root/indexUpdateTaskSearchPaths/include/*[local-name()='query']"/>
  529. </cm:requests>
  530. </cm:query>
  531. </xts:transform>
  532. </send:request>
  533. </xts:transform>
  534. </xsl:if>
  535. <queryBuiltFromOptions>
  536. <xsl:copy-of select="/root/indexUpdateTaskSearchPaths/include/*[local-name()='query']"/>
  537. </queryBuiltFromOptions>
  538. </root>
  539. </xts:transform>
  540. </indexUpdateInfoResponse>
  541. </xts:append>
  542. <xts:append select="/root">
  543. <indexUpdates>
  544. <xts:transform src="portal/addEntries/transforms/sortAddedEntriesList.xslt" processor="XSLT">
  545. <root>
  546. <addedEntriesList>
  547. <xts:transform src="portal/addEntries/transforms/genStandardAddEntriesList.xslt" processor="XSLT">
  548. <root>
  549. <xts:queryNode select="/root/indexUpdateInfoResponse/*"/>
  550. </root>
  551. </xts:transform>
  552. </addedEntriesList>
  553. <contentLocale><xsl:value-of select="$contentLocale"/></contentLocale>
  554. </root>
  555. </xts:transform>
  556. </indexUpdates>
  557. </xts:append>
  558. <xts:delete select="/root/indexUpdateTaskSearchPaths"/>
  559. <xts:delete select="/root/env/param[@name='m_io_includedObjects']"/>
  560. <xts:delete select="/root/env/param[@name='m_io_force']"/>
  561. <xts:delete select="/root/env/param[@name='m_io_indexObjectTypes']"/>
  562. <xts:delete select="/root/env/param[@name='m_io_indexReferencedData']"/>
  563. <xts:delete select="/root/env/param[@name='m_io_indexModeledData']"/>
  564. </xts:sequence>
  565. </xsl:template>
  566. </xsl:stylesheet>
  567. </xts:block>
  568. <!--
  569. ===============================================================================================
  570. generateDefaults - generate any required default values
  571. ===============================================================================================
  572. -->
  573. <xts:block id="generateDefaults" processor="XSLT" type="exec" dependency="genDefaultIndexUpdateOptions" condition=".[string(/root/stillExecuting) = 'true' and /root/env/param[@name = 'm_class'] = 'contentTask']" mandatory="false">
  574. <xts:logicsheet path="logicsheets/contentadmin.xsl"/>
  575. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  576. <xsl:stylesheet version="1.0"
  577. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  578. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  579. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  580. xmlns:adm="http://developer.cognos.com/schemas/xts/logicsheets/contentadmin/"
  581. xmlns:ms="http://www.ibm.com/xmlns/prod/cognos/monitorService/201101/"
  582. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  583. exclude-result-prefixes="xsl cm send adm ms xsi">
  584. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  585. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  586. <xsl:variable name="the-object" select="/root/asyncRequestResponse/response/ms:runSpecificationResponse/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')][1]/historyDetails/*[contains(@xsi:type, ':historyDetailRequestArguments')]"/>
  587. <xsl:variable name="the-namespaces" select="/root/cm:queryResponse/cm:queryReply[1]"/>
  588. <xsl:template match="/">
  589. <xts:sequence>
  590. <xsl:choose>
  591. <xsl:when test="key('env-param','contentTaskType')='consistency'">
  592. <xts:append select="/root/env">
  593. <!-- contentTask options -->
  594. <adm:createOptionsParams/>
  595. </xts:append>
  596. </xsl:when>
  597. <!-- if we're dealing with certain kinds of contentTasks, then we have to query CM for the info needed
  598. display the summary -->
  599. <xsl:otherwise>
  600. <adm:queryContentTaskInfoForSummary/>
  601. </xsl:otherwise>
  602. </xsl:choose>
  603. </xts:sequence>
  604. </xsl:template>
  605. </xsl:stylesheet>
  606. </xts:block>
  607. <!--
  608. ===============================================================================================
  609. queryDeliveryOptionsInfo:
  610. Query CM for the necessary information to build the delivery options summaries
  611. ===============================================================================================
  612. -->
  613. <xts:block id="queryDeliveryOptionsInfo" dependency="getArchiveLocations" type="exec" mode="interpret" processor="XSLT" condition=".[string(/root/stillExecuting) = 'true' and contains(' report interactiveReport query reportView analysis ', concat(' ',/root/env/param[@name='m_class'],' ')) and /root/deliveryOptionsQueries/*[local-name()='query']]" mandatory="false">
  614. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  615. <xsl:stylesheet version="1.0"
  616. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  617. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  618. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  619. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  620. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  621. <xsl:template match="/">
  622. <xts:sequence>
  623. <xts:append>
  624. <deliveryOptionsInfo>
  625. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  626. <send:request provider="cm">
  627. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  628. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  629. <cm:requests>
  630. <xsl:copy-of select="/root/deliveryOptionsQueries/*[local-name()='query']"/>
  631. </cm:requests>
  632. </cm:query>
  633. </xts:transform>
  634. </send:request>
  635. </xts:transform>
  636. </deliveryOptionsInfo>
  637. </xts:append>
  638. </xts:sequence>
  639. </xsl:template>
  640. </xsl:stylesheet>
  641. </xts:block>
  642. <!--
  643. ===============================================================================================
  644. generateUIHelpers:
  645. Use the information queries from CM about the delivery options to build summary strings
  646. for the job and steps to be used by the UI generation
  647. ===============================================================================================
  648. -->
  649. <xts:block id="generateUIHelpers" dependency="queryDeliveryOptionsInfo generateDefaults" type="exec" mode="interpret" processor="XSLT" condition=".[string(/root/stillExecuting) = 'true' and contains(' report interactiveReport query reportView analysis agentDefinition reportDataServiceAgentDefinition agentDefinitionView ', concat(' ',/root/env/param[@name='m_class'],' '))]" mandatory="false">
  650. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  651. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  652. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  653. <xts:logicsheet path="logicsheets/portal.xsl"/>
  654. <xsl:stylesheet version="1.0"
  655. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  656. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  657. xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
  658. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  659. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  660. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  661. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  662. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  663. exclude-result-prefixes="xtsext xsl cm dt pf cf cp xsi">
  664. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  665. <pf:variables/>
  666. <xsl:template match="/">
  667. <xts:sequence>
  668. <xsl:call-template name="dt:generateUIHelpersFromOptions">
  669. <xsl:with-param name="queryReplyPath" select="/root/asyncRequestResponse/response/*[local-name()='runSpecificationResponse']/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')][1]/historyDetails/*[contains(@xsi:type, ':historyDetailRequestArguments')]"/>
  670. <xsl:with-param name="deliveryInfo" select="/root/deliveryOptionsInfo/*[local-name()='queryResponse']"/>
  671. <xsl:with-param name="appendPath" select="'/root'"/>
  672. </xsl:call-template>
  673. </xts:sequence>
  674. </xsl:template>
  675. <dt:generateUIHelpersFromOptions/>
  676. </xsl:stylesheet>
  677. </xts:block>
  678. <!--
  679. ===============================================================================================
  680. render
  681. ===============================================================================================
  682. -->
  683. <xts:block id="render" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="generateUIHelpers generateDefaults getArchiveLocations formlogic_init" condition=".[string(/root/stillExecuting) = 'true']" mandatory="false">
  684. <xts:logicsheet path="portal/history/logicsheets/ui-template.xslt"/>
  685. <xts:logicsheet path="logicsheets/contentadmin.xsl"/>
  686. <xts:logicsheet path="logicsheets/portal.xsl"/>
  687. <xts:logicsheet path="portal/iPrompting/logicsheets/common.xslt"/>
  688. <xts:logicsheet path="logicsheets/presentation/dialog/ui-templates.xsl"/>
  689. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  690. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  691. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  692. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  693. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  694. <xts:logicsheet path="logicsheets/presentation/main/presentation.xsl"/>
  695. <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
  696. <!-- apply the form logic -->
  697. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  698. <xts:logicsheet path="logicsheets/validation.xslt"/>
  699. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  700. <xsl:stylesheet version="1.0"
  701. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  702. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  703. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  704. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  705. xmlns:rhu="http://developer.cognos.com/schemas/xts/historyui"
  706. xmlns:adm="http://developer.cognos.com/schemas/xts/logicsheets/contentadmin/"
  707. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  708. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  709. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  710. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  711. xmlns:ut="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/ui-templates/"
  712. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  713. xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
  714. xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
  715. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  716. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  717. xmlns:prt="http://developer.cognos.com/schemas/xts/iPrompting/logicsheets/common"
  718. xmlns:ms="http://www.ibm.com/xmlns/prod/cognos/monitorService/201101/"
  719. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  720. exclude-result-prefixes="xsl xsi cm lyt rhu adm dp df cf pf ut cp mt mf utml xts prt xtsext ms">
  721. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  722. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  723. <xsl:key name="system-param" match="/root/system/param" use="@name"/>
  724. <xsl:key name="session-param" match="/root/session/param" use="@name"/>
  725. <!-- lines per page by default -->
  726. <xsl:variable name="linesPerPage">
  727. <xsl:choose>
  728. <xsl:when test="key('session-param','linesPerPage')">
  729. <xsl:value-of select="key('session-param','linesPerPage')"/>
  730. </xsl:when>
  731. <xsl:when test="key('system-param','defaultPortalPreferences')/pref[@name='lines']">
  732. <xsl:value-of select="key('system-param','defaultPortalPreferences')/pref[@name='lines']"/>
  733. </xsl:when>
  734. <xsl:otherwise>15</xsl:otherwise>
  735. </xsl:choose>
  736. </xsl:variable>
  737. <!-- current file name -->
  738. <xsl:variable name="mname" select="'history/view_executing_details.xts'"/>
  739. <!-- add variables -->
  740. <pf:variables/>
  741. <mf:variables>
  742. <mf:stateParams>
  743. <xsl:value-of select="' eventID m_class backURL m_name reportVersionPath runHistoryRequestedTime '"/>
  744. </mf:stateParams>
  745. </mf:variables>
  746. <rhu:variables responseType="monitorService"/>
  747. <xsl:variable name="browserTitle">
  748. <xts:string id="IDS_VRH_DETAILS_TITLE">
  749. <xts:param name="objectName">
  750. <span lang="{$contentLocale}"><xsl:value-of select="xtsext:enforceBTD(key('env-param','m_name'), $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></span>
  751. </xts:param>
  752. </xts:string>
  753. </xsl:variable>
  754. <xsl:variable name="cmd-form" select="'pform'"/>
  755. <xsl:variable name="maxObjects" select="key('session-param', 'linesPerPage')"/>
  756. <xsl:variable name="secondaryRequests" select="/root/asyncRequestResponse/response/*/*[local-name()='result']/*[local-name()='secondaryRequests']/*[local-name()='secondaryRequests']"/>
  757. <xsl:variable name="secondaryRequestsSteps" select="/root/*[local-name()='steps']/*[local-name()='asyncRequestResponse']/*[local-name()='response']/*/*[local-name()='result']/*[local-name()='secondaryRequests']/*[local-name()='secondaryRequests']"/>
  758. <!-- used in rhu:timeAndStatus -->
  759. <xsl:variable name="runStatus">
  760. <xsl:value-of select="$eventRecord/status"/>
  761. </xsl:variable>
  762. <!-- start the output -->
  763. <xsl:template match="/root">
  764. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
  765. <mf:head/>
  766. <dp:meta>
  767. <pf:meta/>
  768. <!-- Standard meta tags -->
  769. </dp:meta>
  770. <dp:script>
  771. <pf:help context="HID_VIEW_RUN_HISTORY"/>
  772. <!-- Help system -->
  773. <pf:launch/>
  774. <script type="text/javascript" src="{$webcontent}/{$app}/js/utilities.js"/>
  775. <script language="javascript">
  776. function doApplyFilter()
  777. {
  778. var form = document.pform;
  779. if (form.m_messagesFilterChange)
  780. form.m_messagesFilterChange.value = 'true';
  781. form.m.value = "<xsl:value-of select="$app"/>/<xsl:value-of select="$mname"/>";
  782. form.submit();
  783. }
  784. var imgAnimatedGo = new Image();
  785. imgAnimatedGo.src = "<xsl:value-of select="xtsext:javascriptencode($skin_images)"/>action_go_ani.gif";
  786. function navGo(section) {
  787. var pform = document.pform;
  788. var from = null;
  789. var to = null;
  790. if (section == "messages") {
  791. from = pform.pagerfrom;
  792. to = pform.pagerto;
  793. } else
  794. {
  795. from = pform.pagerfromSteps;
  796. to = pform.pagertoSteps;
  797. }
  798. var fromloc = trim(from.value);
  799. var toloc = trim(to.value);
  800. if (fromloc !="") {
  801. checkPositiveIntegerDefault(from,"");
  802. fromloc = from.value;
  803. if ( fromloc == "" ) {
  804. alert( "<xts:string id="IDS_PAGER_FROM_INVALID" encode="javascript"/>");
  805. return;
  806. }
  807. if (toloc !="") {
  808. checkPositiveIntegerDefault(to,"");
  809. toloc = to.value;
  810. if ( toloc == "" ) {
  811. alert( "<xts:string id="IDS_PAGER_TO_INVALID" encode="javascript"/>");
  812. return;
  813. }
  814. if ( Number(toloc) &lt; Number(fromloc)) {
  815. alert( "<xts:string id="IDS_PAGER_ENTRIES_INVALID" encode="javascript"/>");
  816. return;
  817. }
  818. }
  819. else { //to is empty calculate it
  820. toloc = Number(fromloc) + <xsl:value-of select="$maxObjects"/> -1;
  821. }
  822. } //if (fromloc!="")
  823. else {
  824. if (toloc == "") {
  825. alert ("<xts:string id="IDS_PAGER_ENTRIES_EMPTY" encode="javascript"/>");
  826. return;
  827. }
  828. else {
  829. checkPositiveIntegerDefault(to,"");
  830. toloc = to.value;
  831. if ( toloc == "" ) {
  832. alert( "<xts:string id="IDS_PAGER_TO_INVALID" encode="javascript"/>");
  833. return;
  834. }
  835. fromloc = Number(toloc) - <xsl:value-of select="$maxObjects"/> +1;
  836. if (Number(fromloc) &lt; 0) {
  837. fromloc=1;
  838. }
  839. }
  840. }
  841. if (section == "messages")
  842. {
  843. pform.m_pagerfrom.value=fromloc;
  844. pform.m_pagerto.value=toloc;
  845. } else
  846. {
  847. pform.m_pagerfromSteps.value=fromloc;
  848. pform.m_pagertoSteps.value=toloc;
  849. }
  850. pform.ps_nav_op.value='maintain';
  851. document.pform.submit();
  852. if (section == 'messages')
  853. {
  854. document.getElementById('img_messages_go').src = imgAnimatedGo.src;
  855. }
  856. else
  857. {
  858. document.getElementById('img_messages_goSteps').src = imgAnimatedGo.src;
  859. }
  860. }
  861. function doPagerAction(action, mode) {
  862. if (mode=="messages") {
  863. document.pform.secondaryRequest.value = action;
  864. } else
  865. {
  866. document.pform.secondaryRequestSteps.value = action;
  867. }
  868. document.pform.submit();
  869. }
  870. function refreshPage()
  871. {
  872. form = document.pform;
  873. if (form.m.value != '<xsl:value-of select="$app"/>/<xsl:value-of select="$mname"/>')
  874. {
  875. form.m.value = "<xsl:value-of select="$app"/>/<xsl:value-of select="$mname"/>";
  876. form.m_obj.value = "<xsl:value-of select="xtsext:javascriptencode(string(/root/cm:queryResponse[1]/cm:queryReply[1]/*[1]/cm:parent/*/cm:searchPath))"/>";
  877. form.backURL.value = "<xsl:value-of select="xtsext:javascriptencode(string(key('env-param','backURL')))"/>";
  878. }
  879. document.pform.submit();
  880. }
  881. </script>
  882. </dp:script>
  883. <utml:form name="pform" method="post" action="{$gateway}">
  884. <!-- savedEnv used to pass environment to ReportViewer with cognosLaunch javascript -->
  885. <xsl:variable name="params">
  886. <xsl:for-each select="/root/*[local-name()='env']/*[local-name()='param']">
  887. <xsl:call-template name="serialize-xml">
  888. <xsl:with-param name="node-set" select="."/>
  889. </xsl:call-template>
  890. </xsl:for-each>
  891. </xsl:variable>
  892. <xsl:variable name="savedEnv">
  893. <xsl:value-of select="xtsext:cafaction(concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($params), true()))"/>
  894. </xsl:variable>
  895. <!-- used for the actions -->
  896. <xsl:if test="contains(' agentDefinition reportDataServiceAgentDefinition agentDefinitionView jobDefinition humanTask report interactiveReport query analysis reportView ',concat(' ',$objectType,' '))">
  897. <utml:input type="hidden" name="reportVersionPath"/>
  898. <utml:input type="hidden" name="runHistoryRequestedTime"/>
  899. </xsl:if>
  900. <!-- used for sorting -->
  901. <utml:input type="hidden" name="m_s_hd"/>
  902. <utml:input type="hidden" name="ifrmcmd" value="" utml:update="false"/>
  903. <utml:input type="hidden" name="m_obj" value=""/>
  904. <utml:input type="hidden" name="m_pagerfrom" value="" utml:update="false"/>
  905. <utml:input type="hidden" name="m_pagerto" value="" utml:update="false"/>
  906. <utml:input type="hidden" name="secondaryRequest" value="" utml:update="false"/>
  907. <utml:input type="hidden" name="m_pagerfromSteps" value="" utml:update="false"/>
  908. <utml:input type="hidden" name="m_pagertoSteps" value="" utml:update="false"/>
  909. <utml:input type="hidden" name="secondaryRequestSteps" value="" utml:update="false"/>
  910. <!--
  911. if the conversation status is not complete, then we need to keep track of the conversation
  912. and the tracking information
  913. -->
  914. <xsl:if test="string($secondaryRequests) != '' or string(/root/asyncRequestResponse/status) != 'conversationComplete'">
  915. <utml:input type="hidden" name="web64conversation" utml:update="false">
  916. <utml:value><xsl:value-of select="/root/asyncRequestResponse/conversation"/></utml:value>
  917. </utml:input>
  918. <utml:input type="hidden" name="tracking" utml:update="false">
  919. <utml:value><xsl:value-of select="/root/asyncRequestResponse/tracking"/></utml:value>
  920. </utml:input>
  921. </xsl:if>
  922. <!--
  923. if the conversation status is not complete, then we need to keep track of the conversation
  924. and the tracking information
  925. -->
  926. <xsl:if test="string($secondaryRequestsSteps) != '' or string(/root/steps/asyncRequestResponse/status) != 'conversationComplete'">
  927. <utml:input type="hidden" name="web64conversationSteps" utml:update="false">
  928. <utml:value><xsl:value-of select="/root/steps/asyncRequestResponse/conversation"/></utml:value>
  929. </utml:input>
  930. <utml:input type="hidden" name="trackingSteps" utml:update="false">
  931. <utml:value><xsl:value-of select="/root/steps/asyncRequestResponse/tracking"/></utml:value>
  932. </utml:input>
  933. </xsl:if>
  934. <dp:header>
  935. <dp:title>
  936. <xsl:copy-of select="$browserTitle"/>
  937. </dp:title>
  938. <dp:description>
  939. <xts:string id="IDS_VRH_DETAILS_DESCRIPTION"/>
  940. </dp:description>
  941. <dp:headerLinks>
  942. <dp:headerLink>
  943. <dp:hl_attribute name="href">javascript:refreshPage();</dp:hl_attribute>
  944. <dp:hl_attribute name="label"><xts:string id="IDS_REFRESH"/></dp:hl_attribute>
  945. </dp:headerLink>
  946. </dp:headerLinks>
  947. <dp:close>
  948. <a href="{string(key('env-param', 'backURL'))}">
  949. <dp:closeMarker/>
  950. </a>
  951. </dp:close>
  952. </dp:header>
  953. <!-- history information -->
  954. <rhu:timeAndStatus responseType="monitorService"/>
  955. <!-- history details -->
  956. <xsl:variable name="historyDetails" select="/root/asyncRequestResponse/response/ms:runSpecificationResponse/result/details/*[contains(@xsi:type,':asynchDetailEventRecord')]/historyDetails/*[contains(concat(@xsi:type,' '), ':historyDetail ')]"/>
  957. <lyt:layout style="1" title="IDS_DEPLOYMENT_DETAILED_RECORD_MESSAGES" border="yes">
  958. <lyt:section>
  959. <!--
  960. if the user is looking at a deployment that's done executing, then show a message letting them know
  961. that they're still only looking at summary information
  962. -->
  963. <xsl:if test="($objectType = 'exportDeployment' or $objectType = 'importDeployment') and contains('succeeded failed cancelled purged terminated ', $runStatus)">
  964. <dp:choice>
  965. <dp:section1 wrap="wrap">
  966. <img height="30" width="30">
  967. <xsl:attribute name="alt"><xts:string id="IDS_ICON_TIP"/></xsl:attribute>
  968. <xsl:attribute name="src"><xsl:value-of select="$skin_images"/>tip_template.gif</xsl:attribute>
  969. </img>
  970. </dp:section1>
  971. <dp:section2 wrap="wrap">
  972. <xts:string id="IDS_VRH_ONLY_PROGRESS_INFO"/>
  973. </dp:section2>
  974. </dp:choice>
  975. </xsl:if>
  976. <!-- need to do our own pager buttons to handle doing the secondary async request -->
  977. <table cellspacing="0" cellpadding="1" width="100%" role="presentation">
  978. <tr>
  979. <td class="formLabel" nowrap="nowrap">
  980. <label for="lbl_severity"><xts:string id="IDS_VRH_DETAILS_SEVERITY"/></label>
  981. </td>
  982. <td width="100%" aling="left" style="padding-left:10px;">
  983. <rhu:severity/>
  984. </td>
  985. <td style="white-space: nowrap; padding-right: 5px;" class="formText"><xts:string id="IDS_ENTRIES"/></td>
  986. <td nowrap="">
  987. <utml:input type="text" maxlength="9" class="formText" size="4" name="pagerfrom" utml:update="false">
  988. <xsl:attribute name="title"><xts:string id="IDS_ENTRIES_FROM"/></xsl:attribute>
  989. <xsl:attribute name="value">
  990. <xsl:choose>
  991. <xsl:when test="string($historyDetails[1]/position/value) != ''"><xsl:value-of select="$historyDetails[1]/position/value"/></xsl:when>
  992. <xsl:when test="key('env-param','m_pagerfrom') != ''"><xsl:value-of select="key('env-param','m_pagerfrom')"/></xsl:when>
  993. </xsl:choose>
  994. </xsl:attribute>
  995. </utml:input>
  996. <xsl:value-of select="' - '"/>
  997. <utml:input type="text" maxlength="9" class="formText" size="4" name="pagerto" utml:update="false">
  998. <xsl:attribute name="title"><xts:string id="IDS_ENTRIES_TO"/></xsl:attribute>
  999. <xsl:attribute name="value">
  1000. <xsl:choose>
  1001. <xsl:when test="string($historyDetails[position() = last()]/position/value) != ''"><xsl:value-of select="$historyDetails[1]/position/value"/></xsl:when>
  1002. <xsl:when test="key('env-param','m_pagerto') != ''"><xsl:value-of select="key('env-param','m_pagerto')"/></xsl:when>
  1003. </xsl:choose>
  1004. </xsl:attribute>
  1005. </utml:input>
  1006. </td>
  1007. <td nowrap="" style="padding-right: 8px; padding-left: 2px;">
  1008. <a href="javascript:navGo('messages');">
  1009. <img id="img_messages_go" class="button" border="0" width="16" height="16" src="{$skin_images}action_go.gif" onmousedown="this.className='button_pressed'" onmouseover="this.className='button_hover'" onmouseout="this.className='button'" role="button">
  1010. <xsl:attribute name="alt"><xts:string id="IDS_PAGER_GO_TO"/></xsl:attribute>
  1011. </img>
  1012. </a>
  1013. </td>
  1014. <td nowrap="">
  1015. <div class="rowDivider" style="height: 13px;"/>
  1016. </td>
  1017. <td nowrap="" style="padding-left: 8px;">
  1018. <xsl:call-template name="pagerButton">
  1019. <xsl:with-param name="tooltip"><xts:string id="IDS_PAGER_FIRST"/></xsl:with-param>
  1020. <xsl:with-param name="image" select="'control_btn_top'"/>
  1021. <xsl:with-param name="action" select="$secondaryRequests/name[.='firstPage']"/>
  1022. <xsl:with-param name="mode" select="'messages'"/>
  1023. </xsl:call-template>
  1024. <img height="1" width="2" src="{$webcontent}/images/space.gif"/>
  1025. <xsl:call-template name="pagerButton">
  1026. <xsl:with-param name="tooltip"><xts:string id="IDS_PAGER_PAGEUP"/></xsl:with-param>
  1027. <xsl:with-param name="image" select="'control_btn_pageup'"/>
  1028. <xsl:with-param name="action" select="$secondaryRequests/name[.='previousPage']"/>
  1029. <xsl:with-param name="mode" select="'messages'"/>
  1030. </xsl:call-template>
  1031. <img height="1" width="2" src="{$webcontent}/images/space.gif"/>
  1032. <xsl:call-template name="pagerButton">
  1033. <xsl:with-param name="tooltip"><xts:string id="IDS_PAGER_PAGEDOWN"/></xsl:with-param>
  1034. <xsl:with-param name="image" select="'control_btn_pagedown'"/>
  1035. <xsl:with-param name="action" select="$secondaryRequests/name[.='nextPage']"/>
  1036. <xsl:with-param name="mode" select="'messages'"/>
  1037. </xsl:call-template>
  1038. <img height="1" width="2" src="{$webcontent}/images/space.gif"/>
  1039. <xsl:call-template name="pagerButton">
  1040. <xsl:with-param name="tooltip"><xts:string id="IDS_PAGER_LAST"/></xsl:with-param>
  1041. <xsl:with-param name="image" select="'control_btn_bottom'"/>
  1042. <xsl:with-param name="action" select="$secondaryRequests/name[.='lastPage']"/>
  1043. <xsl:with-param name="mode" select="'messages'"/>
  1044. </xsl:call-template>
  1045. <img height="1" width="2" src="{$webcontent}/images/space.gif"/>
  1046. </td>
  1047. </tr>
  1048. </table>
  1049. <cp:table name="messages" iterate="$historyDetails" showEmptyMsg="true">
  1050. <cp:tableSummary><xts:string id="IDS_VRH_DETAILS_MESSAGES_SUMMARY"/></cp:tableSummary>
  1051. <!-- Column Headers -->
  1052. <cp:tableHeader session-name="s_hd">
  1053. <cp:columnHeader width="200" sort="t">
  1054. <cp:sortHref>
  1055. <xsl:text>javascript:document.pform.m_s_hd.value=</xsl:text><xsl:choose><xsl:when test="key('session-param', 's_hd') = 'ta' ">'td'</xsl:when><xsl:when test="key('session-param', 's_hd') = 'td'">'sa'</xsl:when><xsl:otherwise>'ta'</xsl:otherwise></xsl:choose><xsl:text>;document.pform.submit();</xsl:text>
  1056. </cp:sortHref>
  1057. <xts:string id="IDS_VRH_DETAILS_TIME"/>
  1058. </cp:columnHeader>
  1059. <cp:columnHeader width="16"/>
  1060. <cp:columnHeader width="100%">
  1061. <xts:string id="IDS_VRH_DETAILS_MESSAGE"/>
  1062. </cp:columnHeader>
  1063. </cp:tableHeader>
  1064. <cp:tableContent>
  1065. <cp:columnContent valign="top">
  1066. <xsl:value-of select="xtsext:formatDateFromUTC( string( detailTime/value ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
  1067. </cp:columnContent>
  1068. <cp:columnContent valign="top">
  1069. <xsl:call-template name="gen-message-icon">
  1070. <xsl:with-param name="statusPath" select="string(severity/value)"/>
  1071. </xsl:call-template>
  1072. </cp:columnContent>
  1073. <cp:columnContent wrap="wrap" valign="top">
  1074. <xsl:value-of select="detail/value"/>
  1075. </cp:columnContent>
  1076. </cp:tableContent>
  1077. </cp:table>
  1078. </lyt:section>
  1079. </lyt:layout>
  1080. <xsl:choose>
  1081. <xsl:when test="contains(' jobDefinition agentDefinition reportDataServiceAgentDefinition agentDefinitionView humanTask ',concat(' ',$objectType,' '))">
  1082. <xsl:variable name="className">
  1083. <xsl:choose>
  1084. <xsl:when test="string($objectType)='jobDefinition'">
  1085. <xts:string id="IDS_OBJ_JOBDEFINITION"/>
  1086. </xsl:when>
  1087. <xsl:when test="string($objectType)='agentDefinition'">
  1088. <xts:string id="IDS_OBJ_AGENT"/>
  1089. </xsl:when>
  1090. <!-- This is for the watch rules -->
  1091. <xsl:when test="string($objectType)='reportDataServiceAgentDefinition'">
  1092. <xts:string id="IDS_OBJ_WATCHRULE"/>
  1093. </xsl:when>
  1094. <xsl:when test="string($objectType)='agentDefinitionView'">
  1095. <xts:string id="IDS_OBJ_AGENTVIEW"/>
  1096. </xsl:when>
  1097. <xsl:when test="string($objectType)='humanTask'">
  1098. <xts:string id="IDS_OBJ_HUMANTASK"/>
  1099. </xsl:when>
  1100. </xsl:choose>
  1101. </xsl:variable>
  1102. <xsl:variable name="steps" select="/root/steps/asyncRequestResponse/response/*/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')]"/>
  1103. <lyt:layout style="1" longTitle="$className" border="yes">
  1104. <lyt:section>
  1105. <xsl:if test="contains('agentDefinition reportDataServiceAgentDefinition', concat(' ',$objectType, ' '))">
  1106. <dp:list>
  1107. <dp:section>
  1108. <dp:label>
  1109. <xts:string id="IDS_VRH_DETAILS_OPTIONS"/>
  1110. </dp:label>
  1111. </dp:section>
  1112. <dp:section>
  1113. <xsl:choose>
  1114. <xsl:when test="$the-object != '' ">
  1115. <xsl:if test="/root/*[local-name()='UIHelpers']/*[local-name()='parameterDescription']!=''">
  1116. <dp:text><xsl:value-of select="/root/*[local-name()='UIHelpers']/*[local-name()='parameterDescription']"/></dp:text>
  1117. </xsl:if>
  1118. </xsl:when>
  1119. <xsl:otherwise>
  1120. <dp:text><xts:string id="IDS_VRH_DETAILS_OPTIONS_UNAVAILABLE"/></dp:text>
  1121. </xsl:otherwise>
  1122. </xsl:choose>
  1123. </dp:section>
  1124. </dp:list>
  1125. </xsl:if>
  1126. </lyt:section>
  1127. <lyt:section>
  1128. <dp:list>
  1129. <dp:section>
  1130. <dp:label>
  1131. <xsl:choose>
  1132. <xsl:when test="string($objectType)='jobDefinition'">
  1133. <xts:string id="IDS_PROP_JOB_STEPS_LABEL"/>
  1134. </xsl:when>
  1135. <xsl:when test="string($objectType)='reportDataServiceAgentDefinition'">
  1136. <xts:string id="IDS_VRH_DETAILS_TASKS_WATCH_RULES"/>
  1137. </xsl:when>
  1138. <xsl:when test="contains(string($objectType),'agentDefinition')">
  1139. <xts:string id="IDS_VRH_DETAILS_TASKS_EVENTS"/>
  1140. </xsl:when>
  1141. <xsl:when test="contains(string($objectType),'humanTask')">
  1142. <xts:string id="IDS_VRH_DETAILS_TASKS_HUMANTASK"/>
  1143. </xsl:when>
  1144. </xsl:choose>
  1145. </dp:label>
  1146. <dp:text width="100%"/>
  1147. </dp:section>
  1148. </dp:list>
  1149. <!-- need to do our own pager buttons to handle doing the secondary async request -->
  1150. <table cellspacing="0" cellpadding="1" width="100%">
  1151. <tr>
  1152. <td width="100%" align="left"/>
  1153. <td style="white-space: nowrap; padding-right: 5px;" class="formText"><xts:string id="IDS_ENTRIES"/></td>
  1154. <td nowrap="">
  1155. <utml:input type="text" maxlength="9" class="formText" size="4" name="pagerfromSteps" utml:update="false">
  1156. <xsl:attribute name="aria-label"><xts:string id="IDS_ENTRIES_FROM" encode="html"/></xsl:attribute>
  1157. <xsl:attribute name="value">
  1158. <xsl:choose>
  1159. <xsl:when test="string($steps[1]/runnable/runnable/position/value) != ''"><xsl:value-of select="$steps[1]/runnable/runnable/position/value"/></xsl:when>
  1160. <xsl:when test="key('env-param','m_pagerfromSteps') != ''"><xsl:value-of select="key('env-param','m_pagerfromSteps')"/></xsl:when>
  1161. </xsl:choose>
  1162. </xsl:attribute>
  1163. </utml:input>
  1164. <xsl:value-of select="' - '"/>
  1165. <utml:input type="text" maxlength="9" class="formText" size="4" name="pagertoSteps" utml:update="false">
  1166. <xsl:attribute name="aria-label"><xts:string id="IDS_ENTRIES_TO" encode="html"/></xsl:attribute>
  1167. <xsl:attribute name="value">
  1168. <xsl:choose>
  1169. <xsl:when test="string($steps[position() = last()]/runnable/runnable/position/value) != ''"><xsl:value-of select="$steps[position() = last()]/runnable/runnable/position/value"/></xsl:when>
  1170. <xsl:when test="key('env-param','m_pagertoSteps') != ''"><xsl:value-of select="key('env-param','m_pagertoSteps')"/></xsl:when>
  1171. </xsl:choose>
  1172. </xsl:attribute>
  1173. </utml:input>
  1174. </td>
  1175. <td nowrap="" style="padding-right: 8px; padding-left: 2px;">
  1176. <a href="javascript:navGo('steps');">
  1177. <img id="img_messages_goSteps" class="button" border="0" width="16" height="16" src="{$skin_images}action_go.gif" onmousedown="this.className='button_pressed'" onmouseover="this.className='button_hover'" onmouseout="this.className='button'">
  1178. <xsl:attribute name="alt"><xts:string id="IDS_PAGER_GO_TO"/></xsl:attribute>
  1179. </img>
  1180. </a>
  1181. </td>
  1182. <td nowrap="">
  1183. <div class="rowDivider" style="height: 13px;"/>
  1184. </td>
  1185. <td nowrap="" style="padding-left: 8px;">
  1186. <xsl:call-template name="pagerButton">
  1187. <xsl:with-param name="tooltip"><xts:string id="IDS_PAGER_FIRST"/></xsl:with-param>
  1188. <xsl:with-param name="image" select="'control_btn_top'"/>
  1189. <xsl:with-param name="action" select="$secondaryRequestsSteps/name[.='firstPage']"/>
  1190. <xsl:with-param name="mode" select="'steps'"/>
  1191. </xsl:call-template>
  1192. <img height="1" width="2" src="{$webcontent}/images/space.gif"/>
  1193. <xsl:call-template name="pagerButton">
  1194. <xsl:with-param name="tooltip"><xts:string id="IDS_PAGER_PAGEUP"/></xsl:with-param>
  1195. <xsl:with-param name="image" select="'control_btn_pageup'"/>
  1196. <xsl:with-param name="action" select="$secondaryRequestsSteps/name[.='previousPage']"/>
  1197. <xsl:with-param name="mode" select="'steps'"/>
  1198. </xsl:call-template>
  1199. <img height="1" width="2" src="{$webcontent}/images/space.gif"/>
  1200. <xsl:call-template name="pagerButton">
  1201. <xsl:with-param name="tooltip"><xts:string id="IDS_PAGER_PAGEDOWN"/></xsl:with-param>
  1202. <xsl:with-param name="image" select="'control_btn_pagedown'"/>
  1203. <xsl:with-param name="action" select="$secondaryRequestsSteps/name[.='nextPage']"/>
  1204. <xsl:with-param name="mode" select="'steps'"/>
  1205. </xsl:call-template>
  1206. <img height="1" width="2" src="{$webcontent}/images/space.gif"/>
  1207. <xsl:call-template name="pagerButton">
  1208. <xsl:with-param name="tooltip"><xts:string id="IDS_PAGER_LAST"/></xsl:with-param>
  1209. <xsl:with-param name="image" select="'control_btn_bottom'"/>
  1210. <xsl:with-param name="action" select="$secondaryRequestsSteps/name[.='lastPage']"/>
  1211. <xsl:with-param name="mode" select="'steps'"/>
  1212. </xsl:call-template>
  1213. <img height="1" width="2" src="{$webcontent}/images/space.gif"/>
  1214. </td>
  1215. </tr>
  1216. </table>
  1217. <cp:table name="jobsteps" iterate="$steps" showEmptyMsg="true">
  1218. <!-- Column Headers -->
  1219. <cp:tableHeader>
  1220. <!-- Icon Column -->
  1221. <cp:columnHeader width="20"/>
  1222. <!-- Path Column -->
  1223. <cp:columnHeader width="120">
  1224. <span style="padding-left: 1px; padding-right: 1px;"><xts:string id="IDS_PATH_INDICATOR"/>&#160;</span>
  1225. <xsl:text/><xts:string id="IDS_HEADING_REPORT_NAME"/><xsl:text/>
  1226. </cp:columnHeader>
  1227. <!-- Task Requested Column -->
  1228. <cp:columnHeader width="125">
  1229. <xts:string id="IDS_HEADING_REQEXECTIME"/>
  1230. </cp:columnHeader>
  1231. <!-- Task Started Column -->
  1232. <cp:columnHeader width="125">
  1233. <xts:string id="IDS_HEADING_ACTUALEXECTIME"/>
  1234. </cp:columnHeader>
  1235. <!-- Task Completed Column -->
  1236. <cp:columnHeader width="125">
  1237. <xts:string id="IDS_HEADING_ACTUALCOMPTIME"/>
  1238. </cp:columnHeader>
  1239. <!-- Status Column -->
  1240. <cp:columnHeader width="75">
  1241. <xts:string id="IDS_HEADING_STATUS"/>
  1242. </cp:columnHeader>
  1243. <!-- Actions Column -->
  1244. <cp:columnHeader width="100%">
  1245. <xts:string id="IDS_HEADING_ACTIONS"/>
  1246. </cp:columnHeader>
  1247. </cp:tableHeader>
  1248. <!-- Column contents -->
  1249. <cp:tableContent>
  1250. <xsl:variable name="isDangling" select="false()"/>
  1251. <xsl:variable name="isOrphanHistory" select="false()"/>
  1252. <xsl:variable name="step-name" select="runnable/runnable/defaultName /value"/>
  1253. <xsl:variable name="step-objectClass" select="runnable/runnable/objectClass/value"/>
  1254. <!-- Icon Column -->
  1255. <cp:columnContent>
  1256. <xsl:call-template name="gen-icon">
  1257. <xsl:with-param name="baseClass" select="$step-objectClass"/>
  1258. <xsl:with-param name="class" select="$step-objectClass"/>
  1259. <xsl:with-param name="isDangling" select="$isDangling"/>
  1260. </xsl:call-template>
  1261. </cp:columnContent>
  1262. <!-- Path Column -->
  1263. <cp:columnContent>
  1264. <xsl:if test=" $step-name != '' and not(contains(' storedProcedureTask webServiceTask memo shortcutRSSTask urlRSSTask ', concat(' ',$step-objectClass,' '))) ">
  1265. <img align="absmiddle" height="16" width="20" src="{$skin_images}path.gif">
  1266. <xsl:attribute name="alt">
  1267. <xsl:for-each select="runnable/runnable/ancestors/value/value">
  1268. <!-- APAR 87399 PI62572 WRONG JOB LOCATION SHOWN IN CURRENT ACTIVITIES -->
  1269. <xsl:if test="position() != 1"><xsl:value-of select="' &gt; '"/></xsl:if>
  1270. <xsl:value-of select="title"/>
  1271. </xsl:for-each>
  1272. </xsl:attribute>
  1273. </img>
  1274. <xsl:text>&#160;</xsl:text>
  1275. </xsl:if>
  1276. <xsl:choose>
  1277. <xsl:when test=" $step-name != '' ">
  1278. <span lang="{$contentLocale}"><xsl:value-of select="$step-name"/></span>
  1279. </xsl:when>
  1280. <xsl:otherwise>
  1281. <xts:string id="IDS_MISSING_STEP"/>
  1282. </xsl:otherwise>
  1283. </xsl:choose>
  1284. </cp:columnContent>
  1285. <!-- Task Requested Column -->
  1286. <cp:columnContent>
  1287. <xsl:if test="string(history/history/requestedExecutionTime/value) != ''">
  1288. <xsl:value-of select="xtsext:formatDateFromUTC( string( history/history/requestedExecutionTime/value ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
  1289. </xsl:if>
  1290. </cp:columnContent>
  1291. <!-- Task Started Column -->
  1292. <cp:columnContent>
  1293. <xsl:if test="string(history/history/actualExecutionTime/value) != ''">
  1294. <xsl:value-of select="xtsext:formatDateFromUTC( string( history/history/actualExecutionTime/value ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
  1295. </xsl:if>
  1296. </cp:columnContent>
  1297. <!--Task Completed Column -->
  1298. <cp:columnContent>
  1299. <xsl:if test="string(history/history/actualCompletionTime/value) != ''">
  1300. <xsl:value-of select="xtsext:formatDateFromUTC( string( history/history/actualCompletionTime/value ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
  1301. </xsl:if>
  1302. </cp:columnContent>
  1303. <!-- Status Column -->
  1304. <cp:columnContent>
  1305. <xsl:variable name="step-status" select="status"/>
  1306. <xsl:choose>
  1307. <xsl:when test="$step-status='pending'">
  1308. <xts:string id="IDS_JOB_STATUS_PENDING"/>
  1309. </xsl:when>
  1310. <xsl:when test="$step-status='suspended'">
  1311. <xts:string id="IDS_JOB_STATUS_SUSPENDED"/>
  1312. </xsl:when>
  1313. <xsl:when test="$step-status='executing'">
  1314. <xts:string id="IDS_JOB_STATUS_EXECUTING"/>
  1315. </xsl:when>
  1316. <xsl:when test="$step-status='succeeded'">
  1317. <xts:string id="IDS_JOB_STATUS_SUCCEEDED"/>
  1318. </xsl:when>
  1319. <xsl:when test="$step-status='failed'">
  1320. <xts:string id="IDS_JOB_STATUS_FAILED"/>
  1321. </xsl:when>
  1322. <xsl:when test="$step-status='inactive'">
  1323. <xts:string id="IDS_JOB_STATUS_INACTIVE"/>
  1324. </xsl:when>
  1325. <xsl:when test="$step-status='cancelled' or $step-status='terminated' or $step-status='purged'">
  1326. <xts:string id="IDS_JOB_STATUS_CANCELLED"/>
  1327. </xsl:when>
  1328. </xsl:choose>
  1329. </cp:columnContent>
  1330. <cp:columnContent>
  1331. <xsl:variable name="savedOutputPath" select="string(historyDetails/historyDetails[contains(@*[local-name()='type'], ':historyDetailReportService')]/output/value/value/searchPath/value)"/>
  1332. <xsl:if test="not($isOrphanHistory)">
  1333. <xsl:call-template name="action-properties">
  1334. <xsl:with-param name="obj-name" select="$step-name"/>
  1335. <xsl:with-param name="obj-path" select="runnable/runnable/searchPath/value"/>
  1336. <xsl:with-param name="history-path" select="concat('//history[@eventID=&quot;', history/history/eventID/value, '&quot;]')"/>
  1337. <xsl:with-param name="class" select="$step-objectClass"/>
  1338. <xsl:with-param name="reportVersion-path" select="$savedOutputPath"/>
  1339. <xsl:with-param name="runHistoryRequestedTime" select="history/history/requestedExecutionTime/value"/>
  1340. <xsl:with-param name="eventID" select="history/history/eventID/value"/>
  1341. <xsl:with-param name="supportViewOutputsAction" select="$savedOutputPath != ''"/>
  1342. <xsl:with-param name="supportViewRunHistoryDetails" select="'true'"/>
  1343. </xsl:call-template>
  1344. </xsl:if>
  1345. </cp:columnContent>
  1346. </cp:tableContent>
  1347. </cp:table>
  1348. </lyt:section>
  1349. </lyt:layout>
  1350. </xsl:when>
  1351. <xsl:when test="$objectType='report' or $objectType='query' or $objectType='reportView' or $objectType='analysis'">
  1352. <rhu:reportHistoryOptionsSummary responseType="monitorService"/>
  1353. </xsl:when>
  1354. <xsl:when test="$objectType='planningTask' or $objectType='planningMacroTask'"/>
  1355. <!-- no optons section -->
  1356. <xsl:when test="$eventRecord != '' ">
  1357. <xsl:choose>
  1358. <xsl:when test="$objectType='contentTask'">
  1359. <!-- content task options section -->
  1360. <adm:historyOptionsSummary optionsPath="/root/asyncRequestResponse/response/ms:runSpecificationResponse/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')][1]/historyDetails/*[contains(@xsi:type, ':historyDetailRequestArguments')]/options"/>
  1361. </xsl:when>
  1362. <xsl:when test="$objectType='indexUpdateTask'">
  1363. <!-- content task options section -->
  1364. <rhu:indexUpdateTaskOptionsSummary optionsPath="/root/asyncRequestResponse/response/ms:runSpecificationResponse/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')][1]/historyDetails/*[contains(@xsi:type, ':historyDetailRequestArguments')]/options"/>
  1365. </xsl:when>
  1366. <xsl:when test="$objectType='metricsExportTask'">
  1367. <rhu:metricsHistoryExportOptionsSummary/>
  1368. </xsl:when>
  1369. <xsl:when test="$objectType='metricsMaintenanceTask'">
  1370. <rhu:metricsHistoryMaintenanceOptionsSummary/>
  1371. </xsl:when>
  1372. <xsl:when test="$objectType='metricsFileImportTask'">
  1373. <rhu:metricsHistoryImportFromFileOptionsSummary/>
  1374. </xsl:when>
  1375. <xsl:when test="$objectType='metricsDataSourceETLTask'">
  1376. <rhu:metricsHistoryImportFromDataSourceOptionsSummary/>
  1377. </xsl:when>
  1378. <xsl:otherwise/>
  1379. </xsl:choose>
  1380. </xsl:when>
  1381. <xsl:otherwise>
  1382. <rhu:optionsUnavailable/>
  1383. </xsl:otherwise>
  1384. </xsl:choose>
  1385. <!-- footer: Close button. -->
  1386. <dp:footer>
  1387. <df:button df:id="IDS_CLOSE" df:style="back-url"/>
  1388. </dp:footer>
  1389. </utml:form>
  1390. </dp:page>
  1391. </xsl:template>
  1392. <!--
  1393. Template that generates the first, previous, next and last pager buttons
  1394. -->
  1395. <xsl:template name="pagerButton">
  1396. <xsl:param name="tooltip" select="''"/>
  1397. <xsl:param name="image" select="''"/>
  1398. <xsl:param name="action" select="''"/>
  1399. <xsl:param name="mode" select="''"/>
  1400. <xsl:choose>
  1401. <xsl:when test="string($action) != ''">
  1402. <a title="{$tooltip}" href="javascript:doPagerAction('{xtsext:javascriptencode(string($action))}', '{xtsext:javascriptencode(string($mode))}')" onmouseout="window.status='';return true;" onmouseover="window.status='';return true;" role="button">
  1403. <img width="13" height="13" class="button" alt="{$tooltip}" title="{$tooltip}" onmouseout="this.className='button'" onmouseover="this.className='button_hover'" onmousedown="this.className='button_pressed'">
  1404. <xsl:attribute name="src"><xsl:value-of select="$skin_images"/><xsl:value-of select="$image"/>.gif</xsl:attribute>
  1405. </img>
  1406. </a>
  1407. </xsl:when>
  1408. <xsl:otherwise>
  1409. <img width="13" height="13" class="button" alt="{$tooltip}" title="{$tooltip}" role="button" aria-disabled="true">
  1410. <xsl:attribute name="src"><xsl:value-of select="$skin_images"/><xsl:value-of select="$image"/>_disabled.gif</xsl:attribute>
  1411. </img>
  1412. </xsl:otherwise>
  1413. </xsl:choose>
  1414. </xsl:template>
  1415. <pf:gen-icon/>
  1416. <pf:serialize-xml/>
  1417. <rhu:genMessageIcons/>
  1418. <prt:renderValuePrompts/>
  1419. <mt:actions mode="tools" maintain="true" monitorServiceResponse="true" viewOutputForm="pform"/>
  1420. </xsl:stylesheet>
  1421. </xts:block>
  1422. <!--
  1423. ===============================================================================================
  1424. If the task is done executing, then redirect the user to the correct view details
  1425. dialog which queries CM
  1426. ===============================================================================================
  1427. -->
  1428. <xts:block id="redirect" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="generateUIHelpers generateDefaults getArchiveLocations formlogic_init" condition=".[string(/root/stillExecuting) = 'false']" mandatory="false">>
  1429. <xts:logicsheet path="logicsheets/portal.xsl"/>
  1430. <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
  1431. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  1432. <xsl:stylesheet version="1.0"
  1433. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  1434. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  1435. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  1436. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  1437. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  1438. exclude-result-prefixes="xsl pf dp xtsext cp">
  1439. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  1440. <pf:variables/>
  1441. <xsl:template match="/">
  1442. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text><dp:page longTitle="$product_name">
  1443. <dp:meta>
  1444. <pf:meta/> <!-- Add standard meta tags -->
  1445. </dp:meta>
  1446. <form name="pform" method="post" action="{$gateway}">
  1447. <xsl:variable name="class" select="key('env-param','m_class')"/>
  1448. <input name="m" type="hidden">
  1449. <xsl:attribute name="value">
  1450. <xsl:value-of select="$app"/>
  1451. <xsl:choose>
  1452. <xsl:when test="$class = 'exportDeployment' or $class = 'importDeployment'">
  1453. <xsl:value-of select="'/history/deployment_details.xts'"/>
  1454. </xsl:when>
  1455. <xsl:when test="$class = 'dataMovementTask' or $class = 'dataMovementTaskAlias'">
  1456. <xsl:value-of select="'/history/dataMovement_details.xts'"/>
  1457. </xsl:when>
  1458. <xsl:otherwise>
  1459. <xsl:value-of select="'/history/view_details.xts'"/>
  1460. </xsl:otherwise>
  1461. </xsl:choose>
  1462. </xsl:attribute>
  1463. </input>
  1464. <input name="m_obj" type="hidden" value="//history[@eventID = '{key('env-param','eventID')}']"/>
  1465. <xsl:for-each select="/root/env/param[@name != 'm' and @name != 'm_obj' and @name != 'web64conversation' and @name != 'tracking' and @name != 'web64conversationSteps' and @name != 'trackingSteps' ]">
  1466. <input name="{@name}" type="hidden" value="{.}"/>
  1467. </xsl:for-each>
  1468. </form>
  1469. <script language="javascript">
  1470. function init()
  1471. {
  1472. document.pform.submit();
  1473. }
  1474. </script>
  1475. </dp:page>
  1476. </xsl:template>
  1477. </xsl:stylesheet>
  1478. </xts:block>
  1479. <!--
  1480. ===============================================================================================
  1481. Debug
  1482. ===============================================================================================
  1483. -->
  1484. <xts:block id="debug" dependency="render redirect" condition=".[/root/session/param[@name='debug']='1']" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
  1485. <!-- get the debug logic sheet -->
  1486. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  1487. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/" exclude-result-prefixes="dbg">
  1488. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  1489. <xsl:template match="/">
  1490. <dbg:dumpxml select="/root"/>
  1491. </xsl:template>
  1492. </xsl:stylesheet>
  1493. </xts:block>
  1494. </xts:morphlet>