1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2014, 2015
- 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).
- -->
- <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:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:ut="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/ui-templates/"
- 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:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:rhu="http://developer.cognos.com/schemas/xts/historyui"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/1/"
- xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:ms="http://www.ibm.com/xmlns/prod/cognos/monitorService/201101/"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:x="x"
- xmlns:out="dummy-uri"
- exclude-result-prefixes="xsl cm lyt dp df cf cp rhu bus dbg cml utml xts xtsext send pf xsi x ms">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
- <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
- <xsl:template match="rhu:variables">
- <xsl:if test="@responseType = 'monitorService'">
- <out:variable name="eventRecord" select="/root/asyncRequestResponse/response/ms:runSpecificationResponse/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')][1]"/>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="@responseType = 'monitorService'">
- <out:variable name="the-object" select="$eventRecord/historyDetails/*[contains(@xsi:type, ':historyDetailRequestArguments')]"/>
- </xsl:when>
- <xsl:otherwise>
- <out:variable name="the-object" select="/root/cm:queryResponse/cm:queryReply[3]/*"/>
- </xsl:otherwise>
- </xsl:choose>
- <out:variable name="objectName">
- <xsl:choose>
- <xsl:when test="@responseType = 'monitorService'"><out:value-of select="$eventRecord/runnable/runnable/defaultName/value"/></xsl:when>
- <xsl:otherwise><out:value-of select="/root/cm:queryResponse/cm:queryReply[1]/*[1]/cm:parent/*/cm:defaultName"/></xsl:otherwise>
- </xsl:choose>
- </out:variable>
- <out:variable name="targetSavedObjectName">
- <xsl:choose>
- <xsl:when test="@responseType = 'monitorService'"><out:value-of select="$the-object/options/value/*[./name='saveAs'][./objectClass='reportView']/objectName/*/value"/></xsl:when>
- <xsl:otherwise><out:value-of select="/root/cm:queryResponse/cm:queryReply[3]/cm:historyDetailRequestArguments/*[local-name() = 'options']/*[local-name() = 'value']/*[local-name() = 'item'][./*[local-name() = 'name']='saveAs'][./*[local-name() = 'objectClass']='reportView']/*[local-name() = 'objectName']/*/*[local-name() = 'value']"/></xsl:otherwise>
- </xsl:choose>
- </out:variable>
- <out:variable name="objectType">
- <xsl:choose>
- <xsl:when test="@responseType = 'monitorService'"><out:value-of select="$eventRecord/runnable/runnable/objectClass/value"/></xsl:when>
- <xsl:otherwise><out:value-of select="/root/cm:queryResponse/cm:queryReply[1]/*[1]/cm:parent/*/cm:objectClass"/></xsl:otherwise>
- </xsl:choose>
- </out:variable>
- <out:variable name="targetSavedName">
- <out:choose>
- <out:when test="$targetSavedObjectName != ''">
- <out:value-of select="$targetSavedObjectName"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="$objectName"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="output-searchPath">
- <xsl:choose>
- <xsl:when test="@responseType = 'monitorService'"><out:value-of select="$eventRecord/historyDetails/*[contains(@xsi:type, ':historyDetailReportService')]/output/value/value/searchPath/value"/></xsl:when>
- <xsl:otherwise><out:value-of select="string(/root/cm:queryResponse/cm:queryReply[4]/*/*[local-name()='output']/*/*[local-name()='searchPath'])"/></xsl:otherwise>
- </xsl:choose>
- </out:variable>
- <out:variable name="js-encoded-output-searchPath">
- <out:value-of select="xtsext:javascriptencode($output-searchPath)"/>
- </out:variable>
- <out:variable name="js-encoded-runHistoryRequestedTime">
- <xsl:choose>
- <xsl:when test="@responseType = 'monitorService'"><out:value-of select="xtsext:javascriptencode(string($eventRecord/history/history/actualExecutionTime/value))"/></xsl:when>
- <xsl:otherwise><out:value-of select="xtsext:javascriptencode(string(/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:actualExecutionTime))"/></xsl:otherwise>
- </xsl:choose>
- </out:variable>
- <out:variable name="js-encoded-back-path">
- <out:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='m']))"/>
- </out:variable>
- <out:variable name="versions_target">
- <out:choose>
- <out:when test="key('system-param', 'versions')/target"><out:value-of select="key('system-param', 'versions')/target"/></out:when>
- <out:otherwise>outputs.xts</out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="js-encoded-runnable-path">
- <xsl:choose>
- <xsl:when test="@responseType = 'monitorService'"><out:value-of select="xtsext:javascriptencode(string($eventRecord/runnable/runnable/searchPath/value))"/></xsl:when>
- <xsl:otherwise><out:value-of select="xtsext:javascriptencode(string(/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:parent/*/cm:searchPath))"/></xsl:otherwise>
- </xsl:choose>
- </out:variable>
- <xsl:if test="@responseType != 'monitorService'">
- <out:key name="output-location" match="/root/stepsInfo/cm:queryResponse/cm:queryReply/cm:historyDetailReportService/cm:output/*/cm:searchPath" use="../../../cm:parent/*/cm:storeID"/>
- </xsl:if>
- <!-- is the current user the owner of the history or has Monitor Activity capability and at least one permission. -->
- <out:variable name="isHistoryOwner" select="contains(string(/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*[local-name()='history']/*[local-name()='owner']/*/*[local-name()='searchPath']), string(/root/session/param[@name='e_hp']))"/>
- <out:variable name="hasAtLeastOnePermission" select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*[local-name()='history']/*[local-name()='parent']/*/*[local-name()='permissions' and (contains(., 'execute') or contains(., 'read') or contains(., 'write') or contains(., 'setPolicy') or contains(., 'traverse'))]!=''"/>
- <out:variable name="isCapableToRerun" select="string($isHistoryOwner)='true' or (string($hasAtLeastOnePermission)='true' and string($userCanUseMonitorActivity)='true')"/>
- <!-- situation could arise where a complexRunnable fails but not it's contents. This variable is used to check for that situation -->
- <out:variable name="rerunList" select="/root/rerunList/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='runSpecificationResponse']/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')]"/>
- <out:variable name="rerunListEventID" select="$rerunList/eventID"/>
- </xsl:template>
- <!--
- rhu:optionsUnavailable
- -->
- <xsl:template match="rhu:optionsUnavailable">
- <out:variable name="optionsTitle">
- <out:choose>
- <out:when test="string($objectType)='report'">
- <xts:string id="IDS_OBJ_REPORT"/>
- </out:when>
- <out:when test="string($objectType)='interactiveReport'">
- <xts:string id="IDS_OBJ_INTERACTIVEREPORT"/>
- </out:when>
- <out:when test="string($objectType)='query'">
- <xts:string id="IDS_OBJ_QUERY"/>
- </out:when>
- <out:when test="string($objectType)='analysis'">
- <xts:string id="IDS_OBJ_ANALYSIS"/>
- </out:when>
- <out:when test="string($objectType)='reportView'">
- <xts:string id="IDS_OBJ_REPORTVIEW"/>
- </out:when>
- <out:when test="string($objectType)='jobDefinition'">
- <xts:string id="IDS_OBJ_JOBDEFINITION"/>
- </out:when>
- <out:when test="string($objectType)='agentDefinition'">
- <xts:string id="IDS_OBJ_AGENT"/>
- </out:when>
- <out:when test="string($objectType)='agentDefinitionView'">
- <xts:string id="IDS_OBJ_AGENTVIEW"/>
- </out:when>
- <out:when test="string($objectType)='contentTask'">
- <xts:string id="IDS_VRH_DETAILS_CONTENT_MAINTENANCE_TASK"/>
- </out:when>
- <out:when test="string($objectType)='queryServiceTask'">
- <xts:string id="IDS_OBJ_QUERYSERVICETASK"/>
- </out:when>
- <out:when test="string($objectType)='metricsExportTask'">
- <xts:string id="IDS_VRH_DETAILS_METRICS_EXPORT"/>
- </out:when>
- <out:when test="string($objectType)='indexUpdateTask'">
- <xts:string id="IDS_VRH_DETAILS_INDEX_UPDATE_TASK"/>
- </out:when>
- <out:when test="string($objectType)='metricsMaintenanceTask'">
- <xts:string id="IDS_VRH_DETAILS_METRICS_MAINTENANCE"/>
- </out:when>
- <out:when test="string($objectType)='metricsFileImportTask'">
- <xts:string id="IDS_VRH_DETAILS_METRICS_IMPORT_FROM_FILES"/>
- </out:when>
- <out:when test="string($objectType)='metricsDataSourceETLTask'">
- <xts:string id="IDS_VRH_DETAILS_METRICS_IMPORT_FROM_DS"/>
- </out:when>
- </out:choose>
- </out:variable>
- <lyt:layout style="1" border="yes" longTitle="$optionsTitle">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:label>
- <xts:string id="IDS_VRH_DETAILS_OPTIONS"/>
- </dp:label>
- </dp:section>
- <dp:section>
- <dp:text>
- <xts:string id="IDS_VRH_DETAILS_OPTIONS_UNAVAILABLE"/>
- </dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <!--
- rhu:rerunFramework
- Adds the javascript and possibly a div needed for the rerun action
- -->
- <xsl:template match="rhu:rerunFramework">
- <!-- will be set when the user does a rerun -->
- <utml:input type="hidden" name="eventID" value="" utml:update="false"/>
- <utml:input type="hidden" name="restartEventID" value="" utml:update="false"/>
- <utml:input type="hidden" name="parentSearchPath" utml:update="false">
- <utml:value><out:value-of select="/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:parent/*/cm:searchPath"/></utml:value>
- </utml:input>
- <!-- jobs and agents are 'complex' and we may need to call a different morphlet to handle the rerun.-->
- <out:variable name="complexRunnable" select="contains(' jobDefinition agentDefinition agentDefinitionView ',concat(' ', $objectType,' '))"/>
- <script language="javascript">
- function rerun() {
- var frm = document.pform;
- <out:choose>
- <out:when test="$complexRunnable and $rerunList">
- frm.ps_nav_op.value = 'push';
- frm.m.value = '<out:value-of select="$app"/>/history/rerun.xts';
- doRerun();
- </out:when>
- <out:otherwise>
- rerunDiv.show();
- </out:otherwise>
- </out:choose>
- }
- <!-- called when the user hits OK on the popup dialog -->
- function rerunSimpleRunnable() {
- var frm = document.pform;
- frm.ps_nav_op.value = 'maintain';
- frm.ifrmcmd.value = 'rerun';
- frm.m.value = '<out:value-of select="$app"/>/submit.xts';
- doRerun();
- }
- function doRerun() {
- var frm = document.pform;
- frm.eventID.value = '<out:value-of select="xtsext:javascriptencode(string(/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:eventID))"/>';
- frm.restartEventID.value = '<out:value-of select="xtsext:javascriptencode(string(/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:restartEventID))"/>';
- frm.submit();
- }
- </script>
- <!-- for anything but jobs and agents we show a simple popup div to confirm the rerun unless the rerunList is empty-->
- <out:if test="not($complexRunnable and $rerunList)">
- <cp:genericDialog id="rerunDiv" interactive="true" align="left" width="300" positionVertical="true" positionHorizontal="true" closeOnClick="rerunDiv.hide();" role="alertdialog">
- <cp:param name="title"><xts:string id="IDS_COGNOS_REPORTS"/></cp:param>
- <cp:param name="body">
- <dp:box valign="top">
- <dp:boxSection hgap="20">
- <img width="32" height="32" align="top" hspace="10">
- <out:attribute name="alt"><xts:string id="IDS_ICON_INFORMATION"/></out:attribute>
- <out:attribute name="src">
- <out:value-of select="concat($webcontent, '/', $app, '/images/msg_information.gif')"/>
- </out:attribute>
- </img>
- </dp:boxSection>
- <dp:boxSection>
- <dp:list>
- <dp:section1>
- <xts:string id="IDS_VRH_RERUN_POPUP">
- <xts:param name="objName"><out:value-of select="key('env-param', 'm_name')"/></xts:param>
- </xts:string>
- </dp:section1>
- </dp:list>
- <br/><br/>
- <dp:list>
- <dp:section1>
- <xts:string id="IDS_VRH_RERUN_POPUP_CONFIRM"/>
- </dp:section1>
- </dp:list>
- <br/>
- </dp:boxSection>
- </dp:box>
- </cp:param>
- <cp:param name="footer">
- <dp:simpleFooter>
- <df:button df:id="IDS_OK" df:style="href" df:href="javascript:rerunDiv.hide(); rerunSimpleRunnable();"/>
- <df:button df:id="IDS_CANCEL" df:style="href" df:href="javascript:rerunDiv.hide()"/>
- </dp:simpleFooter>
- </cp:param>
- </cp:genericDialog>
- </out:if>
- </xsl:template>
- <xsl:template match="rhu:timeAndStatus">
- <lyt:layout style="2" border="no">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:label>
- <xts:string id="IDS_VRH_DETAILS_START_TIME"/>
- </dp:label>
- </dp:section>
- <dp:section>
- <dp:text>
- <out:variable name="sTime">
- <xsl:choose>
- <xsl:when test="@responseType = 'monitorService'">
- <out:value-of select="$eventRecord/history/history/actualExecutionTime/value"/>
- </xsl:when>
- <xsl:otherwise>
- <out:value-of select="/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:actualExecutionTime"/>
- </xsl:otherwise>
- </xsl:choose>
- </out:variable>
- <out:choose>
- <out:when test="$sTime=''"><xts:string id="IDS_VRH_DETAILS_OPTIONS_UNAVAILABLE"/></out:when>
- <out:otherwise>
- <span lang="{'{$contentLocale}'}"><out:value-of select="xtsext:enforceBTD(xtsext:formatDateFromUTC( string( $sTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) ), $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></span>
- </out:otherwise>
- </out:choose>
- </dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
- <lyt:section>
- <dp:textarea>
- <dp:section1>
- <xts:string id="IDS_VRH_DETAILS_COMPLETION_TIME"/>
- </dp:section1>
- <dp:section2>
- <out:variable name="eTime">
- <xsl:choose>
- <xsl:when test="@responseType = 'monitorService'">
- <out:value-of select="$eventRecord/history/history/actualCompletionTime/value"/>
- </xsl:when>
- <xsl:otherwise>
- <out:value-of select="/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:actualCompletionTime"/>
- </xsl:otherwise>
- </xsl:choose>
- </out:variable>
- <out:choose>
- <out:when test="$eTime=''"><xts:string id="IDS_VRH_DETAILS_OPTIONS_UNAVAILABLE"/></out:when>
- <out:otherwise>
- <span lang="{'{$contentLocale}'}"><out:value-of select="xtsext:enforceBTD(xtsext:formatDateFromUTC( string( $eTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) ), $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></span>
- </out:otherwise>
- </out:choose>
- </dp:section2>
- </dp:textarea>
- </lyt:section>
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:label>
- <xts:string id="IDS_DEPLOYMENT_STATUS"/>
- </dp:label>
- </dp:section>
- <dp:section>
- <dp:text>
- <out:choose>
- <out:when test="$runStatus='succeeded'">
- <xts:string id="IDS_STATUS_SUCCEEDED"/>
- </out:when>
- <out:when test="$runStatus='failed'">
- <xts:string id="IDS_STATUS_FAILED"/>
- </out:when>
- <out:when test="$runStatus='executing'">
- <xts:string id="IDS_STATUS_EXECUTING"/>
- </out:when>
- <out:when test="$runStatus='cancelled' or $runStatus='terminated' or $runStatus='purged'">
- <xts:string id="IDS_STATUS_CANCELLED"/>
- </out:when>
- <out:when test="$runStatus='pending'">
- <xts:string id="IDS_STATUS_PENDING"/>
- </out:when>
- <out:when test="$runStatus='scheduled'">
- <xts:string id="IDS_STATUS_SCHEDULED"/>
- </out:when>
- <out:when test="$runStatus='suspended'">
- <xts:string id="IDS_STATUS_SUSPENDED"/>
- </out:when>
- <out:when test="$runStatus='inactive'">
- <xts:string id="IDS_STATUS_INACTIVE"/>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_STATUS_UNKNOWN"/>
- </out:otherwise>
- </out:choose>
- <!-- if we have events that can be rerun, or the container object failed, then show the rerun link -->
- <xsl:variable name="requiresContentTaskType" select="count(./requiresContentTaskType) > 0"/>
- <out:variable name="contentTypeKnown">
- <xsl:choose>
- <xsl:when test="$requiresContentTaskType">
- <out:choose>
- <out:when test="key('env-param','contentTaskType') = 'unknown'">false</out:when>
- <out:otherwise>true</out:otherwise>
- </out:choose>
- </xsl:when>
- <xsl:otherwise>true</xsl:otherwise>
- </xsl:choose>
- </out:variable>
- <out:if test="$isCapableToRerun and ($rerunList or $runStatus='failed') and $rerunListEventID and $contentTypeKnown='true'">
- <xsl:text>    </xsl:text>
- <a href="#" onclick="rerun()" aria-haspopup="true"><xts:string id="IDS_VRH_RERUN"/></a>
- </out:if>
- </dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
- <!-- Show message if this history was generated by a rerun OR it was part of a job or agent -->
- <lyt:section>
- <!-- if we have an ownerEventID then the history was created as part of a job or agent -->
- <out:variable name="ownerEventID">
- <xsl:choose>
- <xsl:when test="@responseType = 'monitorService'">
- <out:value-of select="$eventRecord/history/history/ownerEventID/value"/>
- </xsl:when>
- <xsl:otherwise>
- <out:value-of select="/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:ownerEventID"/>
- </xsl:otherwise>
- </xsl:choose>
- </out:variable>
- <!-- if we have a restartEventID then the history was created by a rerun -->
- <out:variable name="rerunEventID">
- <out:value-of select="/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:restartEventID"/>
- </out:variable>
- <out:if test="string($ownerEventID) != '' or string($rerunEventID) != ''">
- <dp:list>
- <dp:section>
- <dp:choice>
- <dp:section1 wrap="wrap">
- <img height="30" width="30">
- <out:attribute name="alt"><xts:string id="IDS_ICON_TIP"/></out:attribute>
- <out:attribute name="src"><out:value-of select="$skin_images"/>tip_template.gif</out:attribute>
- </img>
- </dp:section1>
- <dp:section2 wrap="wrap">
- <out:variable name="parentLink"><xts:string id="IDS_VRH_PARENT_LINK"/></out:variable>
- <out:if test="string($ownerEventID) != ''">
- <!-- get the owner class. Should be jobDefinition, agentDefinition or agentDefinitionView -->
- <!-- when dealing with the MS, the owerClass and ownerName will get fixed when the page loads -->
- <out:variable name="ownerClass">
- <xsl:if test="@responseType != 'monitorService'">
- <out:value-of select="/root/relatedHistories/cm:queryResponse/cm:queryReply[1]/cm:history/cm:parent/*/cm:objectClass"/>
- </xsl:if>
- </out:variable>
- <out:variable name="ownerName">
- <xsl:if test="@responseType != 'monitorService'">
- <out:value-of select="/root/relatedHistories/cm:queryResponse/cm:queryReply[1]/cm:history/cm:parent/*/cm:defaultName"/>
- </xsl:if>
- </out:variable>
- <xts:string id="IDS_VRH_PARENT_TEXT">
- <xts:param name="parentLink">
- <utml:a utml:op="maintain">
- <out:attribute name="onclick">
- document.pform.m_name.value = '<out:value-of select="xtsext:javascriptencode(string($ownerName))"/>';
- document.pform.m_class.value = '<out:value-of select="xtsext:javascriptencode(string($ownerClass))"/>';
- <xsl:choose>
- <xsl:when test="@responseType = 'monitorService'">
- document.pform.m.value = 'portal/history/view_executing_details.xts';
- document.pform.eventID.value = '<out:value-of select="xtsext:javascriptencode(string($ownerEventID))"/>';
- </xsl:when>
- <xsl:otherwise>
- document.pform.m.value = 'portal/history/view_details.xts';
- document.pform.m_obj.value = '//history[@eventID = "<out:value-of select="xtsext:javascriptencode(string($ownerEventID))"/>"]';
- </xsl:otherwise>
- </xsl:choose>
- </out:attribute>
- <out:value-of select="$parentLink"/>
- </utml:a>
- </xts:param>
- </xts:string>
- <out:if test="string($rerunEventID) != ''"><br/><br/></out:if>
- </out:if>
- <out:if test="string($rerunEventID) != ''">
- <xts:string id="IDS_VRH_RERUN_TEXT"/>
- </out:if>
- </dp:section2>
- </dp:choice>
- </dp:section>
- </dp:list>
- </out:if>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <xsl:template match="rhu:stepsHistory">
- <out:variable name="className">
- <out:choose>
- <out:when test="string($objectType)='jobDefinition'">
- <xts:string id="IDS_OBJ_JOBDEFINITION"/>
- </out:when>
- <out:when test="string($objectType)='agentDefinition'">
- <xts:string id="IDS_OBJ_AGENT"/>
- </out:when>
- <out:when test="string($objectType)='agentDefinitionView'">
- <xts:string id="IDS_OBJ_AGENTVIEW"/>
- </out:when>
- <out:when test="string($objectType)='reportDataServiceAgentDefinition'">
- <xts:string id="IDS_OBJ_WATCHRULE"/>
- </out:when>
- <out:when test="string($objectType)='humanTask'">
- <xts:string id="IDS_OBJ_HUMANTASK"/>
- </out:when>
- </out:choose>
- </out:variable>
- <lyt:layout style="1" longTitle="$className" border="yes">
- <lyt:section>
- <out:if test="contains(string($objectType),'agentDefinition')">
- <dp:list>
- <dp:section>
- <dp:label>
- <xts:string id="IDS_VRH_DETAILS_OPTIONS"/>
- </dp:label>
- </dp:section>
- <dp:section>
- <out:choose>
- <out:when test="$the-object != '' ">
- <!-- parameters (To do: display each parameter on separate line) -->
- <out:if test="/root/*[local-name()='UIHelpers']/*[local-name()='parameterDescription']!=''">
- <dp:text><out:value-of select="/root/*[local-name()='UIHelpers']/*[local-name()='parameterDescription']"/></dp:text>
- </out:if>
- </out:when>
- <out:otherwise>
- <dp:text><xts:string id="IDS_VRH_DETAILS_OPTIONS_UNAVAILABLE"/></dp:text>
- </out:otherwise>
- </out:choose>
- </dp:section>
- </dp:list>
- </out:if>
- </lyt:section>
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:label>
- <out:choose>
- <out:when test="string($objectType)='jobDefinition'">
- <xts:string id="IDS_PROP_JOB_STEPS_LABEL"/>
- </out:when>
- <out:when test="contains(string($objectType),'agentDefinition')">
- <xts:string id="IDS_VRH_DETAILS_TASKS_EVENTS"/>
- </out:when>
- <out:when test="contains(string($objectType),'reportDataServiceAgentDefinition')">
- <xts:string id="IDS_VRH_DETAILS_TASKS_WATCH_RULES"/>
- </out:when>
- <out:when test="contains(string($objectType),'humanTask')">
- <xts:string id="IDS_VRH_DETAILS_TASKS_HUMANTASK"/>
- </out:when>
- </out:choose>
- </dp:label>
- <dp:text width="100%"/>
- </dp:section>
- </dp:list>
- <!-- indicate to the user that the detail level history was set to false -->
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='writeCompleteHistory']/*[local-name()='value']='false'">
- <dp:textarea>
- <dp:section1></dp:section1>
- <dp:section2>
- <dp:text width="100%"><xts:string id="IDS_PROP_JOB_NO_HISTORY_DETAIL"/></dp:text>
- </dp:section2>
- </dp:textarea>
- </out:if>
- <cf:main-pager-section form="pform" name="historydetail" virtualPage="true" width="100%">
- <cf:param name="item-path">/root/cm:queryResponse/cm:queryReply[4]/*</cf:param>
- <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
- <cf:param name="lines-per-page"><out:value-of select="key('session-param', 'linesPerPage')"/></cf:param>
- <cf:param name="pagerSummary"><xts:string id="IDS_VRH_DETAILS_MESSAGES_SUMMARY"/></cf:param>
- <cf:param name="rows">
- <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>
- <out:text/><xts:string id="IDS_HEADING_REPORT_NAME"/><out: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>
- <out:variable name="storeID" select="./cm:related/cm:history/cm:parent/*/cm:storeID"/>
- <out:variable name="isDangling" select="/root/stepsInfo/cm:queryResponse/cm:queryReply/*[cm:storeID = $storeID]/cm:base/@nil='true'"/>
- <out:variable name="isOrphanHistory" select="./cm:related/@nil = 'true'"/> <!-- This show if the historyDetailReportService is really dangling. Not for broken icon. -->
- <out:variable name="stepSearchPath" select="/root/stepsInfo/cm:queryResponse/cm:queryReply/*[cm:storeID = $storeID]/cm:searchPath"/>
- <out:variable name="stepHistory" select="./cm:related/*"/>
- <out:variable name="step-report" select="/root/stepsInfo/cm:queryResponse/cm:queryReply/*[cm:storeID = $storeID]"/>
- <out:variable name="step-name" select="/root/stepsInfo/cm:queryResponse/cm:queryReply/*[cm:storeID = $storeID]/cm:defaultName"/>
- <out:variable name="step-iconURI" select="/root/stepsInfo/cm:queryResponse/cm:queryReply/*[cm:storeID = $storeID]/cm:iconURI"/>
- <out:variable name="step-ancestors" select="/root/stepsInfo/cm:queryResponse/cm:queryReply/*[cm:storeID = $storeID]/cm:ancestors"/>
- <out:variable name="step-objectClass" select="/root/stepsInfo/cm:queryResponse/cm:queryReply/*[cm:storeID = $storeID]/cm:objectClass"/>
- <out:variable name="step-hidden" select="/root/stepsInfo/cm:queryResponse/cm:queryReply/*[cm:storeID = $storeID]/cm:hidden"/>
- <!-- Icon Column -->
- <cp:columnContent>
- <out:call-template name="gen-icon">
- <out:with-param name="baseClass" select="string(/root/stepsInfo/cm:queryResponse/cm:queryReply/cm:report[./cm:storeID = $storeID]/cm:objectClass)"/>
- <out:with-param name="class" select="$step-objectClass"/>
- <out:with-param name="isDangling" select="$isDangling"/>
- <out:with-param name="hiddenObject" select="$step-hidden"/>
- <out:with-param name="iconURIOverride" select="$step-iconURI"/>
- </out:call-template>
- </cp:columnContent>
- <!-- Path Column -->
- <cp:columnContent>
- <out: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">
- <out:attribute name="alt">
- <cf:do-the-path-link>
- <cf:param name="familytree">$step-ancestors</cf:param>
- <cf:param name="familymember">$step-name</cf:param>
- <cf:param name="onlyAncestors">true</cf:param>
- </cf:do-the-path-link>
- </out:attribute>
- </img>
- <out:text> </out:text>
- </out:if>
- <out:choose>
- <out:when test=" $step-name != '' ">
- <out:value-of select="$step-name"/>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_MISSING_STEP"/>
- </out:otherwise>
- </out:choose>
- </cp:columnContent>
- <!-- Task Requested Column -->
- <cp:columnContent>
- <out:variable name="req-time" select="xtsext:formatDateFromUTC( string( $stepHistory/cm:requestedExecutionTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- <out:value-of select="$req-time"/>
- </cp:columnContent>
- <!-- Task Started Column -->
- <cp:columnContent>
- <out:variable name="start-time" select="xtsext:formatDateFromUTC( string( $stepHistory/cm:actualExecutionTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- <out:value-of select="$start-time"/>
- </cp:columnContent>
- <!--Task Completed Column -->
- <cp:columnContent>
- <out:variable name="end-time" select="xtsext:formatDateFromUTC( string( $stepHistory/cm:actualCompletionTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- <out:value-of select="$end-time"/>
- </cp:columnContent>
- <!-- Status Column -->
- <cp:columnContent>
- <out:variable name="step-status" select="$stepHistory/cm:status"/>
- <out:variable name="runStatusIconError">
- <out:choose>
- <out:when test="$stepHistory/cm:maximumDetailSeverity='fatal'">true</out:when>
- <out:when test="$stepHistory/cm:maximumDetailSeverity='error'">true</out:when>
- <out:otherwise>false</out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="runStatusIconWarn">
- <out:choose>
- <out:when test="$stepHistory/cm:maximumDetailSeverity='warn'">true</out:when>
- <out:otherwise>false</out:otherwise>
- </out:choose>
- </out:variable>
- <out:call-template name="gen-status">
- <out:with-param name="status" select="$step-status"/>
- <out:with-param name="runStatusIconError" select="$runStatusIconError"/>
- <out:with-param name="runStatusIconWarn" select="$runStatusIconWarn"/>
- </out:call-template>
- </cp:columnContent>
- <!-- Actions Column -->
- <cp:columnContent>
- <out:variable name="supportViewOutputsAction">
- <out:choose>
- <out:when test="key('output-location', $stepHistory/cm:storeID)">true</out:when>
- <out:otherwise>false</out:otherwise>
- </out:choose>
- </out:variable>
- <out:if test="not($isOrphanHistory)">
- <out:call-template name="action-properties">
- <out:with-param name="obj-name" select="$step-name"/>
- <out:with-param name="obj-path" select="$stepSearchPath"/>
- <out:with-param name="history-path" select="concat('//history[@eventID="', $stepHistory/cm:eventID, '"]')"/>
- <out:with-param name="class" select="$step-objectClass"/>
- <out:with-param name="reportVersion-path" select="key('output-location', $stepHistory/cm:storeID)"/>
- <out:with-param name="runHistoryRequestedTime" select="$stepHistory/cm:requestedExecutionTime"/>
- <out:with-param name="supportViewOutputsAction" select="$supportViewOutputsAction"/>
- <out:with-param name="supportViewRunHistoryDetails" select="'true'"/>
- </out:call-template>
- </out:if>
- </cp:columnContent>
- </cp:tableContent>
- </cf:param>
- </cf:main-pager-section>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <xsl:template match="rhu:messages">
- <lyt:layout style="1" title="IDS_DEPLOYMENT_DETAILED_RECORD_MESSAGES" border="yes">
- <lyt:section>
- <cf:main-pager-section name="messages" form="pform" virtualPage="true">
- <cf:param name="label">
- <div>
- <dp:label for="lbl_severity"><xts:string id="IDS_VRH_DETAILS_SEVERITY"/></dp:label>
- <xsl:call-template name="rhu:severity"/>
- </div>
- </cf:param>
- <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
- <cf:param name="item-path">/root/cm:queryResponse/cm:queryReply[2]/*</cf:param>
- <cf:param name="lines-per-page">
- <out:value-of select="key('session-param', 'linesPerPage')"/>
- </cf:param>
- <cf:param name="pagerSummary"><xts:string id="IDS_VRH_DETAILS_MESSAGES_SUMMARY"/></cf:param>
- <cf:param name="rows">
- <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><out:choose><out:when test="key('session-param', 's_hd') = 'ta' ">'td'</out:when><out:when test="key('session-param', 's_hd') = 'td'">'sa'</out:when><out:otherwise>'ta'</out:otherwise></out: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">
- <out:value-of select="xtsext:formatDateFromUTC( string( cm:detailTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- </cp:columnContent>
- <cp:columnContent valign="top">
- <out:call-template name="gen-message-icon"/>
- </cp:columnContent>
- <cp:columnContent wrap="wrap" valign="top">
- <out:value-of select="cm:detail"/>
- </cp:columnContent>
- </cp:tableContent>
- </cf:param>
- </cf:main-pager-section>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <xsl:template name="rhu:severity" match="rhu:severity">
- <out:variable name="filterSeverity" select="key('env-param', 'vrh_severity')"/>
- <utml:select name="vrh_severity" id="lbl_severity" size="1" onChange="javascript:doApplyFilter();" style="font-weight: normal;">
- <utml:option value="all">
- <out:if test="not($filterSeverity) or ($filterSeverity = 'all')">
- <out:attribute name="selected">selected</out:attribute>
- </out:if>
- <xts:string id="IDS_VRH_DETAILS_SEVERITY_ALL"/>
- </utml:option>
- <utml:option value="warn">
- <out:if test="$filterSeverity = 'warn'">
- <out:attribute name="selected">selected</out:attribute>
- </out:if>
- <xts:string id="IDS_VRH_DETAILS_SEVERITY_WARN"/>
- </utml:option>
- <utml:option value="info">
- <out:if test="$filterSeverity = 'info'">
- <out:attribute name="selected">selected</out:attribute>
- </out:if>
- <xts:string id="IDS_VRH_DETAILS_SEVERITY_INFO"/>
- </utml:option>
- <utml:option value="fatal">
- <out:if test="$filterSeverity = 'fatal'">
- <out:attribute name="selected">selected</out:attribute>
- </out:if>
- <xts:string id="IDS_VRH_DETAILS_SEVERITY_FATAL"/>
- </utml:option>
- <utml:option value="error">
- <out:if test="$filterSeverity = 'error'">
- <out:attribute name="selected">selected</out:attribute>
- </out:if>
- <xts:string id="IDS_VRH_DETAILS_SEVERITY_ERROR"/>
- </utml:option>
- <utml:option value="debug">
- <out:if test="$filterSeverity = 'debug'">
- <out:attribute name="selected">selected</out:attribute>
- </out:if>
- <xts:string id="IDS_VRH_DETAILS_SEVERITY_DEBUG"/>
- </utml:option>
- </utml:select>
- </xsl:template>
- <!--
- Table that shows the list of events that can be rerun
- -->
- <xsl:template match="rhu:outstanding">
- <!--
- only show this section if we're dealing with a container runnable (job or agent) and we got
- items that can be rerun from the Monitor Service response
- -->
- <out:if test="contains(' jobDefinition agentDefinition agentDefinitionView ',concat(' ',$objectType,' ')) and $rerunList/*">
- <lyt:layout style="1" title="IDS_VRH_OUTSTANDING_RERUN" border="yes">
- <lyt:intro>
- <out:variable name="objectString">
- <out:choose>
- <out:when test="string($objectType)='jobDefinition'"><xts:string id="IDS_HRE_STEPS"/></out:when>
- <out:otherwise><xts:string id="IDS_HRE_TASKS"/></out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="rerunStepsLink">
- <a href="#" onclick="rerun();"><xts:string id="IDS_VRH_RERUN_STEPS_IN_TEXT"/></a>
- </out:variable>
- <out:variable name="rerunTasksLink">
- <a href="#" onclick="rerun();"><xts:string id="IDS_VRH_RERUN_TASKS_IN_TEXT"/></a>
- </out:variable>
- <out:choose>
- <out:when test="string($objectType)='jobDefinition'">
- <out:choose>
- <out:when test="$isCapableToRerun">
- <xts:string id="IDS_VRH_OUTSTANDING_RERUN_DESC_STEPS">
- <xts:param name="rerunLink"><out:copy-of select="$rerunStepsLink"/></xts:param>
- </xts:string>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_VRH_OUTSTANDING_NO_RERUN_DESC_STEPS"/>
- </out:otherwise>
- </out:choose>
- </out:when>
- <out:otherwise>
- <out:choose>
- <out:when test="$isCapableToRerun">
- <xts:string id="IDS_VRH_OUTSTANDING_RERUN_DESC">
- <xts:param name="objectClass"><out:value-of select="$objectString"/></xts:param>
- <xts:param name="rerunLink"><out:copy-of select="$rerunTasksLink"/></xts:param>
- </xts:string>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_VRH_OUTSTANDING_NO_RERUN_DESC">
- <xts:param name="objectClass"><out:value-of select="$objectString"/></xts:param>
- </xts:string>
- </out:otherwise>
- </out:choose>
- </out:otherwise>
- </out:choose>
- </lyt:intro>
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:text width="100%"/>
- <out:choose>
- <out:when test="count($rerunList/*) > 0">
- <dp:text nospace="nospace">
- 1 - <out:value-of select="count($rerunList)"/>
- </dp:text>
- </out:when>
- <out:otherwise>
- <dp:text/>
- </out:otherwise>
- </out:choose>
- </dp:section>
- </dp:list>
- <cp:table name="outstanding" iterate="$rerunList" showEmptyMsg="true">
- <!-- rerun actions -->
- <cp:action>
- <out:if test="$isCapableToRerun">
- <a href="#" onclick="rerun();"><xts:string id="IDS_VRH_RERUN"/></a>
- </out:if>
- </cp:action>
- <!-- Column Headers -->
- <cp:tableHeader>
- <!-- Icon Column -->
- <cp:columnHeader width="20"/>
- <!-- Path Column -->
- <cp:columnHeader width="50%">
- <span style="padding-left: 1px; padding-right: 1px;"><xts:string id="IDS_PATH_INDICATOR"/> </span>
- <out:text/><xts:string id="IDS_HEADING_REPORT_NAME"/><out:text/>
- </cp:columnHeader>
- <cp:columnHeader width="50%">
- <xts:string id="IDS_HEADING_STATUS"/>
- </cp:columnHeader>
- </cp:tableHeader>
- <!-- Column contents -->
- <cp:tableContent>
- <!-- Icon Column -->
- <cp:columnContent>
- <out:variable name="runnable" select="runnable/runnable"/>
- <out:call-template name="gen-icon">
- <out:with-param name="class" select="$runnable/objectClass/value"/>
- <out:with-param name="hiddenObject" select="$runnable/hidden/value"/>
- <out:with-param name="iconURIOverride" select="$runnable/iconURI/value"/>
- </out:call-template>
- </cp:columnContent>
- <cp:columnContent>
- <img align="absmiddle" height="16" width="20" src="{'{$skin_images}'}path.gif">
- <out:attribute name="alt">
- <!-- we can't use the do-the-path-link template since the response didn't go through post-process -->
- <out:for-each select="runnable/runnable/ancestors/value/item">
- <out:value-of select="title"/>
- <out:if test="position() != last()"> > </out:if>
- </out:for-each>
- </out:attribute>
- </img>
- <out:text> </out:text>
- <out:value-of select="runnable/runnable/defaultName/value"/>
- </cp:columnContent>
- <!-- Status Column -->
- <cp:columnContent>
- <out:call-template name="gen-status">
- <out:with-param name="status" select="string(history/item/status/value)"/>
- </out:call-template>
- </cp:columnContent>
- </cp:tableContent>
- </cp:table>
- </lyt:section>
- </lyt:layout>
- </out:if>
- </xsl:template>
- <!--
- Table that shows the list of related runs
- -->
- <xsl:template match="rhu:relatedRuns">
- <out:variable name="relatedHistories" select="/root/relatedHistories/cm:queryResponse/cm:queryReply[position() = last()]/*"/>
- <!--
- Show this section if we have a restartEventID or there's more then one item in the result set. If we're
- at the initial runnable, then there isn't a restartEventID but if we have more then one item in the result set
- we know that reruns have occured.
- -->
- <out:if test="string(/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:restartEventID) != '' or count($relatedHistories) > 1">
- <lyt:layout style="1" title="IDS_VRH_RELATED_RUNS" intro="IDS_VRH_RELATED_RUNS_DESC" border="yes">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:text width="100%"/>
- <out:choose>
- <out:when test="count($relatedHistories) > 0">
- <dp:text nospace="nospace">
- 1 - <out:value-of select="count($relatedHistories)"/>
- </dp:text>
- </out:when>
- <out:otherwise>
- <dp:text/>
- </out:otherwise>
- </out:choose>
- </dp:section>
- </dp:list>
- <cp:table name="related" id="relatedRuns" iterate="$relatedHistories" showEmptyMsg="true">
- <!-- Column Headers -->
- <cp:tableHeader>
- <!-- Request time -->
- <cp:columnHeader width="18%">
- <xts:string id="IDS_HEADING_REQEXECTIME"/>
- </cp:columnHeader>
- <!-- Start time -->
- <cp:columnHeader width="18%">
- <xts:string id="IDS_HEADING_ACTUALEXECTIME"/>
- </cp:columnHeader>
- <!-- Completion time -->
- <cp:columnHeader width="18%">
- <xts:string id="IDS_HEADING_ACTUALCOMPTIME"/>
- </cp:columnHeader>
- <!-- status -->
- <cp:columnHeader width="18%">
- <xts:string id="IDS_HEADING_STATUS"/>
- </cp:columnHeader>
- <!-- action -->
- <cp:columnHeader width="100%">
- <xts:string id="IDS_SRR_TABLE_ACTIONS"/>
- </cp:columnHeader>
- </cp:tableHeader>
- <!-- Column contents -->
- <cp:tableContent>
- <!-- need to put the history we're currently looking at in bold -->
- <out:variable name="isContextHistory" select="string(/root/cm:queryResponse/cm:queryReply[1]/cm:history/cm:eventID) = string(cm:eventID)"/>
- <out:variable name="openBold">
- <out:if test="$isContextHistory"><b></out:if>
- </out:variable>
- <out:variable name="closeBold">
- <out:if test="$isContextHistory"></b></out:if>
- </out:variable>
- <out:variable name="requestTime" select="xtsext:formatDateFromUTC( string( cm:requestedExecutionTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- <out:variable name="annotatedRequestTime">
- <out:choose>
- <out:when test="$isContextHistory">
- <xts:string id="IDS_VRH_RERUN_CURRENTRUN"><xts:param name="requestTime"><out:value-of select="$requestTime"/></xts:param></xts:string>
- </out:when>
- <out:otherwise><out:value-of select="$requestTime"/></out:otherwise>
- </out:choose>
- </out:variable>
- <!-- Request time -->
- <cp:columnContent>
- <out:value-of select="$openBold" disable-output-escaping="yes"/><out:value-of select="$annotatedRequestTime"/><out:value-of select="$closeBold" disable-output-escaping="yes"/>
- </cp:columnContent>
- <!-- Start time -->
- <cp:columnContent>
- <out:value-of select="$openBold" disable-output-escaping="yes"/><out:value-of select="xtsext:formatDateFromUTC( string( cm:actualExecutionTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/><out:value-of select="$closeBold" disable-output-escaping="yes"/>
- </cp:columnContent>
- <!-- Completion time -->
- <cp:columnContent>
- <out:value-of select="$openBold" disable-output-escaping="yes"/><out:value-of select="xtsext:formatDateFromUTC( string( cm:actualCompletionTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/><out:value-of select="$closeBold" disable-output-escaping="yes"/>
- </cp:columnContent>
- <!-- status -->
- <cp:columnContent>
- <out:value-of select="$openBold" disable-output-escaping="yes"/>
- <out:call-template name="gen-status">
- <out:with-param name="status" select="cm:status"/>
- <out:with-param name="runStatusIconError" select="'false'"/>
- <out:with-param name="runStatusIconWarn" select="'false'"/>
- </out:call-template>
- <out:value-of select="$closeBold" disable-output-escaping="yes"/>
- </cp:columnContent>
- <!-- action -->
- <cp:columnContent>
- <out:if test="not($isContextHistory)">
- <out:call-template name="action-properties">
- <out:with-param name="obj-name" select="cm:parent/*/cm:defaultName"/>
- <out:with-param name="history-path" select="concat('//history[@eventID="', cm:eventID, '"]')"/>
- <out:with-param name="class" select="cm:parent/*/cm:objectClass"/>
- <out:with-param name="supportViewRunHistoryDetails" select="'true'"/>
- </out:call-template>
- </out:if>
- </cp:columnContent>
- </cp:tableContent>
- </cp:table>
- </lyt:section>
- </lyt:layout>
- </out:if>
- </xsl:template>
- <xsl:template match="rhu:dataMovement">
- <lyt:layout style="1" title="IDS_OBJ_DATAMOVEMENTTASK" border="yes">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:text>
- <out:variable name="isLinked" select="/root/cm:queryResponse[1]/cm:queryReply[2]/*/cm:objectClass!='history'"/>
- <out:for-each select="/root/cm:queryResponse[2]/cm:queryReply/*">
- <out:variable name="linkName">
- <out:choose>
- <out:when test="cm:detail !=''">
- <out:value-of select="cm:detail"/>
- </out:when>
- <out:otherwise>
- <span lang="{'{$contentLocale}'}"><out:value-of select="cm:defaultName"/></span>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:choose>
- <out:when test="$isLinked">
- <out:variable name="searchPath">
- <out:choose>
- <out:when test="cm:objectClass='dataMovementTask' or cm:objectClass='dataMovementTaskAlias'">
- <out:value-of select="/root/env/param[@name='m_obj']"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="cm:searchPath"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <span class="pathLink">
- <a href="#">
- <out:attribute name="onclick">javascript:<xsl:text/>
- var form = document.pform;<xsl:text/>
- form.m_detailsPath.value="<out:value-of select="xtsext:javascriptencode(string($searchPath))"/>"<xsl:text/>
- form.submit();<xsl:text/>
- </out:attribute>
- <out:copy-of select="$linkName"/>
- </a>
- </span>
- </out:when>
- <out:otherwise>
- <span class="pathLeafNode"><out:copy-of select="$linkName"/></span>
- </out:otherwise>
- </out:choose>
- <out:if test="position() != last()">
- <span class="pathSeparator"> > </span>
- </out:if>
- </out:for-each>
- <out:if test="/root/cm:queryResponse[1]/cm:queryReply[2]/cm:historyDetailDataMovementService">
- <span class="pathSeparator"> > </span>
- <span class="pathLeafNode">
- <out:value-of select="/root/cm:queryResponse[1]/cm:queryReply[2]/cm:historyDetailDataMovementService/cm:detail"/>
- </span>
- </out:if>
- </dp:text>
- </dp:section>
- <dp:section>
- <dp:text width="100%"/>
- <out:choose>
- <out:when test="count(/root/cm:queryResponse[1]/cm:queryReply[3]/*)>0">
- <dp:text nospace="nospace">
- <xts:string id="IDS_ENTRIES"/>
- 1 - <out:value-of select="count(/root/cm:queryResponse[1]/cm:queryReply[3]/*)"/>
- </dp:text>
- </out:when>
- <out:otherwise>
- <dp:text/>
- </out:otherwise>
- </out:choose>
- </dp:section>
- </dp:list>
- <utml:input type="hidden" name="m_filename" value=""/>
- <utml:input type="hidden" name="m_download_id" value=""/>
- <script language="JavaScript">
- function download(objID,filename)
- {
- with (document.pform) {
- m_download_id.value = objID;
- m_filename.value = filename;
- m.value = "<out:value-of select="$app"/>/history/dms_download.xts";
- submit();
- m.value="<out:value-of select="concat($app, '/', $mname)"/>";
- }
- }
- </script>
- <cp:table name="details" iterate="/root/cm:queryResponse[1]/cm:queryReply[3]/*" showEmptyMsg="true">
- <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><out:choose><out:when test="key('session-param', 's_hd') = 'ta' ">'td'</out:when><out:when test="key('session-param', 's_hd') = 'td'">'ta'</out:when><out:otherwise>'td'</out:otherwise></out: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">
- <out:value-of select="xtsext:formatDateFromUTC( string( cm:detailTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- </cp:columnContent>
- <cp:columnContent valign="top">
- <out:call-template name="gen-message-icon"/>
- </cp:columnContent>
- <cp:columnContent wrap="wrap" valign="top">
- <out:choose>
- <out:when test="cm:objectClass='historyDetailDataMovementService'">
- <out:variable name="js-encoded-searchPath">
- <out:value-of select="xtsext:javascriptencode(string(cm:searchPath))"/>
- </out:variable>
- <out:variable name="js-encoded-name">
- <span lang="{'{$contentLocale}'}"><out:value-of select="xtsext:javascriptencode(string(cm:defaultName))"/></span>
- </out:variable>
- <a href="#">
- <out:attribute name="onclick">javascript:<xsl:text/>
- var form = document.pform;<xsl:text/>
- form.m_detailsPath.value="<out:value-of select="$js-encoded-searchPath"/>"<xsl:text/>
- form.submit();<xsl:text/>
- </out:attribute>
- <out:value-of select="cm:detail"/>
- </a>
- <out:if test="cm:dataSize and cm:dataSize != '0'">
- <out:text> </out:text>
- <img align="absmiddle" style="cursor:pointer;" height="16" width="16" tabindex="0">
- <out:attribute name="src"><out:value-of select="$image_root"/>action_view_log_file.gif</out:attribute>
- <out:attribute name="title"><xts:string id="IDS_VRH_VIEW_DMS_LOG"/></out:attribute>
- <out:attribute name="onclick">
- <out:text>javascript:download('</out:text>
- <out:value-of select="cm:storeID"/>
- <out:text>','</out:text>
- <out:value-of select="$js-encoded-name"/>
- <out:text>');</out:text>
- </out:attribute>
- </img>
- </out:if>
- </out:when>
- <out:otherwise>
- <out:value-of select="cm:detail"/>
- </out:otherwise>
- </out:choose>
- </cp:columnContent>
- </cp:tableContent>
- </cp:table>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <xsl:template match="rhu:genStatus">
- <out:template name="gen-status">
- <out:param name="status" select="unknown"/>
- <out:param name="runStatusIconError" select="false"/>
- <out:param name="runStatusIconWarn" select="false"/>
- <out:choose>
- <out:when test="$status='succeeded' and $runStatusIconError='true'">
- <xts:string id="IDS_JOB_STATUS_SUCCEEDED"/>
- <img height="8" width="8" border="0">
- <out:attribute name="src"><out:value-of select="$webcontent"/>/<out:value-of select="$app"/>/images/msg_error_8.gif</out:attribute>
- <out:attribute name="aria-label"><xts:string id="IDS_JOB_STATUS_WITH_ERRORS"/></out:attribute>
- </img>
- </out:when>
- <out:when test="$status='succeeded' and $runStatusIconWarn='true'">
- <xts:string id="IDS_JOB_STATUS_SUCCEEDED"/>
- <img height="8" width="8" border="0"><out:attribute name="src">
- <out:value-of select="$webcontent"/>/<out:value-of select="$app"/>/images/msg_warning_8.gif</out:attribute>
- <out:attribute name="aria-label"><xts:string id="IDS_JOB_STATUS_WITH_WARNINGS"/></out:attribute>
- </img>
- </out:when>
- <out:when test="$status='succeeded' and $runStatusIconError='false' and $runStatusIconWarn='false'">
- <xts:string id="IDS_JOB_STATUS_SUCCEEDED"/>
- </out:when>
- <out:when test="$status='pending'">
- <xts:string id="IDS_JOB_STATUS_PENDING"/>
- </out:when>
- <out:when test="$status='suspended'">
- <xts:string id="IDS_JOB_STATUS_SUSPENDED"/>
- </out:when>
- <out:when test="$status='inactive'">
- <xts:string id="IDS_JOB_STATUS_INACTIVE"/>
- </out:when>
- <out:when test="$status='executing'">
- <xts:string id="IDS_JOB_STATUS_EXECUTING"/>
- </out:when>
- <out:when test="$status='failed'">
- <xts:string id="IDS_JOB_STATUS_FAILED"/>
- </out:when>
- <out:when test="$status='cancelled' or $status='terminated' or $status='purged'">
- <xts:string id="IDS_JOB_STATUS_CANCELLED"/>
- </out:when>
- </out:choose>
- </out:template>
- </xsl:template>
- <xsl:template match="rhu:genMessageIcons">
- <out:template name="gen-message-icon">
- <out:param name="statusPath" select="cm:severity"/>
- <out:variable name="messageIcon">
- <out:choose>
- <out:when test="$statusPath = 'info' or $statusPath = 'information'">
- <out:text/>msg_information_16.gif<out:text/>
- </out:when>
- <out:when test="$statusPath = 'warn' or $statusPath = 'warning'">
- <out:text/>msg_warning_16.gif<out:text/>
- </out:when>
- <out:when test="$statusPath = 'fatal'">
- <out:text/>msg_fatal_16.gif<out:text/>
- </out:when>
- <out:when test="$statusPath = 'debug'">
- <out:text/>msg_debug_16.gif<out:text/>
- </out:when>
- <out:otherwise>
- <out:text/>msg_error_16.gif<out:text/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="iconTooltip">
- <out:choose>
- <out:when test="$statusPath = 'info' or $statusPath = 'information'">
- <out:text/><xts:string id="IDS_VRH_DETAILS_SEVERITY_INFO"/><out:text/>
- </out:when>
- <out:when test="$statusPath = 'warn' or $statusPath = 'warning'">
- <out:text/><xts:string id="IDS_VRH_DETAILS_SEVERITY_WARN"/><out:text/>
- </out:when>
- <out:when test="$statusPath = 'fatal'">
- <out:text/><xts:string id="IDS_VRH_DETAILS_SEVERITY_FATAL"/><out:text/>
- </out:when>
- <out:when test="$statusPath = 'debug'">
- <out:text/><xts:string id="IDS_VRH_DETAILS_SEVERITY_DEBUG"/><out:text/>
- </out:when>
- <out:otherwise>
- <out:text/><xts:string id="IDS_VRH_DETAILS_SEVERITY_ERROR"/><out:text/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <img height="16" width="16">
- <out:attribute name="src"><out:value-of select="$image_root"/><out:value-of select="$messageIcon"/></out:attribute>
- <out:attribute name="alt"><out:value-of select="$iconTooltip"/></out:attribute>
- <out:attribute name="title"><out:value-of select="$iconTooltip"/></out:attribute>
- </img>
- </out:template>
- </xsl:template>
- <xsl:template name="metricsImportOptionsSummary">
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='loadFromStagingTables']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text><xts:string id="IDS_PROP_METRICS_LOAD_FROM_STAGING_AREA"/></dp:text>
- </dp:section>
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='clearHistory']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text><xts:string id="IDS_PROP_METRICS_CLEAR_HISTORY"/></dp:text>
- </dp:section>
- </out:if>
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='clearCalendar']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text><img height="1" width="8" border="0"><out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute></img><xts:string id="IDS_PROP_METRICS_CLEAR_CALENDAR"/></dp:text>
- </dp:section>
- </out:if>
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='clearRejects']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text><xts:string id="IDS_PROP_METRICS_CLEAR_REJECTS"/></dp:text>
- </dp:section>
- </out:if>
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='recalculateMetrics']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text><xts:string id="IDS_PROP_METRICS_RECALCULATE_METRICS"/></dp:text>
- </dp:section>
- </out:if>
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='processWatchListQueue']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text><xts:string id="IDS_PROP_METRICS_PROCESS_WATCH_LIST_QUEUE"/></dp:text>
- </dp:section>
- </out:if>
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='updateIndexes']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text><xts:string id="IDS_PROP_METRICS_UPDATE_INDEXES"/></dp:text>
- </dp:section>
- </out:if>
- </out:if>
- </xsl:template>
- <xsl:template match="rhu:metricsHistoryImportFromFileOptionsSummary">
- <lyt:layout style="1" border="yes" title="IDS_VRH_DETAILS_METRICS_IMPORT_FROM_FILES">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:label>
- <xts:string id="IDS_VRH_DETAILS_OPTIONS"/>
- </dp:label>
- </dp:section>
- <dp:section>
- <dp:text><xts:string id="IDS_PROP_METRICS_IMPORT_FROM_FILES"/></dp:text>
- </dp:section>
- <xsl:call-template name="metricsImportOptionsSummary"/>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <xsl:template match="rhu:metricsHistoryImportFromDataSourceOptionsSummary">
- <lyt:layout style="1" border="yes" title="IDS_VRH_DETAILS_METRICS_IMPORT_FROM_DS">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:label>
- <xts:string id="IDS_VRH_DETAILS_OPTIONS"/>
- </dp:label>
- </dp:section>
- <dp:section>
- <dp:text><xts:string id="IDS_PROP_METRICS_IMPORT_FROM_DATA_SOURCE"/></dp:text>
- </dp:section>
- <xsl:call-template name="metricsImportOptionsSummary"/>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <xsl:template match="rhu:metricsHistoryExportOptionsSummary">
- <lyt:layout style="1" border="yes" title="IDS_VRH_DETAILS_METRICS_EXPORT">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:label>
- <xts:string id="IDS_VRH_DETAILS_OPTIONS"/>
- </dp:label>
- </dp:section>
- <dp:section>
- <dp:text><xts:string id="IDS_PROP_METRICS_EXPORT"/></dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <xsl:template match="rhu:metricsHistoryMaintenanceOptionsSummary">
- <lyt:layout style="1" border="yes" title="IDS_VRH_DETAILS_METRICS_MAINTENANCE">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:label>
- <xts:string id="IDS_VRH_DETAILS_OPTIONS"/>
- </dp:label>
- </dp:section>
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='loadFromStagingTables']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text><xts:string id="IDS_PROP_METRICS_LOAD_FROM_STAGING_AREA"/></dp:text>
- </dp:section>
- </out:if>
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='recalculateMetrics']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text><xts:string id="IDS_PROP_METRICS_RECALCULATE_METRICS"/></dp:text>
- </dp:section>
- </out:if>
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='clearHistory']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text><xts:string id="IDS_PROP_METRICS_CLEAR_HISTORY"/></dp:text>
- </dp:section>
- </out:if>
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='clearCalendar']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text><img height="1" width="8" border="0"><out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute></img><xts:string id="IDS_PROP_METRICS_CLEAR_CALENDAR"/></dp:text>
- </dp:section>
- </out:if>
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='clearRejects']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text><xts:string id="IDS_PROP_METRICS_CLEAR_REJECTS"/></dp:text>
- </dp:section>
- </out:if>
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='processWatchListQueue']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text><xts:string id="IDS_PROP_METRICS_PROCESS_WATCH_LIST_QUEUE"/></dp:text>
- </dp:section>
- </out:if>
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='synchronizeUserInformation']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text><xts:string id="IDS_PROP_METRICS_SYNCHRONIZE_USER_INFO"/></dp:text>
- </dp:section>
- </out:if>
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='updateIndexes']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text><xts:string id="IDS_PROP_METRICS_MAINTAIN_SUMMARY_INDEXES_UPDATE"/></dp:text>
- </dp:section>
- </out:if>
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[local-name()='item' and ./*[local-name()='name']='rebuildIndexes']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text><xts:string id="IDS_PROP_METRICS_MAINTAIN_SUMMARY_INDEXES_REBUILD"/></dp:text>
- </dp:section>
- </out:if>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <!--
- rhu:reportHistoryOptionsSummary
- @responseType - Can be set to monitorService. Used to know if the response came from the monitor service (i.e. the runnable
- is still executing) so we know where to get the option information
- -->
- <xsl:template match="rhu:reportHistoryOptionsSummary">
- <out:variable name="className">
- <out:choose>
- <out:when test="string($objectType)='report'">
- <xts:string id="IDS_OBJ_REPORT"/>
- </out:when>
- <out:when test="string($objectType)='interactiveReport'">
- <xts:string id="IDS_OBJ_INTERACTIVEREPORT"/>
- </out:when>
- <out:when test="string($objectType)='query'">
- <xts:string id="IDS_OBJ_QUERY"/>
- </out:when>
- <out:when test="string($objectType)='analysis'">
- <xts:string id="IDS_OBJ_ANALYSIS"/>
- </out:when>
- <out:when test="string($objectType)='reportView'">
- <xts:string id="IDS_OBJ_REPORTVIEW"/>
- </out:when>
- <out:when test="string($objectType)='powerPlay8Report'">
- <xts:string id="IDS_OBJ_POWERPLAY8REPORT"/>
- </out:when>
- <out:when test="string($objectType)='powerPlay8ReportView'">
- <xts:string id="IDS_OBJ_POWERPLAY8REPORTVIEW"/>
- </out:when>
- </out:choose>
- </out:variable>
- <lyt:layout style="1" border="yes" longTitle="$className">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:label>
- <xts:string id="IDS_VRH_DETAILS_OPTIONS"/>
- </dp:label>
- </dp:section>
- <out:choose>
- <out:when test="not($the-object)">
- <dp:section>
- <dp:text>
- <xts:string id="IDS_VRH_DETAILS_OPTIONS_UNAVAILABLE"/>
- </dp:text>
- </dp:section>
- </out:when>
- <out:otherwise>
- <!-- promptCacheMode -->
- <out:variable name="promptCacheMode" select="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionPromptCacheMode' and ./*[local-name()='name']='promptCacheMode']/*[local-name()='value']"/>
- <out:choose>
- <out:when test="$promptCacheMode='refresh'">
- <dp:section>
- <dp:text wrap="wrap"><xts:string id="IDS_OTHERRUN_REFRESH_REPORT_CACHE"/></dp:text>
- </dp:section>
- </out:when>
- <out:when test="$promptCacheMode='none'">
- <dp:section>
- <dp:text wrap="wrap"><xts:string id="IDS_OTHERRUN_PRODUCE_REPORT_OUTPUTS"/></dp:text>
- </dp:section>
- </out:when>
- </out:choose>
- <!-- format -->
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionStringArray' and ./*[local-name()='name']='outputFormat']">
- <dp:section>
- <dp:text wrap="wrap"><xts:string id="IDS_OTHERRUN_FORMAT"/><out:value-of select="' '"/><out:value-of select="/root/*[local-name()='UIHelpers']/*[local-name()='formatSummary']"/></dp:text>
- </dp:section>
- </out:if>
- <!-- a11y -->
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:genericOptionBoolean' and ./*[local-name()='name']='http://developer.cognos.com/ceba/constants/systemOptionEnum#accessibilityFeatures']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text wrap="wrap"><xts:string id="IDS_OTHERRUN_A11Y"/><out:value-of select="' '"/><out:value-of select="/root/*[local-name()='UIHelpers']/*[local-name()='a11ySummary']"/></dp:text>
- </dp:section>
- </out:if>
- <!-- Languages -->
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionLanguageArray' and ./*[local-name()='name']='outputLocale']">
- <dp:section>
- <dp:text wrap="wrap"><xts:string id="IDS_OTHERRUN_LANGUAGE"/><xsl:value-of select="' '"/>
- <out:for-each select="/root/config/param[@name='locale']/locale[@type='contentLocale' and $the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionLanguageArray' and ./*[local-name()='name']='outputLocale']/*[local-name()='value']/*=id]">
- <out:value-of select="displayName"/>
- <out:if test="position() != last()"><out:text><xts:string id="IDS_LIST_SEPARATOR"/> </out:text></out:if>
- </out:for-each></dp:text>
- </dp:section>
- </out:if>
- <!-- params -->
- <out:variable name="parameters-split" select="(/root/*[local-name()='parameters']!='') or (/root/*[local-name()='credentialParameters']!='')"/>
- <out:variable name="parameters" select="/root/*[local-name()='parameters'][$parameters-split] | $the-object/*[local-name()='parameters'][not($parameters-split)]"/>
- <out:if test="$parameters/*[local-name()='parameterValue']">
- <out:for-each select="$parameters/*[local-name()='parameterValue']">
- <dp:section><dp:text><out:value-of select="*[local-name()='name']"/><out:text><xts:string id="IDS_LIST_START"/></out:text><out:apply-templates mode="render-values"/></dp:text></dp:section>
- </out:for-each>
- </out:if>
- <!-- save the report -->
- <out:choose>
- <out:when test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionBoolean' and ./*[local-name()='name']='saveOutput']/*[local-name()='value']='true'">
- <out:variable name="path">
- <xsl:choose>
- <xsl:when test="@responseType = 'monitorService'"><out:value-of select="$eventRecord/runnable/runnable/searchPath/value"/></xsl:when>
- <xsl:otherwise><out:value-of select="/root/cm:queryResponse/cm:queryReply[1]/*[1]/cm:parent/*/cm:searchPath"/></xsl:otherwise>
- </xsl:choose>
- </out:variable>
- <out:variable name="rootPath">
- <out:choose>
- <out:when test="starts-with($path,'~') or starts-with($path,key('session-param', 'e_hp'))"><out:value-of select="'~/folder'"/></out:when>
- <out:otherwise><out:value-of select="$defaultContentRoot"/></out:otherwise>
- </out:choose>
- </out:variable>
- <dp:section>
- <dp:text wrap="wrap"><xts:string id="IDS_OTHERRUN_SAVE_REPORT_CONFIRM"/><out:value-of select="' '"/>
- <span lang="{'{$contentLocale}'}">
- <cf:do-the-path-link>
- <cf:param name="familytree">
- <xsl:choose>
- <xsl:when test="@responseType = 'monitorService'">$eventRecord/runnable/runnable/cm:ancestors</xsl:when>
- <xsl:otherwise>cm:queryResponse/cm:queryReply[1]/*[1]/cm:parent/*/cm:ancestors</xsl:otherwise>
- </xsl:choose>
- </cf:param>
- <cf:param name="familymember">
- <xsl:choose>
- <xsl:when test="@responseType = 'monitorService'">$eventRecord/runnable/runnable/defaultName/value</xsl:when>
- <xsl:otherwise>cm:queryResponse/cm:queryReply[1]/*[1]/cm:parent/*/cm:defaultName</xsl:otherwise>
- </xsl:choose>
- </cf:param>
- <cf:param name="home"><out:value-of select="$rootPath"/></cf:param>
- </cf:do-the-path-link></span></dp:text>
- </dp:section>
- </out:when>
- <!-- save as -->
- <out:when test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionSaveAs' and ./*[local-name()='name']='saveAs']">
- <dp:section>
- <dp:text wrap="wrap"><xts:string id="IDS_OTHERRUN_SAVE_NEW_ENTRY_CONFIRM"/><out:value-of select="' '"/><out:value-of select="/root/*[local-name()='UIHelpers']/*[local-name()='saveAsSummary']"/><out:value-of select="' ‎> '"/><out:value-of select="xtsext:enforceBTD($targetSavedName, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></dp:text>
- </dp:section>
- </out:when>
- </out:choose>
- <!-- save to the file system -->
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionBoolean' and ./*[local-name()='name']='archive']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text wrap="wrap"><out:value-of select="/root/*[local-name()='UIHelpers']/*[local-name()='saveToFileSystemSummary']"/></dp:text>
- </dp:section>
- </out:if>
- <!-- print -->
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionBoolean' and ./*[local-name()='name']='print']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text wrap="wrap"><xts:string id="IDS_CONFIRMATION_PRINT_REPORT"/><out:value-of select="' '"/><out:value-of select="/root/*[local-name()='UIHelpers']/*[local-name()='printerSummary']"/></dp:text>
- </dp:section>
- </out:if>
- <!-- email -->
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionBoolean' and ./*[local-name()='name']='email']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text wrap="wrap"><out:value-of select="/root/*[local-name()='UIHelpers']/*[local-name()='emailSummary']"/>
- <out:if test="not($the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionBoolean' and ./*[local-name()='name']='burst']) or $the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionBoolean' and ./*[local-name()='name']='burst']/*[local-name()='value']!='true'">
- <out:value-of select="concat(': ',/root/*[local-name()='UIHelpers']/*[local-name()='emailRecipients'])"/>
- </out:if></dp:text>
- </dp:section>
- </out:if>
- <!-- mobile -->
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionBoolean' and ./*[local-name()='name']='mobile']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text wrap="wrap">
- <out:value-of select="/root/*[local-name()='UIHelpers']/*[local-name()='mobileSummary']"/>
- <out:value-of select="concat(': ',/root/*[local-name()='UIHelpers']/*[local-name()='mobileRecipients'])"/>
- </dp:text>
- </dp:section>
- </out:if>
- <!-- burst -->
- <out:if test="$the-object/*[local-name()='options']/*[local-name()='value']/*[@*[local-name()='type']='bus:runOptionBoolean' and ./*[local-name()='name']='burst']/*[local-name()='value']='true'">
- <dp:section>
- <dp:text wrap="wrap">
- <xts:string id="IDS_OTHERRUN_BURST"/>
- <out:value-of select="concat(': ',/root/*[local-name()='UIHelpers']/*[local-name()='burstSummary'])"/>
- </dp:text>
- </dp:section>
- </out:if>
- </out:otherwise>
- </out:choose>
- </dp:list>
- </lyt:section>
- <lyt:section noTitle="true">
- <dp:list >
- <dp:section >
- <dp:label >
- <xts:string id="IDS_VRH_DETAILS_REPORT_OUTPUTS"/>
- </dp:label>
- </dp:section>
- <dp:section>
- <out:choose>
- <!-- checking for children of reportVersion ensures that there is actually output available -->
- <out:when test="$js-encoded-output-searchPath != '' and /root/cm:queryResponse/cm:queryReply[4]/*/*[local-name()='output']/*[local-name()='reportVersion']/*[local-name()='hasChildren']='true'">
- <dp:link>
- <a href="#">
- <out:attribute name="onclick">javascript:<xsl:text/>
- var form = document.pform;<xsl:text/>
- form.reportVersionPath.value="<out:value-of select="$js-encoded-output-searchPath"/>"<xsl:text/>
- form.runHistoryRequestedTime.value="<out:value-of select="$js-encoded-runHistoryRequestedTime"/>";<xsl:text/>
- form.m_obj.value="<out:value-of select="$js-encoded-runnable-path"/>";<xsl:text/>
- form.m_name.value="<out:value-of select="xtsext:javascriptencode(string(key('env-param','m_name')))"/>";<xsl:text/>
- form.m.value = "portal/<out:value-of select="$versions_target"/>";<xsl:text/>
- form.backURL.value = "<out:value-of select="xtsext:javascriptencode(string($back-url))"/>";<xsl:text/>
- form.submit();<xsl:text/>
- </out:attribute>
- <xts:string id="IDS_VRH_DETAILS_OUTPUTS_EXIST"/><xsl:text/>
- </a>
- </dp:link>
- </out:when>
- <out:otherwise>
- <dp:text><xts:string id="IDS_VRH_DETAILS_OUTPUTS_DO_NOT_EXIST"/></dp:text>
- </out:otherwise>
- </out:choose>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <xsl:template match="rhu:indexUpdateTaskOptionsSummary">
- <lyt:layout style="1" border="yes" title="IDS_INDEX_UPDATE_TASK_TABLE_TITLE_INCLUDE">
- <lyt:section>
- <cp:table name="indexUpdateOptionsSummary" iterate="/root/indexUpdates/*" width="20%">
- <cp:tableHeader>
- <cp:columnHeader width="20"/>
- <cp:columnHeader>
- <out:text/><xts:string id="IDS_PATH_INDICATOR"/><out:text> </out:text>
- <img height="5" width="1" border="0"><out:attribute name="src"><out:value-of select="$webcontent"/>/images/space.gif</out:attribute></img>
- <xts:string id="IDS_INDEX_UPDATE_TASK_NAME_COLUMN"/>
- </cp:columnHeader>
- </cp:tableHeader>
- <cp:tableContent>
- <!-- Icon Column -->
- <cp:columnContent>
- <out:call-template name="gen-icon">
- <out:with-param name="class" select="runnable/runnable/objectClass/value"/>
- </out:call-template>
- </cp:columnContent>
- <cp:columnContent>
- <img width="20" height="16" align="absmiddle" src="{'{$skin_images}'}path.gif">
- <out:attribute name="alt">
- <cf:do-the-path-link>
- <cf:param name="familytree">cm:ancestors</cf:param>
- <cf:param name="familymember">cm:defaultName</cf:param>
- <cf:param name="onlyAncestors">true</cf:param>
- </cf:do-the-path-link>
- </out:attribute>
- </img>
- <xsl:text> </xsl:text>
- <out:value-of select="cm:defaultName"/>
- </cp:columnContent>
- </cp:tableContent>
- </cp:table>
- </lyt:section>
- </lyt:layout>
- <lyt:layout style="1" border="yes" title="IDS_INDEX_UPDATE_RUN_OPTIONS">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:text>
- <out:variable name="options" select="{@optionsPath}/*[local-name()='value']/*[local-name()='item']"/>
- <out:variable name="forceOption" select="$options[*[local-name()='name']='force' and *[local-name()='name'][substring-after(@*[local-name()='type'],':')='indexOptionEnum']]"/>
- <out:variable name="indexOptions" select="$options[starts-with(*[local-name()='name'],'index') and *[local-name()='name'][substring-after(@*[local-name()='type'],':')='indexOptionEnum']]"/>
- <out:choose>
- <out:when test="$forceOption or $indexOptions">
- <out:if test="$forceOption">
- <xts:string id="IDS_INDEX_UPDATE_FORCE_OPTION_TITLE"/>
- <li>
- <out:choose>
- <out:when test="$forceOption/*[local-name()='value'] = 'true'">
- <xts:string id="IDS_INDEX_UPDATE_FORCE_OPTION_ALL_ENTRIES"/>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_INDEX_UPDATE_FORCE_OPTION_CHANGED_ENTRIES"/>
- </out:otherwise>
- </out:choose>
- </li>
- <br/>
- </out:if>
- <out:if test="$indexOptions">
- <xts:string id="IDS_INDEX_UPDATE_CONTENT_OPTION_TITLE"/><br/>
- <out:if test="$indexOptions[*[local-name()='name']='indexObjectTypes' and *[local-name()='value']='true']">
- <li><xts:string id="IDS_INDEX_UPDATE_CONTENT_OPTION_PROP_AND_METADATA"/></li>
- </out:if>
- <out:if test="$indexOptions[*[local-name()='name']='indexReferencedData' and *[local-name()='value']='true']">
- <li><xts:string id="IDS_INDEX_UPDATE_CONTENT_OPTION_DATA_VALUES_REF_DATA"/></li>
- </out:if>
- <out:if test="$indexOptions[*[local-name()='name']='indexModeledData' and *[local-name()='value']='true']">
- <li><xts:string id="IDS_INDEX_UPDATE_CONTENT_OPTION_DATA_VALUES_ALL_DATA"/></li>
- </out:if>
- </out:if>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_VRH_DETAILS_OPTIONS_UNAVAILABLE"/>
- </out:otherwise>
- </out:choose>
- </dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <xsl:template match="*">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
- </xsl:stylesheet>
|