123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2014
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml" includeConfig="true">
- <!--
- ===============================================================================================
- formlogic_init :
- ===============================================================================================
- -->
- <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
- <!--
- ========================================================
- Session Management
- ========================================================
- -->
- <!-- Reads session-sensitive info from CM -->
- <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'] ]">
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
- <!-- Update the <session> element for this request. -->
- <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"/>
- <!-- Save changes to the state info in a cookie -->
- <xts:block mode="interpret" processor="XSLT" type="exec" id="setSession" path="portal/set_session.xml" dependency="buildSession" condition=".[/root/updateSession]" mandatory="false"/>
- <!--
- ===============================================================================================
- reloadEnvironment:
- reload the packed environment from the savedEnv param if it exists.
- ===============================================================================================
- -->
- <xts:block id="reloadEnvironment" processor="XSLT" type="exec" dependency="formlogic_init buildSession" mandatory="false" condition=".[/root/env/param[@name = 'savedEnv'] != '']">
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
- <xsl:template match="/">
- <xts:sequence>
- <xts:replace select="/root/env">
- <env>
- <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap',string(/root/env/param[@name='savedEnv'])), true())" disable-output-escaping="yes"/>
- </env>
- </xts:replace>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- getContent :
- Get history and historyDetail objects
- ===============================================================================================
- -->
- <xts:block id="getContent" processor="XSLT" type="exec" nodelist="session, env, header, http" dependency="formlogic_init buildSession reloadEnvironment">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/contentadmin.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:async="http://developer.cognos.com/schemas/xts/cogadmin/iAsyncRequest/1/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
- xmlns:adm="http://developer.cognos.com/schemas/xts/logicsheets/contentadmin/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl send async bus cm xsi SOAP-ENV SOAP-ENC xsd adm dt xtsext">
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
- <xsl:variable name="class" select="key('env-param','m_class')"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <!-- get the history information -->
- <!-- TODO: support paging -->
- <send:request provider="xts" option="xml-multipart">
- <async:asyncRequest>
- <provider>monitorService</provider>
- <conversation><xsl:value-of select="key('env-param','web64conversation')"/></conversation>
- <tracking><xsl:value-of select="key('env-param','tracking')"/></tracking>
- <request>
- <xsl:choose>
- <xsl:when test="key('env-param','secondaryRequest') != ''">
- <xsl:value-of select="key('env-param','secondaryRequest')"/>
- </xsl:when>
- <xsl:otherwise>runSpecification</xsl:otherwise>
- </xsl:choose>
- </request>
- <specification>
- <bus:specification xsi:type="bus:monitorServiceSpecification">
- <bus:value xsi:type="bus:specification">
- <xts:transform name="XMLEncode">
- <monitorServiceSpecification>
- <scope>
- <eventID><xsl:value-of select="key('env-param','eventID')"/></eventID>
- </scope>
- <subSort>
- <order>
- <xsl:choose>
- <xsl:when test="key('env-param', 'm_s_hd')='td'">descending</xsl:when>
- <xsl:otherwise>ascending</xsl:otherwise>
- </xsl:choose>
- </order>
- <sortItem>historyDetails.detailTime</sortItem>
- </subSort>
- <!-- user just did a from/to action -->
- <xsl:if test="key('env-param','m_pagerfrom') != '' and key('env-param','m_pagerto') != ''">
- <display>
- <start><xsl:value-of select="key('env-param','m_pagerfrom')"/></start>
- <end><xsl:value-of select="key('env-param','m_pagerto')"/></end>
- </display>
- </xsl:if>
- <filters>
- <!-- history detail severity filter -->
- <xsl:if test="key('env-param','vrh_severity') != '' and key('env-param','vrh_severity') != 'all'">
- <detailSeverity><xsl:value-of select="key('env-param','vrh_severity')"/></detailSeverity>
- </xsl:if>
- </filters>
- </monitorServiceSpecification>
- </xts:transform>
- </bus:value>
- </bus:specification>
- </specification>
- <parameters>
- <bus:parameterValues xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parameterValue[]"/>
- </parameters>
- <options>
- <bus:options SOAP-ENC:arrayType="bus:option[]" xsi:type="SOAP-ENC:Array">
- <item xsi:type="bus:asynchOptionInt">
- <bus:name xsi:type="bus:asynchOptionEnum">primaryWaitThreshold</bus:name>
- <bus:value xsi:type="xsd:int">0</bus:value>
- </item>
- <item xsi:type="bus:pagingOptionInt">
- <bus:name xsi:type="bus:pagingOptionEnum">maximumObjects</bus:name>
- <bus:value xsi:type="xsd:int">0</bus:value>
- </item>
- </bus:options>
- </options>
- </async:asyncRequest>
- </send:request>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query>
- <cm:requests>
- <cm:query>
- <cm:search>//history[@eventID = '<xsl:value-of select="key('env-param','eventID')"/>']/..</cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- </cm:properties>
- </cm:query>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xts:append>
- <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']"/>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- getContent2 :
- Get the steps/tasks and also fix up the class and name in the env
- OR
- Query CM for the class and name if the task has finished executing
- ===============================================================================================
- -->
- <xts:block id="getContent2" processor="XSLT" type="exec" nodelist="asyncRequestResponse, queryResponse, cmHistory, session, env, header, http" dependency="getContent">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/contentadmin.xsl"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:async="http://developer.cognos.com/schemas/xts/cogadmin/iAsyncRequest/1/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
- xmlns:adm="http://developer.cognos.com/schemas/xts/logicsheets/contentadmin/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- exclude-result-prefixes="xsl send async bus xsi SOAP-ENV SOAP-ENC xsd adm cm">
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
- <xsl:key name="system-param" match="/root/system/param" use="@name"/>
- <xsl:key name="session-param" match="/root/session/param" use="@name"/>
- <xsl:variable name="linesPerPage">
- <xsl:choose>
- <xsl:when test="key('session-param','linesPerPage')">
- <xsl:value-of select="key('session-param','linesPerPage')"/>
- </xsl:when>
- <xsl:when test="key('system-param','defaultPortalPreferences')/pref[@name='lines']">
- <xsl:value-of select="key('system-param','defaultPortalPreferences')/pref[@name='lines']"/>
- </xsl:when>
- <xsl:otherwise>15</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:template match="/">
- <xts:sequence>
- <xsl:variable name="msResponse" select="/root/asyncRequestResponse/response/*[local-name()='runSpecificationResponse']/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')][1]"/>
- <xsl:variable name="hasNoCMHistory" select="not(/root/cm:queryResponse/cm:queryReply/*)"/>
- <xsl:choose>
- <xsl:when test="string($msResponse/*) != '' and ($msResponse/status != 'failed' or ($msResponse/status='failed' and $hasNoCMHistory))">
- <xsl:variable name="class" select="$msResponse/runnable/runnable/objectClass/value"/>
- <xsl:variable name="searchPath" select="$msResponse/runnable/runnable/searchPath/value"/>
- <xts:append>
- <!-- get the steps/tasks -->
- <xsl:if test="contains(' jobDefinition agentDefinition agentDefinitionView reportDataServiceAgentDefinition humanTask ',concat(' ',$class, ' '))">
- <steps>
- <send:request provider="xts" option="xml-multipart">
- <async:asyncRequest>
- <provider>monitorService</provider>
- <conversation><xsl:value-of select="key('env-param','web64conversationSteps')"/></conversation>
- <tracking><xsl:value-of select="key('env-param','trackingSteps')"/></tracking>
- <request>
- <xsl:choose>
- <xsl:when test="key('env-param','secondaryRequestSteps') != ''">
- <xsl:value-of select="key('env-param','secondaryRequestSteps')"/>
- </xsl:when>
- <xsl:otherwise>runSpecification</xsl:otherwise>
- </xsl:choose>
- </request>
- <specification>
- <bus:specification xsi:type="bus:monitorServiceSpecification">
- <bus:value xsi:type="bus:specification">
- <xts:transform name="XMLEncode">
- <monitorServiceSpecification>
- <scope>
- <parentEventID><xsl:value-of select="key('env-param','eventID')"/></parentEventID>
- </scope>
- <!-- user just did a from/to action -->
- <xsl:if test="key('env-param','m_pagerfromSteps') != '' and key('env-param','m_pagertoSteps') != ''">
- <display>
- <start><xsl:value-of select="key('env-param','m_pagerfromSteps')"/></start>
- <end><xsl:value-of select="key('env-param','m_pagertoSteps')"/></end>
- </display>
- </xsl:if>
- <filters/>
- </monitorServiceSpecification>
- </xts:transform>
- </bus:value>
- </bus:specification>
- </specification>
- <parameters>
- <bus:parameterValues xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parameterValue[]"/>
- </parameters>
- <options>
- <bus:options SOAP-ENC:arrayType="bus:option[]" xsi:type="SOAP-ENC:Array">
- <item xsi:type="bus:asynchOptionInt">
- <bus:name xsi:type="bus:asynchOptionEnum">primaryWaitThreshold</bus:name>
- <bus:value xsi:type="xsd:int">0</bus:value>
- </item>
- <item xsi:type="bus:pagingOptionInt">
- <bus:name xsi:type="bus:pagingOptionEnum">maximumObjects</bus:name>
- <bus:value xsi:type="xsd:int"><xsl:value-of select="$linesPerPage"/></bus:value>
- </item>
- </bus:options>
- </options>
- </async:asyncRequest>
- </send:request>
- </steps>
- </xsl:if>
- </xts:append>
- <!-- need to get the list of namespaces if we're dealing with a contentTask -->
- <xsl:if test="$class='contentTask'">
- <xts:append>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query>
- <cm:search>/directory/namespace</cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="searchPath"/>
- <cm:property name="active"/>
- </cm:properties>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xts:append>
- </xsl:if>
- <xsl:if test="contains(' report interactiveReport query analysis reportView ',concat(' ',$class,' '))">
- <xts:append>
- <deliveryOptionsQueries>
- <xts:transform src="transforms/portal/options/generateCMQueriesForDeliveryInfo.xslt" processor="XSLT">
- <root>
- <checkUIHelpers>false</checkUIHelpers>
- <queryReply>
- <xsl:copy-of select="$msResponse/historyDetails/historyDetails[contains(@*[local-name()='type'], ':historyDetailRequestArguments')]"/>
- </queryReply>
- </root>
- </xts:transform>
- </deliveryOptionsQueries>
- </xts:append>
- </xsl:if>
- <xsl:if test="$class = 'contentTask'">
- <!-- create any queries that need to be sent to CM for the context options.
- Also create the params that should be copied into the env -->
- <xsl:if test="/root/asyncRequestResponse/response/*[local-name()='runSpecificationResponse']/result/details/*[contains(@*[local-name()='type'], ':asynchDetailEventRecord')][1]/historyDetails/*[contains(@*[local-name()='type'], ':historyDetailRequestArguments')]/options">
- <adm:parseContentTaskOptions optionsPath="/root/asyncRequestResponse/response/*[local-name()='runSpecificationResponse']/result/details/*[contains(@*[local-name()='type'], ':asynchDetailEventRecord')][1]/historyDetails/*[contains(@*[local-name()='type'], ':historyDetailRequestArguments')]/options"/>
- </xsl:if>
- </xsl:if>
- <!--
- when talking to the Monitor Service, there is no way to get the owner class and name. So if the user
- did a 'view the parent entry' action the class and name would be wrong in the env. Make sure they're
- correct by using the response we just got back from MS
- -->
- <xts:replace select="/root/env/param[@name='m_class']">
- <param name="m_class"><xsl:value-of select="$class"/></param>
- </xts:replace>
- <xts:replace select="/root/env/param[@name='m_name']">
- <param name="m_name"><xsl:value-of select="$msResponse/runnable/runnable/defaultName/value"/></param>
- </xts:replace>
- <!-- delete this parameter when coming from the confirmation page. Keeping it will cause the view output page not to work -->
- <xts:delete select="/root/env/param[@name = 'method']"/>
- <!-- we need to post process the ancestors since do-the-path link expects a certain xml structure. -->
- <xsl:if test="$msResponse/runnable/runnable/ancestors != ''">
- <xts:replace select="/root/asyncRequestResponse/response/*[local-name()='runSpecificationResponse']/result/details/*[contains(@*[local-name()='type'], ':asynchDetailEventRecord')][1]/runnable/runnable/ancestors">
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <xsl:copy-of select="$msResponse/runnable/runnable/ancestors"/>
- </xts:transform>
- </xts:replace>
- </xsl:if>
- <!-- all our logicsheets that deal with showing the prompt summary need the post-process structure -->
- <xsl:if test="string($msResponse/historyDetails/historyDetails[contains(@*[local-name()='type'], ':historyDetailRequestArguments')]/parameters/value) != ''">
- <xts:replace select="/root/asyncRequestResponse/response/*[local-name()='runSpecificationResponse']/result/details/*[contains(@*[local-name()='type'], ':asynchDetailEventRecord')][1]/historyDetails/*[contains(@*[local-name()='type'], ':historyDetailRequestArguments')]/parameters">
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <xsl:copy-of select="$msResponse/historyDetails/*[contains(@xsi:type, ':historyDetailRequestArguments')]/parameters"/>
- </xts:transform>
- </xts:replace>
- </xsl:if>
- <xts:append>
- <stillExecuting>true</stillExecuting>
- </xts:append>
- <xsl:if test="$class='indexUpdateTask'">
- <xts:append>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query>
- <cm:search><xsl:value-of select="$searchPath"/></cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="searchPath"/>
- <cm:property name="options"/>
- </cm:properties>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xts:append>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xts:append>
- <stillExecuting>false</stillExecuting>
- </xts:append>
- </xsl:otherwise>
- </xsl:choose>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- replace
- ===============================================================================================
- -->
- <xts:block id="replace" nodelist="asyncRequestResponse, queryResponse, env" type="exec" mode="interpret" processor="XSLT" dependency="getContent2" mandatory="true">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl send cm xsi xtsext">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:variable name="query-values" select="/root/env/param"/>
- <xsl:template match="/">
- <xts:sequence>
- <xsl:if test="not(string(/root/asyncRequestResponse/response/*[local-name()='runSpecificationResponse']/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')][1]/*) != '')">
- <!-- make sure the m_class and m_name are correct before redirecting to the details page that talks to CM -->
- <xts:replace select="/root/env/param[@name='m_class']">
- <param name="m_class"><xsl:value-of select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*/*[local-name()='objectClass']"/></param>
- </xts:replace>
- <xts:replace select="/root/env/param[@name='m_name']">
- <param name="m_name"><xsl:value-of select="xtsext:xmlencode(string(/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*/*[local-name()='defaultName']))"/></param>
- </xts:replace>
- </xsl:if>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- getArchiveLocations
- ===============================================================================================
- -->
- <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) != '']">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl send cm xsi xtsext">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:variable name="query-values" select="/root/env/param"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <temp>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query>
- <cm:requests>
- <cm:query>
- <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>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="searchPath"/>
- </cm:properties>
- </cm:query>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </temp>
- </xts:append>
- <!--
- need to place the archive locations inside /root/cm:queryResponse since that's where the template
- that builds the summary looks for it
- -->
- <xsl:choose>
- <xsl:when test="/root/*[local-name()='queryResponse']">
- <xts:append select="/root/*[local-name()='queryResponse']">
- <xts:queryNode select="/root/temp/*[local-name()='queryResponse']/*[local-name()='queryReply']"/>
- </xts:append>
- </xsl:when>
- <xsl:otherwise>
- <xts:append>
- <xts:queryNode select="/root/temp/*"/>
- </xts:append>
- </xsl:otherwise>
- </xsl:choose>
- <!-- delete the temporary node -->
- <xts:delete select="/root/temp"/>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- getIndexUpdateOptions.
- -->
- <xts:block id="getIndexUpdateOptions" processor="XSLT" type="exec" dependency="getArchiveLocations" condition=".[contains('indexUpdateTask ', /root/env/param[@name='m_class'])]" mandatory="false">
- <xts:logicsheet path="logicsheets/contentadmin.xsl"/>
- <xts:logicsheet path="portal/runWithOptions/logicsheets/request.xslt"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:rdr="http://developer.cognos.com/schemas/xts/rdr/"
- xmlns:adm="http://developer.cognos.com/schemas/xts/logicsheets/contentadmin/"
- exclude-result-prefixes="xsl xtsext rdr adm">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
- <xsl:template match="/">
- <xts:sequence>
- <adm:parseIndexUpdateTaskOptions optionsPath="/root/*[local-name()='queryResponse']/*[local-name()='indexUpdateTask']/*[local-name()='options']"/>
- <xts:append select="/root/env">
- <xts:queryNode select="/root/indexUpdateTaskSearchPaths/env/*[local-name()='param']"/>
- </xts:append>
- <!-- unpack the indexUpdate information -->
- <xsl:if test="key('env-param','m_indexUpdates')!=''">
- <xts:append>
- <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap',string(key('env-param','m_indexUpdates'))), true())" disable-output-escaping="yes"/>
- </xts:append>
- </xsl:if>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- genDefaultIndexUpdateOptions - Query CM for the display information needed, build the appropriate XML structure
- of the indexUpdateTask and populate the DOM
- ===============================================================================================
- -->
- <xts:block id="genDefaultIndexUpdateOptions" processor="XSLT" type="exec" dependency="getIndexUpdateOptions" mandatory="false" condition=".[contains('indexUpdateTask ', /root/env/param[@name='m_class'])]">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- exclude-result-prefixes="xsl cm send pf xtsext">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <pf:variables/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root">
- <indexUpdateInfoResponse>
- <xts:transform src="transforms/portal/options/swapSearchPaths.xslt" processor="XSLT">
- <root>
- <xsl:if test="count(/root/indexUpdateTaskSearchPaths/*) != 0">
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:requests>
- <xsl:copy-of select="/root/indexUpdateTaskSearchPaths/include/*[local-name()='query']"/>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xsl:if>
- <queryBuiltFromOptions>
- <xsl:copy-of select="/root/indexUpdateTaskSearchPaths/include/*[local-name()='query']"/>
- </queryBuiltFromOptions>
- </root>
- </xts:transform>
- </indexUpdateInfoResponse>
- </xts:append>
- <xts:append select="/root">
- <indexUpdates>
- <xts:transform src="portal/addEntries/transforms/sortAddedEntriesList.xslt" processor="XSLT">
- <root>
- <addedEntriesList>
- <xts:transform src="portal/addEntries/transforms/genStandardAddEntriesList.xslt" processor="XSLT">
- <root>
- <xts:queryNode select="/root/indexUpdateInfoResponse/*"/>
- </root>
- </xts:transform>
- </addedEntriesList>
- <contentLocale><xsl:value-of select="$contentLocale"/></contentLocale>
- </root>
- </xts:transform>
- </indexUpdates>
- </xts:append>
- <xts:delete select="/root/indexUpdateTaskSearchPaths"/>
- <xts:delete select="/root/env/param[@name='m_io_includedObjects']"/>
- <xts:delete select="/root/env/param[@name='m_io_force']"/>
- <xts:delete select="/root/env/param[@name='m_io_indexObjectTypes']"/>
- <xts:delete select="/root/env/param[@name='m_io_indexReferencedData']"/>
- <xts:delete select="/root/env/param[@name='m_io_indexModeledData']"/>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- generateDefaults - generate any required default values
- ===============================================================================================
- -->
- <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">
- <xts:logicsheet path="logicsheets/contentadmin.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:adm="http://developer.cognos.com/schemas/xts/logicsheets/contentadmin/"
- xmlns:ms="http://www.ibm.com/xmlns/prod/cognos/monitorService/201101/"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- exclude-result-prefixes="xsl cm send adm ms xsi">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
- <xsl:variable name="the-object" select="/root/asyncRequestResponse/response/ms:runSpecificationResponse/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')][1]/historyDetails/*[contains(@xsi:type, ':historyDetailRequestArguments')]"/>
- <xsl:variable name="the-namespaces" select="/root/cm:queryResponse/cm:queryReply[1]"/>
- <xsl:template match="/">
- <xts:sequence>
- <xsl:choose>
- <xsl:when test="key('env-param','contentTaskType')='consistency'">
- <xts:append select="/root/env">
- <!-- contentTask options -->
- <adm:createOptionsParams/>
- </xts:append>
- </xsl:when>
- <!-- if we're dealing with certain kinds of contentTasks, then we have to query CM for the info needed
- display the summary -->
- <xsl:otherwise>
- <adm:queryContentTaskInfoForSummary/>
- </xsl:otherwise>
- </xsl:choose>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- queryDeliveryOptionsInfo:
- Query CM for the necessary information to build the delivery options summaries
- ===============================================================================================
- -->
- <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">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <deliveryOptionsInfo>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:requests>
- <xsl:copy-of select="/root/deliveryOptionsQueries/*[local-name()='query']"/>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </deliveryOptionsInfo>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- generateUIHelpers:
- Use the information queries from CM about the delivery options to build summary strings
- for the job and steps to be used by the UI generation
- ===============================================================================================
- -->
- <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">
- <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xtsext xsl cm dt pf cf cp xsi">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <pf:variables/>
- <xsl:template match="/">
- <xts:sequence>
- <xsl:call-template name="dt:generateUIHelpersFromOptions">
- <xsl:with-param name="queryReplyPath" select="/root/asyncRequestResponse/response/*[local-name()='runSpecificationResponse']/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')][1]/historyDetails/*[contains(@xsi:type, ':historyDetailRequestArguments')]"/>
- <xsl:with-param name="deliveryInfo" select="/root/deliveryOptionsInfo/*[local-name()='queryResponse']"/>
- <xsl:with-param name="appendPath" select="'/root'"/>
- </xsl:call-template>
- </xts:sequence>
- </xsl:template>
- <dt:generateUIHelpersFromOptions/>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- render
- ===============================================================================================
- -->
- <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">
- <xts:logicsheet path="portal/history/logicsheets/ui-template.xslt"/>
- <xts:logicsheet path="logicsheets/contentadmin.xsl"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="portal/iPrompting/logicsheets/common.xslt"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/ui-templates.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/main/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
- <!-- apply the form logic -->
- <xts:logicsheet path="logicsheets/formlogic.xslt"/>
- <xts:logicsheet path="logicsheets/validation.xslt"/>
- <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:rhu="http://developer.cognos.com/schemas/xts/historyui"
- xmlns:adm="http://developer.cognos.com/schemas/xts/logicsheets/contentadmin/"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
- xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:ut="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/ui-templates/"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
- xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:prt="http://developer.cognos.com/schemas/xts/iPrompting/logicsheets/common"
- xmlns:ms="http://www.ibm.com/xmlns/prod/cognos/monitorService/201101/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl xsi cm lyt rhu adm dp df cf pf ut cp mt mf utml xts prt xtsext ms">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
- <xsl:key name="system-param" match="/root/system/param" use="@name"/>
- <xsl:key name="session-param" match="/root/session/param" use="@name"/>
- <!-- lines per page by default -->
- <xsl:variable name="linesPerPage">
- <xsl:choose>
- <xsl:when test="key('session-param','linesPerPage')">
- <xsl:value-of select="key('session-param','linesPerPage')"/>
- </xsl:when>
- <xsl:when test="key('system-param','defaultPortalPreferences')/pref[@name='lines']">
- <xsl:value-of select="key('system-param','defaultPortalPreferences')/pref[@name='lines']"/>
- </xsl:when>
- <xsl:otherwise>15</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!-- current file name -->
- <xsl:variable name="mname" select="'history/view_executing_details.xts'"/>
- <!-- add variables -->
- <pf:variables/>
- <mf:variables>
- <mf:stateParams>
- <xsl:value-of select="' eventID m_class backURL m_name reportVersionPath runHistoryRequestedTime '"/>
- </mf:stateParams>
- </mf:variables>
- <rhu:variables responseType="monitorService"/>
- <xsl:variable name="browserTitle">
- <xts:string id="IDS_VRH_DETAILS_TITLE">
- <xts:param name="objectName">
- <span lang="{$contentLocale}"><xsl:value-of select="xtsext:enforceBTD(key('env-param','m_name'), $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></span>
- </xts:param>
- </xts:string>
- </xsl:variable>
- <xsl:variable name="cmd-form" select="'pform'"/>
- <xsl:variable name="maxObjects" select="key('session-param', 'linesPerPage')"/>
- <xsl:variable name="secondaryRequests" select="/root/asyncRequestResponse/response/*/*[local-name()='result']/*[local-name()='secondaryRequests']/*[local-name()='secondaryRequests']"/>
- <xsl:variable name="secondaryRequestsSteps" select="/root/*[local-name()='steps']/*[local-name()='asyncRequestResponse']/*[local-name()='response']/*/*[local-name()='result']/*[local-name()='secondaryRequests']/*[local-name()='secondaryRequests']"/>
- <!-- used in rhu:timeAndStatus -->
- <xsl:variable name="runStatus">
- <xsl:value-of select="$eventRecord/status"/>
- </xsl:variable>
- <!-- start the output -->
- <xsl:template match="/root">
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
- <mf:head/>
- <dp:meta>
- <pf:meta/>
- <!-- Standard meta tags -->
- </dp:meta>
- <dp:script>
- <pf:help context="HID_VIEW_RUN_HISTORY"/>
- <!-- Help system -->
- <pf:launch/>
- <script type="text/javascript" src="{$webcontent}/{$app}/js/utilities.js"/>
- <script language="javascript">
- function doApplyFilter()
- {
- var form = document.pform;
- if (form.m_messagesFilterChange)
- form.m_messagesFilterChange.value = 'true';
- form.m.value = "<xsl:value-of select="$app"/>/<xsl:value-of select="$mname"/>";
- form.submit();
- }
- var imgAnimatedGo = new Image();
- imgAnimatedGo.src = "<xsl:value-of select="xtsext:javascriptencode($skin_images)"/>action_go_ani.gif";
- function navGo(section) {
- var pform = document.pform;
- var from = null;
- var to = null;
- if (section == "messages") {
- from = pform.pagerfrom;
- to = pform.pagerto;
- } else
- {
- from = pform.pagerfromSteps;
- to = pform.pagertoSteps;
- }
- var fromloc = trim(from.value);
- var toloc = trim(to.value);
- if (fromloc !="") {
- checkPositiveIntegerDefault(from,"");
- fromloc = from.value;
- if ( fromloc == "" ) {
- alert( "<xts:string id="IDS_PAGER_FROM_INVALID" encode="javascript"/>");
- return;
- }
- if (toloc !="") {
- checkPositiveIntegerDefault(to,"");
- toloc = to.value;
- if ( toloc == "" ) {
- alert( "<xts:string id="IDS_PAGER_TO_INVALID" encode="javascript"/>");
- return;
- }
- if ( Number(toloc) < Number(fromloc)) {
- alert( "<xts:string id="IDS_PAGER_ENTRIES_INVALID" encode="javascript"/>");
- return;
- }
- }
- else { //to is empty calculate it
- toloc = Number(fromloc) + <xsl:value-of select="$maxObjects"/> -1;
- }
- } //if (fromloc!="")
- else {
- if (toloc == "") {
- alert ("<xts:string id="IDS_PAGER_ENTRIES_EMPTY" encode="javascript"/>");
- return;
- }
- else {
- checkPositiveIntegerDefault(to,"");
- toloc = to.value;
- if ( toloc == "" ) {
- alert( "<xts:string id="IDS_PAGER_TO_INVALID" encode="javascript"/>");
- return;
- }
- fromloc = Number(toloc) - <xsl:value-of select="$maxObjects"/> +1;
- if (Number(fromloc) < 0) {
- fromloc=1;
- }
- }
- }
- if (section == "messages")
- {
- pform.m_pagerfrom.value=fromloc;
- pform.m_pagerto.value=toloc;
- } else
- {
- pform.m_pagerfromSteps.value=fromloc;
- pform.m_pagertoSteps.value=toloc;
- }
- pform.ps_nav_op.value='maintain';
- document.pform.submit();
- if (section == 'messages')
- {
- document.getElementById('img_messages_go').src = imgAnimatedGo.src;
- }
- else
- {
- document.getElementById('img_messages_goSteps').src = imgAnimatedGo.src;
- }
- }
- function doPagerAction(action, mode) {
- if (mode=="messages") {
- document.pform.secondaryRequest.value = action;
- } else
- {
- document.pform.secondaryRequestSteps.value = action;
- }
- document.pform.submit();
- }
- function refreshPage()
- {
- form = document.pform;
- if (form.m.value != '<xsl:value-of select="$app"/>/<xsl:value-of select="$mname"/>')
- {
- form.m.value = "<xsl:value-of select="$app"/>/<xsl:value-of select="$mname"/>";
- form.m_obj.value = "<xsl:value-of select="xtsext:javascriptencode(string(/root/cm:queryResponse[1]/cm:queryReply[1]/*[1]/cm:parent/*/cm:searchPath))"/>";
- form.backURL.value = "<xsl:value-of select="xtsext:javascriptencode(string(key('env-param','backURL')))"/>";
- }
- document.pform.submit();
- }
- </script>
- </dp:script>
- <utml:form name="pform" method="post" action="{$gateway}">
- <!-- savedEnv used to pass environment to ReportViewer with cognosLaunch javascript -->
- <xsl:variable name="params">
- <xsl:for-each select="/root/*[local-name()='env']/*[local-name()='param']">
- <xsl:call-template name="serialize-xml">
- <xsl:with-param name="node-set" select="."/>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:variable>
- <xsl:variable name="savedEnv">
- <xsl:value-of select="xtsext:cafaction(concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($params), true()))"/>
- </xsl:variable>
- <!-- used for the actions -->
- <xsl:if test="contains(' agentDefinition reportDataServiceAgentDefinition agentDefinitionView jobDefinition humanTask report interactiveReport query analysis reportView ',concat(' ',$objectType,' '))">
- <utml:input type="hidden" name="reportVersionPath"/>
- <utml:input type="hidden" name="runHistoryRequestedTime"/>
- </xsl:if>
- <!-- used for sorting -->
- <utml:input type="hidden" name="m_s_hd"/>
- <utml:input type="hidden" name="ifrmcmd" value="" utml:update="false"/>
- <utml:input type="hidden" name="m_obj" value=""/>
- <utml:input type="hidden" name="m_pagerfrom" value="" utml:update="false"/>
- <utml:input type="hidden" name="m_pagerto" value="" utml:update="false"/>
- <utml:input type="hidden" name="secondaryRequest" value="" utml:update="false"/>
- <utml:input type="hidden" name="m_pagerfromSteps" value="" utml:update="false"/>
- <utml:input type="hidden" name="m_pagertoSteps" value="" utml:update="false"/>
- <utml:input type="hidden" name="secondaryRequestSteps" value="" utml:update="false"/>
- <!--
- if the conversation status is not complete, then we need to keep track of the conversation
- and the tracking information
- -->
- <xsl:if test="string($secondaryRequests) != '' or string(/root/asyncRequestResponse/status) != 'conversationComplete'">
- <utml:input type="hidden" name="web64conversation" utml:update="false">
- <utml:value><xsl:value-of select="/root/asyncRequestResponse/conversation"/></utml:value>
- </utml:input>
- <utml:input type="hidden" name="tracking" utml:update="false">
- <utml:value><xsl:value-of select="/root/asyncRequestResponse/tracking"/></utml:value>
- </utml:input>
- </xsl:if>
- <!--
- if the conversation status is not complete, then we need to keep track of the conversation
- and the tracking information
- -->
- <xsl:if test="string($secondaryRequestsSteps) != '' or string(/root/steps/asyncRequestResponse/status) != 'conversationComplete'">
- <utml:input type="hidden" name="web64conversationSteps" utml:update="false">
- <utml:value><xsl:value-of select="/root/steps/asyncRequestResponse/conversation"/></utml:value>
- </utml:input>
- <utml:input type="hidden" name="trackingSteps" utml:update="false">
- <utml:value><xsl:value-of select="/root/steps/asyncRequestResponse/tracking"/></utml:value>
- </utml:input>
- </xsl:if>
- <dp:header>
- <dp:title>
- <xsl:copy-of select="$browserTitle"/>
- </dp:title>
- <dp:description>
- <xts:string id="IDS_VRH_DETAILS_DESCRIPTION"/>
- </dp:description>
- <dp:headerLinks>
- <dp:headerLink>
- <dp:hl_attribute name="href">javascript:refreshPage();</dp:hl_attribute>
- <dp:hl_attribute name="label"><xts:string id="IDS_REFRESH"/></dp:hl_attribute>
- </dp:headerLink>
- </dp:headerLinks>
- <dp:close>
- <a href="{string(key('env-param', 'backURL'))}">
- <dp:closeMarker/>
- </a>
- </dp:close>
- </dp:header>
- <!-- history information -->
- <rhu:timeAndStatus responseType="monitorService"/>
- <!-- history details -->
- <xsl:variable name="historyDetails" select="/root/asyncRequestResponse/response/ms:runSpecificationResponse/result/details/*[contains(@xsi:type,':asynchDetailEventRecord')]/historyDetails/*[contains(concat(@xsi:type,' '), ':historyDetail ')]"/>
- <lyt:layout style="1" title="IDS_DEPLOYMENT_DETAILED_RECORD_MESSAGES" border="yes">
- <lyt:section>
- <!--
- if the user is looking at a deployment that's done executing, then show a message letting them know
- that they're still only looking at summary information
- -->
- <xsl:if test="($objectType = 'exportDeployment' or $objectType = 'importDeployment') and contains('succeeded failed cancelled purged terminated ', $runStatus)">
- <dp:choice>
- <dp:section1 wrap="wrap">
- <img height="30" width="30">
- <xsl:attribute name="alt"><xts:string id="IDS_ICON_TIP"/></xsl:attribute>
- <xsl:attribute name="src"><xsl:value-of select="$skin_images"/>tip_template.gif</xsl:attribute>
- </img>
- </dp:section1>
- <dp:section2 wrap="wrap">
- <xts:string id="IDS_VRH_ONLY_PROGRESS_INFO"/>
- </dp:section2>
- </dp:choice>
- </xsl:if>
- <!-- need to do our own pager buttons to handle doing the secondary async request -->
- <table cellspacing="0" cellpadding="1" width="100%" role="presentation">
- <tr>
- <td class="formLabel" nowrap="nowrap">
- <label for="lbl_severity"><xts:string id="IDS_VRH_DETAILS_SEVERITY"/></label>
- </td>
- <td width="100%" aling="left" style="padding-left:10px;">
- <rhu:severity/>
- </td>
- <td style="white-space: nowrap; padding-right: 5px;" class="formText"><xts:string id="IDS_ENTRIES"/></td>
- <td nowrap="">
- <utml:input type="text" maxlength="9" class="formText" size="4" name="pagerfrom" utml:update="false">
- <xsl:attribute name="title"><xts:string id="IDS_ENTRIES_FROM"/></xsl:attribute>
- <xsl:attribute name="value">
- <xsl:choose>
- <xsl:when test="string($historyDetails[1]/position/value) != ''"><xsl:value-of select="$historyDetails[1]/position/value"/></xsl:when>
- <xsl:when test="key('env-param','m_pagerfrom') != ''"><xsl:value-of select="key('env-param','m_pagerfrom')"/></xsl:when>
- </xsl:choose>
- </xsl:attribute>
- </utml:input>
- <xsl:value-of select="' - '"/>
- <utml:input type="text" maxlength="9" class="formText" size="4" name="pagerto" utml:update="false">
- <xsl:attribute name="title"><xts:string id="IDS_ENTRIES_TO"/></xsl:attribute>
- <xsl:attribute name="value">
- <xsl:choose>
- <xsl:when test="string($historyDetails[position() = last()]/position/value) != ''"><xsl:value-of select="$historyDetails[1]/position/value"/></xsl:when>
- <xsl:when test="key('env-param','m_pagerto') != ''"><xsl:value-of select="key('env-param','m_pagerto')"/></xsl:when>
- </xsl:choose>
- </xsl:attribute>
- </utml:input>
- </td>
- <td nowrap="" style="padding-right: 8px; padding-left: 2px;">
- <a href="javascript:navGo('messages');">
- <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">
- <xsl:attribute name="alt"><xts:string id="IDS_PAGER_GO_TO"/></xsl:attribute>
- </img>
- </a>
- </td>
- <td nowrap="">
- <div class="rowDivider" style="height: 13px;"/>
- </td>
- <td nowrap="" style="padding-left: 8px;">
- <xsl:call-template name="pagerButton">
- <xsl:with-param name="tooltip"><xts:string id="IDS_PAGER_FIRST"/></xsl:with-param>
- <xsl:with-param name="image" select="'control_btn_top'"/>
- <xsl:with-param name="action" select="$secondaryRequests/name[.='firstPage']"/>
- <xsl:with-param name="mode" select="'messages'"/>
- </xsl:call-template>
- <img height="1" width="2" src="{$webcontent}/images/space.gif"/>
- <xsl:call-template name="pagerButton">
- <xsl:with-param name="tooltip"><xts:string id="IDS_PAGER_PAGEUP"/></xsl:with-param>
- <xsl:with-param name="image" select="'control_btn_pageup'"/>
- <xsl:with-param name="action" select="$secondaryRequests/name[.='previousPage']"/>
- <xsl:with-param name="mode" select="'messages'"/>
- </xsl:call-template>
- <img height="1" width="2" src="{$webcontent}/images/space.gif"/>
- <xsl:call-template name="pagerButton">
- <xsl:with-param name="tooltip"><xts:string id="IDS_PAGER_PAGEDOWN"/></xsl:with-param>
- <xsl:with-param name="image" select="'control_btn_pagedown'"/>
- <xsl:with-param name="action" select="$secondaryRequests/name[.='nextPage']"/>
- <xsl:with-param name="mode" select="'messages'"/>
- </xsl:call-template>
- <img height="1" width="2" src="{$webcontent}/images/space.gif"/>
- <xsl:call-template name="pagerButton">
- <xsl:with-param name="tooltip"><xts:string id="IDS_PAGER_LAST"/></xsl:with-param>
- <xsl:with-param name="image" select="'control_btn_bottom'"/>
- <xsl:with-param name="action" select="$secondaryRequests/name[.='lastPage']"/>
- <xsl:with-param name="mode" select="'messages'"/>
- </xsl:call-template>
- <img height="1" width="2" src="{$webcontent}/images/space.gif"/>
- </td>
- </tr>
- </table>
- <cp:table name="messages" iterate="$historyDetails" showEmptyMsg="true">
- <cp:tableSummary><xts:string id="IDS_VRH_DETAILS_MESSAGES_SUMMARY"/></cp:tableSummary>
- <!-- Column Headers -->
- <cp:tableHeader session-name="s_hd">
- <cp:columnHeader width="200" sort="t">
- <cp:sortHref>
- <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>
- </cp:sortHref>
- <xts:string id="IDS_VRH_DETAILS_TIME"/>
- </cp:columnHeader>
- <cp:columnHeader width="16"/>
- <cp:columnHeader width="100%">
- <xts:string id="IDS_VRH_DETAILS_MESSAGE"/>
- </cp:columnHeader>
- </cp:tableHeader>
- <cp:tableContent>
- <cp:columnContent valign="top">
- <xsl:value-of select="xtsext:formatDateFromUTC( string( detailTime/value ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- </cp:columnContent>
- <cp:columnContent valign="top">
- <xsl:call-template name="gen-message-icon">
- <xsl:with-param name="statusPath" select="string(severity/value)"/>
- </xsl:call-template>
- </cp:columnContent>
- <cp:columnContent wrap="wrap" valign="top">
- <xsl:value-of select="detail/value"/>
- </cp:columnContent>
- </cp:tableContent>
- </cp:table>
- </lyt:section>
- </lyt:layout>
- <xsl:choose>
- <xsl:when test="contains(' jobDefinition agentDefinition reportDataServiceAgentDefinition agentDefinitionView humanTask ',concat(' ',$objectType,' '))">
- <xsl:variable name="className">
- <xsl:choose>
- <xsl:when test="string($objectType)='jobDefinition'">
- <xts:string id="IDS_OBJ_JOBDEFINITION"/>
- </xsl:when>
- <xsl:when test="string($objectType)='agentDefinition'">
- <xts:string id="IDS_OBJ_AGENT"/>
- </xsl:when>
- <!-- This is for the watch rules -->
- <xsl:when test="string($objectType)='reportDataServiceAgentDefinition'">
- <xts:string id="IDS_OBJ_WATCHRULE"/>
- </xsl:when>
- <xsl:when test="string($objectType)='agentDefinitionView'">
- <xts:string id="IDS_OBJ_AGENTVIEW"/>
- </xsl:when>
- <xsl:when test="string($objectType)='humanTask'">
- <xts:string id="IDS_OBJ_HUMANTASK"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="steps" select="/root/steps/asyncRequestResponse/response/*/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')]"/>
- <lyt:layout style="1" longTitle="$className" border="yes">
- <lyt:section>
- <xsl:if test="contains('agentDefinition reportDataServiceAgentDefinition', concat(' ',$objectType, ' '))">
- <dp:list>
- <dp:section>
- <dp:label>
- <xts:string id="IDS_VRH_DETAILS_OPTIONS"/>
- </dp:label>
- </dp:section>
- <dp:section>
- <xsl:choose>
- <xsl:when test="$the-object != '' ">
- <xsl:if test="/root/*[local-name()='UIHelpers']/*[local-name()='parameterDescription']!=''">
- <dp:text><xsl:value-of select="/root/*[local-name()='UIHelpers']/*[local-name()='parameterDescription']"/></dp:text>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <dp:text><xts:string id="IDS_VRH_DETAILS_OPTIONS_UNAVAILABLE"/></dp:text>
- </xsl:otherwise>
- </xsl:choose>
- </dp:section>
- </dp:list>
- </xsl:if>
- </lyt:section>
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:label>
- <xsl:choose>
- <xsl:when test="string($objectType)='jobDefinition'">
- <xts:string id="IDS_PROP_JOB_STEPS_LABEL"/>
- </xsl:when>
- <xsl:when test="string($objectType)='reportDataServiceAgentDefinition'">
- <xts:string id="IDS_VRH_DETAILS_TASKS_WATCH_RULES"/>
- </xsl:when>
- <xsl:when test="contains(string($objectType),'agentDefinition')">
- <xts:string id="IDS_VRH_DETAILS_TASKS_EVENTS"/>
- </xsl:when>
- <xsl:when test="contains(string($objectType),'humanTask')">
- <xts:string id="IDS_VRH_DETAILS_TASKS_HUMANTASK"/>
- </xsl:when>
- </xsl:choose>
- </dp:label>
- <dp:text width="100%"/>
- </dp:section>
- </dp:list>
- <!-- need to do our own pager buttons to handle doing the secondary async request -->
- <table cellspacing="0" cellpadding="1" width="100%">
- <tr>
- <td width="100%" align="left"/>
- <td style="white-space: nowrap; padding-right: 5px;" class="formText"><xts:string id="IDS_ENTRIES"/></td>
- <td nowrap="">
- <utml:input type="text" maxlength="9" class="formText" size="4" name="pagerfromSteps" utml:update="false">
- <xsl:attribute name="aria-label"><xts:string id="IDS_ENTRIES_FROM" encode="html"/></xsl:attribute>
- <xsl:attribute name="value">
- <xsl:choose>
- <xsl:when test="string($steps[1]/runnable/runnable/position/value) != ''"><xsl:value-of select="$steps[1]/runnable/runnable/position/value"/></xsl:when>
- <xsl:when test="key('env-param','m_pagerfromSteps') != ''"><xsl:value-of select="key('env-param','m_pagerfromSteps')"/></xsl:when>
- </xsl:choose>
- </xsl:attribute>
- </utml:input>
- <xsl:value-of select="' - '"/>
- <utml:input type="text" maxlength="9" class="formText" size="4" name="pagertoSteps" utml:update="false">
- <xsl:attribute name="aria-label"><xts:string id="IDS_ENTRIES_TO" encode="html"/></xsl:attribute>
- <xsl:attribute name="value">
- <xsl:choose>
- <xsl:when test="string($steps[position() = last()]/runnable/runnable/position/value) != ''"><xsl:value-of select="$steps[position() = last()]/runnable/runnable/position/value"/></xsl:when>
- <xsl:when test="key('env-param','m_pagertoSteps') != ''"><xsl:value-of select="key('env-param','m_pagertoSteps')"/></xsl:when>
- </xsl:choose>
- </xsl:attribute>
- </utml:input>
- </td>
- <td nowrap="" style="padding-right: 8px; padding-left: 2px;">
- <a href="javascript:navGo('steps');">
- <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'">
- <xsl:attribute name="alt"><xts:string id="IDS_PAGER_GO_TO"/></xsl:attribute>
- </img>
- </a>
- </td>
- <td nowrap="">
- <div class="rowDivider" style="height: 13px;"/>
- </td>
- <td nowrap="" style="padding-left: 8px;">
- <xsl:call-template name="pagerButton">
- <xsl:with-param name="tooltip"><xts:string id="IDS_PAGER_FIRST"/></xsl:with-param>
- <xsl:with-param name="image" select="'control_btn_top'"/>
- <xsl:with-param name="action" select="$secondaryRequestsSteps/name[.='firstPage']"/>
- <xsl:with-param name="mode" select="'steps'"/>
- </xsl:call-template>
- <img height="1" width="2" src="{$webcontent}/images/space.gif"/>
- <xsl:call-template name="pagerButton">
- <xsl:with-param name="tooltip"><xts:string id="IDS_PAGER_PAGEUP"/></xsl:with-param>
- <xsl:with-param name="image" select="'control_btn_pageup'"/>
- <xsl:with-param name="action" select="$secondaryRequestsSteps/name[.='previousPage']"/>
- <xsl:with-param name="mode" select="'steps'"/>
- </xsl:call-template>
- <img height="1" width="2" src="{$webcontent}/images/space.gif"/>
- <xsl:call-template name="pagerButton">
- <xsl:with-param name="tooltip"><xts:string id="IDS_PAGER_PAGEDOWN"/></xsl:with-param>
- <xsl:with-param name="image" select="'control_btn_pagedown'"/>
- <xsl:with-param name="action" select="$secondaryRequestsSteps/name[.='nextPage']"/>
- <xsl:with-param name="mode" select="'steps'"/>
- </xsl:call-template>
- <img height="1" width="2" src="{$webcontent}/images/space.gif"/>
- <xsl:call-template name="pagerButton">
- <xsl:with-param name="tooltip"><xts:string id="IDS_PAGER_LAST"/></xsl:with-param>
- <xsl:with-param name="image" select="'control_btn_bottom'"/>
- <xsl:with-param name="action" select="$secondaryRequestsSteps/name[.='lastPage']"/>
- <xsl:with-param name="mode" select="'steps'"/>
- </xsl:call-template>
- <img height="1" width="2" src="{$webcontent}/images/space.gif"/>
- </td>
- </tr>
- </table>
- <cp:table name="jobsteps" iterate="$steps" showEmptyMsg="true">
- <!-- Column Headers -->
- <cp:tableHeader>
- <!-- Icon Column -->
- <cp:columnHeader width="20"/>
- <!-- Path Column -->
- <cp:columnHeader width="120">
- <span style="padding-left: 1px; padding-right: 1px;"><xts:string id="IDS_PATH_INDICATOR"/> </span>
- <xsl:text/><xts:string id="IDS_HEADING_REPORT_NAME"/><xsl:text/>
- </cp:columnHeader>
- <!-- Task Requested Column -->
- <cp:columnHeader width="125">
- <xts:string id="IDS_HEADING_REQEXECTIME"/>
- </cp:columnHeader>
- <!-- Task Started Column -->
- <cp:columnHeader width="125">
- <xts:string id="IDS_HEADING_ACTUALEXECTIME"/>
- </cp:columnHeader>
- <!-- Task Completed Column -->
- <cp:columnHeader width="125">
- <xts:string id="IDS_HEADING_ACTUALCOMPTIME"/>
- </cp:columnHeader>
- <!-- Status Column -->
- <cp:columnHeader width="75">
- <xts:string id="IDS_HEADING_STATUS"/>
- </cp:columnHeader>
- <!-- Actions Column -->
- <cp:columnHeader width="100%">
- <xts:string id="IDS_HEADING_ACTIONS"/>
- </cp:columnHeader>
- </cp:tableHeader>
- <!-- Column contents -->
- <cp:tableContent>
- <xsl:variable name="isDangling" select="false()"/>
- <xsl:variable name="isOrphanHistory" select="false()"/>
- <xsl:variable name="step-name" select="runnable/runnable/defaultName /value"/>
- <xsl:variable name="step-objectClass" select="runnable/runnable/objectClass/value"/>
- <!-- Icon Column -->
- <cp:columnContent>
- <xsl:call-template name="gen-icon">
- <xsl:with-param name="baseClass" select="$step-objectClass"/>
- <xsl:with-param name="class" select="$step-objectClass"/>
- <xsl:with-param name="isDangling" select="$isDangling"/>
- </xsl:call-template>
- </cp:columnContent>
- <!-- Path Column -->
- <cp:columnContent>
- <xsl:if test=" $step-name != '' and not(contains(' storedProcedureTask webServiceTask memo shortcutRSSTask urlRSSTask ', concat(' ',$step-objectClass,' '))) ">
- <img align="absmiddle" height="16" width="20" src="{$skin_images}path.gif">
- <xsl:attribute name="alt">
- <xsl:for-each select="runnable/runnable/ancestors/value/value">
- <!-- APAR 87399 PI62572 WRONG JOB LOCATION SHOWN IN CURRENT ACTIVITIES -->
- <xsl:if test="position() != 1"><xsl:value-of select="' > '"/></xsl:if>
- <xsl:value-of select="title"/>
- </xsl:for-each>
- </xsl:attribute>
- </img>
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:choose>
- <xsl:when test=" $step-name != '' ">
- <span lang="{$contentLocale}"><xsl:value-of select="$step-name"/></span>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_MISSING_STEP"/>
- </xsl:otherwise>
- </xsl:choose>
- </cp:columnContent>
- <!-- Task Requested Column -->
- <cp:columnContent>
- <xsl:if test="string(history/history/requestedExecutionTime/value) != ''">
- <xsl:value-of select="xtsext:formatDateFromUTC( string( history/history/requestedExecutionTime/value ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- </xsl:if>
- </cp:columnContent>
- <!-- Task Started Column -->
- <cp:columnContent>
- <xsl:if test="string(history/history/actualExecutionTime/value) != ''">
- <xsl:value-of select="xtsext:formatDateFromUTC( string( history/history/actualExecutionTime/value ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- </xsl:if>
- </cp:columnContent>
- <!--Task Completed Column -->
- <cp:columnContent>
- <xsl:if test="string(history/history/actualCompletionTime/value) != ''">
- <xsl:value-of select="xtsext:formatDateFromUTC( string( history/history/actualCompletionTime/value ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- </xsl:if>
- </cp:columnContent>
- <!-- Status Column -->
- <cp:columnContent>
- <xsl:variable name="step-status" select="status"/>
- <xsl:choose>
- <xsl:when test="$step-status='pending'">
- <xts:string id="IDS_JOB_STATUS_PENDING"/>
- </xsl:when>
- <xsl:when test="$step-status='suspended'">
- <xts:string id="IDS_JOB_STATUS_SUSPENDED"/>
- </xsl:when>
- <xsl:when test="$step-status='executing'">
- <xts:string id="IDS_JOB_STATUS_EXECUTING"/>
- </xsl:when>
- <xsl:when test="$step-status='succeeded'">
- <xts:string id="IDS_JOB_STATUS_SUCCEEDED"/>
- </xsl:when>
- <xsl:when test="$step-status='failed'">
- <xts:string id="IDS_JOB_STATUS_FAILED"/>
- </xsl:when>
- <xsl:when test="$step-status='inactive'">
- <xts:string id="IDS_JOB_STATUS_INACTIVE"/>
- </xsl:when>
- <xsl:when test="$step-status='cancelled' or $step-status='terminated' or $step-status='purged'">
- <xts:string id="IDS_JOB_STATUS_CANCELLED"/>
- </xsl:when>
- </xsl:choose>
- </cp:columnContent>
- <cp:columnContent>
- <xsl:variable name="savedOutputPath" select="string(historyDetails/historyDetails[contains(@*[local-name()='type'], ':historyDetailReportService')]/output/value/value/searchPath/value)"/>
- <xsl:if test="not($isOrphanHistory)">
- <xsl:call-template name="action-properties">
- <xsl:with-param name="obj-name" select="$step-name"/>
- <xsl:with-param name="obj-path" select="runnable/runnable/searchPath/value"/>
- <xsl:with-param name="history-path" select="concat('//history[@eventID="', history/history/eventID/value, '"]')"/>
- <xsl:with-param name="class" select="$step-objectClass"/>
- <xsl:with-param name="reportVersion-path" select="$savedOutputPath"/>
- <xsl:with-param name="runHistoryRequestedTime" select="history/history/requestedExecutionTime/value"/>
- <xsl:with-param name="eventID" select="history/history/eventID/value"/>
- <xsl:with-param name="supportViewOutputsAction" select="$savedOutputPath != ''"/>
- <xsl:with-param name="supportViewRunHistoryDetails" select="'true'"/>
- </xsl:call-template>
- </xsl:if>
- </cp:columnContent>
- </cp:tableContent>
- </cp:table>
- </lyt:section>
- </lyt:layout>
- </xsl:when>
- <xsl:when test="$objectType='report' or $objectType='query' or $objectType='reportView' or $objectType='analysis'">
- <rhu:reportHistoryOptionsSummary responseType="monitorService"/>
- </xsl:when>
- <xsl:when test="$objectType='planningTask' or $objectType='planningMacroTask'"/>
- <!-- no optons section -->
- <xsl:when test="$eventRecord != '' ">
- <xsl:choose>
- <xsl:when test="$objectType='contentTask'">
- <!-- content task options section -->
- <adm:historyOptionsSummary optionsPath="/root/asyncRequestResponse/response/ms:runSpecificationResponse/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')][1]/historyDetails/*[contains(@xsi:type, ':historyDetailRequestArguments')]/options"/>
- </xsl:when>
- <xsl:when test="$objectType='indexUpdateTask'">
- <!-- content task options section -->
- <rhu:indexUpdateTaskOptionsSummary optionsPath="/root/asyncRequestResponse/response/ms:runSpecificationResponse/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')][1]/historyDetails/*[contains(@xsi:type, ':historyDetailRequestArguments')]/options"/>
- </xsl:when>
- <xsl:when test="$objectType='metricsExportTask'">
- <rhu:metricsHistoryExportOptionsSummary/>
- </xsl:when>
- <xsl:when test="$objectType='metricsMaintenanceTask'">
- <rhu:metricsHistoryMaintenanceOptionsSummary/>
- </xsl:when>
- <xsl:when test="$objectType='metricsFileImportTask'">
- <rhu:metricsHistoryImportFromFileOptionsSummary/>
- </xsl:when>
- <xsl:when test="$objectType='metricsDataSourceETLTask'">
- <rhu:metricsHistoryImportFromDataSourceOptionsSummary/>
- </xsl:when>
- <xsl:otherwise/>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <rhu:optionsUnavailable/>
- </xsl:otherwise>
- </xsl:choose>
- <!-- footer: Close button. -->
- <dp:footer>
- <df:button df:id="IDS_CLOSE" df:style="back-url"/>
- </dp:footer>
- </utml:form>
- </dp:page>
- </xsl:template>
- <!--
- Template that generates the first, previous, next and last pager buttons
- -->
- <xsl:template name="pagerButton">
- <xsl:param name="tooltip" select="''"/>
- <xsl:param name="image" select="''"/>
- <xsl:param name="action" select="''"/>
- <xsl:param name="mode" select="''"/>
- <xsl:choose>
- <xsl:when test="string($action) != ''">
- <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">
- <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'">
- <xsl:attribute name="src"><xsl:value-of select="$skin_images"/><xsl:value-of select="$image"/>.gif</xsl:attribute>
- </img>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <img width="13" height="13" class="button" alt="{$tooltip}" title="{$tooltip}" role="button" aria-disabled="true">
- <xsl:attribute name="src"><xsl:value-of select="$skin_images"/><xsl:value-of select="$image"/>_disabled.gif</xsl:attribute>
- </img>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <pf:gen-icon/>
- <pf:serialize-xml/>
- <rhu:genMessageIcons/>
- <prt:renderValuePrompts/>
- <mt:actions mode="tools" maintain="true" monitorServiceResponse="true" viewOutputForm="pform"/>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- If the task is done executing, then redirect the user to the correct view details
- dialog which queries CM
- ===============================================================================================
- -->
- <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">>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- exclude-result-prefixes="xsl pf dp xtsext cp">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <pf:variables/>
- <xsl:template match="/">
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$product_name">
- <dp:meta>
- <pf:meta/> <!-- Add standard meta tags -->
- </dp:meta>
- <form name="pform" method="post" action="{$gateway}">
- <xsl:variable name="class" select="key('env-param','m_class')"/>
- <input name="m" type="hidden">
- <xsl:attribute name="value">
- <xsl:value-of select="$app"/>
- <xsl:choose>
- <xsl:when test="$class = 'exportDeployment' or $class = 'importDeployment'">
- <xsl:value-of select="'/history/deployment_details.xts'"/>
- </xsl:when>
- <xsl:when test="$class = 'dataMovementTask' or $class = 'dataMovementTaskAlias'">
- <xsl:value-of select="'/history/dataMovement_details.xts'"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'/history/view_details.xts'"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </input>
- <input name="m_obj" type="hidden" value="//history[@eventID = '{key('env-param','eventID')}']"/>
- <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' ]">
- <input name="{@name}" type="hidden" value="{.}"/>
- </xsl:for-each>
- </form>
- <script language="javascript">
- function init()
- {
- document.pform.submit();
- }
- </script>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- Debug
- ===============================================================================================
- -->
- <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">
- <!-- get the debug logic sheet -->
- <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
- <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">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <xsl:template match="/">
- <dbg:dumpxml select="/root"/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|