123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: cogadmin
- (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/" resolverBase="cogadmin" messageBase="messages/cogadminuimsgs.xml, messages/portal.xml, messages/portalRL.xml" requiredCapability="canUseScheduling canUseMonitorActivityTool or">
- <xts:block id="frag_init" nodelist="env, credential" type="exec" mode="interpret" processor="XSLT" path="cogadmin/logicsheets/fragment_init.xslt" condition=".[not(/root/env/param[@name='frag-directive']='meta-only') and not(/root/env/param[@name='release_conversation'] = 'true')]" mandatory="true"/>
- <!--
- Get some information about the runnables from uiExtensions
- -->
- <xts:block id="getRunnableInfo" dependency="frag_init" nodelist="" type="exec" mode="input" processor="XML" path="/portal/uiExtensions.xml">
- <xts:logicsheet path="/cogadmin/logicsheets/uiobjects/uiobjects_runnables.xslt"/>
- </xts:block>
- <xts:block id="getCurrentUser" dependency="frag_init" nodelist="header, env, http, cookies" type="exec" mode="interpret" processor="XSLT" condition="/root/env/param[@name='personalOnly'] ='true'" mandatory="false">
- <xts:logicsheet path="/cogadmin/logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- exclude-result-prefixes="xsl xts send">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <currentUser>
- <send:request provider="cm">
- <cm:query xmlns:cm="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:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <search xsi:type="xsd:string">~</search>
- <properties xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:propEnum[]">
- <item xsi:type="cm:propEnum">storeID</item>
- </properties>
- </cm:query>
- </send:request>
- </currentUser>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- Get the current activities interactive activities
- -->
- <xts:block id="getInteractiveActivities" dependency="frag_init" nodelist="env, header, session" type="exec" mode="interpret" processor="XSLT" condition=".[/root/env/param[@name='current_filter'] = 'interactive']" mandatory="false">
- <xts:logicsheet path="cogadmin/logicsheets/admin.xslt"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:admui="http://developer.cognos.com/schemas/xts/admui" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xsl xts SOAP-ENV bus xtsext">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <!-- common variables -->
- <admui:variables/>
- <!-- common pager variables -->
- <admui:pagerVariables pagerName="current_interactive"/>
- <!-- Status filter -->
- <xsl:variable name="statusFilter">
- <xsl:choose>
- <xsl:when test="key('env-param','current_filter_status') and key('env-param','current_filter_status') != ''">
- <xsl:value-of select="key('env-param','current_filter_status')"/>
- </xsl:when>
- <xsl:otherwise>any</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!-- dispatcher filter -->
- <xsl:variable name="dispatcherFilter">
- <xsl:choose>
- <xsl:when test="key('env-param','current_filter_dispatcher') and key('env-param','current_filter_dispatcher') != ''">
- <xsl:value-of select="key('env-param','current_filter_dispatcher')"/>
- </xsl:when>
- <xsl:otherwise>any</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root">
- <response>
- <xts:request protocol="GetInteractiveActivities" responseEnvelope="false">
- <SOAP-ENV:Envelope xmlns:nemo="http://developer.cognos.com/nemo" xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <SOAP-ENV:Header>
- <xsl:copy-of select="/root/header/bus:biBusHeader"/>
- <nemo:cogadminHeader>
- <nemo:ResourceIdentifier>cm:system</nemo:ResourceIdentifier>
- </nemo:cogadminHeader>
- </SOAP-ENV:Header>
- <SOAP-ENV:Body>
- <resource-prop:GetInteractiveActivities xmlns:resource-prop="http://developer.cognos.com/admin/properties">
- <resource-prop:Filters>
- <xsl:if test="$statusFilter != 'any'">
- <resource-prop:Filter name="Status">
- <xsl:choose>
- <xsl:when test="$statusFilter = 'executing'">running</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$statusFilter"/>
- </xsl:otherwise>
- </xsl:choose>
- </resource-prop:Filter>
- </xsl:if>
- <xsl:if test="$dispatcherFilter != 'any'">
- <resource-prop:Filter name="DispatcherName"><xsl:value-of select="$dispatcherFilter"/></resource-prop:Filter>
- </xsl:if>
- <resource-prop:Filter name="TenantID"><xsl:value-of select="'landlord'"/></resource-prop:Filter>
- </resource-prop:Filters>
- <resource-prop:Sort>
- <xsl:attribute name="order">
- <xsl:value-of select="key('env-param','sort_order')"/>
- </xsl:attribute>
- <xsl:value-of select="key('env-param','sort_column')"/></resource-prop:Sort>
- <resource-prop:PageInfo>
- <resource-prop:PageProperty name="skipObjects"><xsl:value-of select="$skipObjects"/></resource-prop:PageProperty>
- <resource-prop:PageProperty name="maxObjects"><xsl:value-of select="$maxObjects"/></resource-prop:PageProperty>
- <resource-prop:PageProperty name="linesPerPage"><xsl:value-of select="$linesPerPage"/></resource-prop:PageProperty>
- </resource-prop:PageInfo>
- </resource-prop:GetInteractiveActivities>
- </SOAP-ENV:Body>
- </SOAP-ENV:Envelope>
- </xts:request>
- </response>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!-- the following two blocks are meant to release the JSM conversation (if any) when user is leaving the current window -->
-
- <xts:block id="initConversation" nodelist="env, credential" type="exec" mode="interpret" processor="XSLT" path="cogadmin/logicsheets/fragment_init.xslt" condition=".[(/root/env/param[@name='release_conversation'] = 'true')]" mandatory="true"/>
- <xts:block id="releaseConversation" dependency="initConversation" nodelist="session, env, header, http" type="exec" mode="interpret" processor="XSLT">
- <xts:logicsheet path="/cogadmin/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:async="http://developer.cognos.com/schemas/xts/cogadmin/iAsyncRequest/1/"
- exclude-result-prefixes="xsl async xts send">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root">
- <send:request provider="xts" option="xml-multipart">
- <async:asyncRequest>
- <provider>monitorService</provider>
- <releaseConversation>true</releaseConversation>
- <conversation><xsl:value-of select="/root/env/param[@name='web64conversation']"/></conversation>
- <tracking><xsl:value-of select="/root/env/param[@name='tracking']"/></tracking>
- </async:asyncRequest>
- </send:request>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!--
- Get the current background activities
- -->
- <xts:block id="getBackgroundActivities" dependency="frag_init getCurrentUser" nodelist="session, env, header, http, configProps, currentUser" type="exec" mode="interpret" condition=".[(not(/root/env/param[@name='current_filter']) or /root/env/param[@name='current_filter'] = 'background') or (/root/env/param[@name='current_filter'] = 'interactive' and /root/env/param[@name='web64conversation'] != '')]" mandatory="false" processor="XSLT">
- <xts:logicsheet path="cogadmin/logicsheets/admin.xslt"/>
- <xts:logicsheet path="/cogadmin/logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:admui="http://developer.cognos.com/schemas/xts/admui"
- xmlns:async="http://developer.cognos.com/schemas/xts/cogadmin/iAsyncRequest/1/"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:val="http://developer.cognos.com/schemas/validator/1/"
- xmlns:fragment="urn:cognos:fragments:validator"
- xmlns:fragment-cogadmin="urn:cognos:fragments:validator:cogadmin"
- exclude-result-prefixes="xsl xsi xts SOAP-ENV bus xtsext admui send SOAP-ENV SOAP-ENC xsd">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <!-- common variables -->
- <admui:variables/>
- <!-- common pager variables -->
- <admui:pagerVariables pagerName="current_activities_background"/>
- <xsl:variable name="personalOnly" select="key('env-param', 'personalOnly') ='true' or not(key('session-param','capabilities')/canUseAdministrationPortal)"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root">
- <send:request provider="xts" option="xml-multipart">
- <async:asyncRequest>
- <provider>monitorService</provider>
- <xsl:if test="(/root/env/param[@name='current_filter'] = 'interactive') and key('env-param','web64conversation') != ''">
- <releaseConversation>true</releaseConversation>
- </xsl:if>
- <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>
- <sort>
- <order>
- <xsl:choose>
- <xsl:when test="key('env-param', 'sort_order')='ascending'">ascending</xsl:when>
- <xsl:otherwise>descending</xsl:otherwise>
- </xsl:choose>
- </order>
- <sortItem>
- <xsl:choose>
- <xsl:when test="key('env-param', 'sort_column') != ''">
- <xsl:value-of select="key('env-param', 'sort_column')"/>
- </xsl:when>
- <xsl:otherwise>startTime</xsl:otherwise>
- </xsl:choose>
- </sortItem>
- </sort>
- <xsl:if test="key('env-param','current_filter_scope') != ''">
- <scope>
- <searchPaths>
- <searchPath><xsl:value-of select="key('env-param','current_filter_scope')"/></searchPath>
- </searchPaths>
- </scope>
- </xsl:if>
- <!-- user just did a from/to action -->
- <xsl:if test="$startPosition != '' and $endPosition != ''">
- <display>
- <start><xsl:value-of select="$startPosition"/></start>
- <end><xsl:value-of select="$endPosition"/></end>
- </display>
- </xsl:if>
- <filters>
- <xsl:if test="key('env-param','current_filter_type') != ''">
- <objectClass><xsl:value-of select="key('env-param','current_filter_type')"/></objectClass>
- </xsl:if>
- <status>
- <xsl:choose>
- <xsl:when test="not(key('env-param','current_filter_status')) or key('env-param','current_filter_status')=''">all</xsl:when>
- <xsl:otherwise><xsl:value-of select="key('env-param','current_filter_status')"/></xsl:otherwise>
- </xsl:choose>
- </status>
- <!-- add the priority filter -->
- <xsl:if test="key('env-param','current_filter_priority') and key('env-param','current_filter_priority')!=''">
- <priority>
- <xsl:value-of select="key('env-param','current_filter_priority')"/>
- </priority>
- </xsl:if>
- <xsl:if test="key('env-param','current_filter_tenantid') and key('env-param','current_filter_tenantid')!=''">
- <tenantID>
- <xsl:value-of select="key('env-param','current_filter_tenantid')"/>
- </tenantID>
- </xsl:if>
- <xsl:if test="key('env-param','current_filter_dispatcher') != ''">
- <dispatcherID><xsl:value-of select="key('env-param','current_filter_dispatcher')"/></dispatcherID>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="key('env-param','current_filter_ran_by') != ''" >
- <user><xsl:value-of select="key('env-param','current_filter_ran_by')"/></user>
- </xsl:when>
- <xsl:when test="$personalOnly">
- <user>
- <xsl:value-of select="/root/currentUser/*[local-name()='queryResponse']/queryResult/item/storeID/value"/>
- </user>
- </xsl:when>
- </xsl:choose>
- <xsl:if test="key('env-param','current_filter_owned_by') != ''" >
- <owner><xsl:value-of select="key('env-param','current_filter_owned_by')"/></owner>
- </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>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="getDispatchers" dependency="getBackgroundActivities" nodelist="header, session, env, asyncRequestResponse" type="exec" mode="interpret" processor="XSLT" condition="not(/root/env/param[@name='personalOnly']) or /root/env/param[@name='personalOnly']!='true'">
- <xts:logicsheet path="cogadmin/logicsheets/cmrequests.xslt"/>
- <xts:logicsheet path="cogadmin/logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:exslt="http://exslt.org/sets"
- xmlns:ns1="http://www.ibm.com/xmlns/prod/cognos/monitorService/201101/"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:cmr="http://developer.cognos.com/schemas/xts/cmrequests"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- exclude-result-prefixes="xsl xts exslt cm xsi">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xsl:variable name="dispatcherIds" select="/root/asyncRequestResponse/response/ns1:runSpecificationResponse/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')]/history/*[contains(@xsi:type, ':history')]/dispatcherID"/>
- <xsl:if test="count($dispatcherIds) > 0">
- <xts:sequence>
- <cmr:getAllDispatchers/>
- </xts:sequence>
- </xsl:if>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="getActivityHistories" dependency="getBackgroundActivities" nodelist="asyncRequestResponse, header, session" type="exec" mode="interpret" processor="XSLT">
- <xts:logicsheet path="cogadmin/logicsheets/schedule.xslt"/>
- <xts:logicsheet path="cogadmin/logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:exslt="http://exslt.org/sets"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:sch="http://developer.cognos.com/schemas/xts/schedule"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- exclude-result-prefixes="xsl xts exslt cm xsi">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <!-- Variables for by sch:queryHistoriesFromScheduledActvities -->
- <xsl:variable name="searchPath" select="exslt:distinct(/root/asyncRequestResponse/response/*[local-name()='runSpecificationResponse']/result/details/*[contains(@xsi:type, ':asynchDetailEventRecord')]/runnable/*/searchPath/value)"/>
- <xsl:variable name="noHistoryMsgForLastExcutionTime"><xsl:text><xts:string id="IDS_ADM_SCHEDULE_LAST_EXECUTION_NO_HISTORY"/></xsl:text></xsl:variable>
- <xsl:variable name="maxHistoryObjects">1</xsl:variable>
- <xts:sequence>
- <sch:queryHistoriesFromScheduledActvities/>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!-- Merge the tenantNames into the response -->
- <xts:block processor="XSLT" type="exec" mandatory="false"
- path="/portal/tenancy/mergeTenantNames.xslt"
- id="mergeTenantNames"
- dependency="getBackgroundActivities getInteractiveActivities"
- condition=".[/root/session/param[@name='e_showTenantInfo']='true']">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
- <xts:block id="getMeta" type="exec" mode="interpret" nodelist="env" processor="XSLT">
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:xos="http://developer.cognos.com/schemas/xts/output/"
- exclude-result-prefixes="xsl xts xos xtsext">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root/output">
- <xos:part>
- <xos:entityHeader>
- <xos:param name="Content-Type">text/xml; charset=utf-8</xos:param>
- </xos:entityHeader>
- <xos:entityBody>
- <fragment>
- <library type="text/javascript" href="$WEB$/ps/cogadmin/js/barchart.js"/>
- <info>
- <title>
- <xts:string id="IDS_CUR_BACKGROUND_TITLE"/>
- </title>
- </info>
- <preferredTitle>
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='current_filter'] = 'interactive'"><xts:string id="IDS_CUR_INTERACTIVE_TITLE"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_CUR_BACKGROUND_TITLE"/></xsl:otherwise>
- </xsl:choose>
- </preferredTitle>
- <meta>
- <customProperties name="personalOnly">
- <datatype>xs:boolean</datatype>
- <default>
- <value>false</value>
- </default>
- <control appearance="hidden" />
- <validate>
- <name>fixed</name>
- <rule>
- <type>
- <boolean/>
- </type>
- </rule>
- </validate>
- </customProperties>
- <transientProperties name="timestamp">
- <validate>
- <name>timestamp</name>
- <ruleRef id="fragment-cogadmin:timestamp"/>
- </validate>
- </transientProperties>
- <transientProperties name="current_filter">
- <default>
- <value>background</value>
- </default>
- <validate>
- <name>current_filter</name>
- <ruleRef id="fragment-cogadmin:filter_type"/>
- </validate>
- </transientProperties>
- <transientProperties name="current_filter_status">
- <validate>
- <name>current_filter_status</name>
- <ruleRef id="fragment-cogadmin:filter_status"/>
- </validate>
- </transientProperties>
- <transientProperties name="current_filter_type">
- <validate>
- <name>current_filter_type</name>
- <ruleRef id="fragment-cogadmin:filter_type"/>
- </validate>
- </transientProperties>
- <transientProperties name="current_filter_scope">
- <validate>
- <name>current_filter_scope</name>
- <ruleRef id="fragment-cogadmin:filter_scope"/>
- </validate>
- </transientProperties>
- <transientProperties name="current_filter_dispatcher">
- <validate>
- <name>current_filter_dispatcher</name>
- <ruleRef id="fragment-cogadmin:filter_dispatcher"/>
- </validate>
- </transientProperties>
- <transientProperties name="current_filter_ran_by">
- <validate>
- <name>current_filter_ran_by</name>
- <ruleRef id="fragment-cogadmin:user"/>
- </validate>
- </transientProperties>
- <transientProperties name="current_filter_owned_by">
- <validate>
- <name>current_filter_owned_by</name>
- <ruleRef id="fragment-cogadmin:user"/>
- </validate>
- </transientProperties>
- <transientProperties name="current_filter_priority">
- <validate>
- <name>current_filter_priority</name>
- <ruleRef id="fragment-cogadmin:filter_priority"/>
- </validate>
- </transientProperties>
- <transientProperties name="current_filter_tenantid">
- <validate>
- <name>current_filter_tenantid</name>
- <ruleRef id="fragment-cogadmin:filter_tenantid"/>
- </validate>
- </transientProperties>
- <globalValidator>
- <parameter>
- <name>sort_order</name>
- <ruleRef id="fragment-cogadmin:sort_order"/>
- </parameter>
- </globalValidator>
- <requiredCapabilities>canUseScheduling canUseMonitorActivityTool or</requiredCapabilities>
- </meta>
- </fragment>
- </xos:entityBody>
- </xos:part>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="getChart" dependency="frag_init getInteractiveActivities getBackgroundActivities getRunnableInfo" nodelist="response, asyncRequestResponse, http, user, env" type="exec" mode="interpret" processor="XSLT" mandatory="true">
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:admui="http://developer.cognos.com/schemas/xts/admui"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- exclude-result-prefixes="xsl xsi admui">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root">
- <barChart>
- <type><xsl:value-of select="'Bars'"/></type>
- <yTitle><xts:string id="IDS_BARCHART_TITLE_NUMBER_OF_ACTIVITIES"/></yTitle>
- <xTitle><xts:string id="IDS_BARCHART_TITLE_MONITORING_ACTIVITIES"/></xTitle>
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='current_filter'] = 'interactive'">
- <row>
- <label><xts:string id="IDS_BARCHART_PENDING"/></label>
- <value><xsl:value-of select="/root/response/*[local-name() = 'GetInteractiveActivitiesResponse']/*[local-name() = 'Summary']/*[local-name() = 'StatusSummary' and @status='pending']"/></value>
- </row>
- <row>
- <label><xts:string id="IDS_BARCHART_EXECUTING"/></label>
- <value><xsl:value-of select="/root/response/*[local-name() = 'GetInteractiveActivitiesResponse']/*[local-name() = 'Summary']/*[local-name() = 'StatusSummary' and @status='running']"/></value>
- </row>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="asynchDetailParameterValues" select="/root/asyncRequestResponse/response/*/result/details/*[contains(@xsi:type, ':asynchDetailParameterValues')]/parameters/*[contains(@xsi:type,':parameterValue')]"/>
- <row>
- <label><xts:string id="IDS_BARCHART_PENDING"/></label>
- <value><xsl:value-of select="$asynchDetailParameterValues[name = 'pending']/value/*[contains(@xsi:type,':simpleParmValueItem')]/use"/></value>
- </row>
- <row>
- <label><xts:string id="IDS_BARCHART_EXECUTING"/></label>
- <value><xsl:value-of select="$asynchDetailParameterValues[name = 'executing']/value/*[contains(@xsi:type,':simpleParmValueItem')]/use"/></value>
- </row>
- <row>
- <label><xts:string id="IDS_BARCHART_INACTIVE"/></label>
- <value><xsl:value-of select="$asynchDetailParameterValues[name = 'inactive']/value/*[contains(@xsi:type,':simpleParmValueItem')]/use"/></value>
- </row>
- <row>
- <label><xts:string id="IDS_BARCHART_SUSPENDED"/></label>
- <value><xsl:value-of select="$asynchDetailParameterValues[name = 'suspended']/value/*[contains(@xsi:type,':simpleParmValueItem')]/use"/></value>
- </row>
- </xsl:otherwise>
- </xsl:choose>
- </barChart>
- </xts:append>
- <xts:append select="/root">
- <xts:transform src="/cogadmin/transforms/getChartUrl.xslt" processor="XSLT">
- <xts:param name="logicsheet">/cogadmin/logicsheets/presentation/common.xslt</xts:param>
- <root>
- <xts:queryNode select="/root/barChart"/>
- </root>
- </xts:transform>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="renderMarkup" dependency="frag_init getChart getInteractiveActivities getBackgroundActivities getActivityHistories getDispatchers getRunnableInfo getMeta" nodelist="cogadminChartUrl, asyncRequestResponse, dispatchers, env, runnables" type="exec" mode="interpret" processor="XSLT">
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:xos="http://developer.cognos.com/schemas/xts/output/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl xts SOAP-ENV xos xtsext">
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root/output/*[local-name()='part']/*[local-name()='entityBody']/fragment">
- <state>
- <xsl:variable name="state">
- <xsl:if test="/root/asyncRequestResponse">
- <xsl:text><param name="web64conversation"></xsl:text>
- <xsl:value-of select="xtsext:xmlencode(string(/root/asyncRequestResponse/conversation))"/>
- <xsl:text></param></xsl:text>
- <xsl:text><param name="tracking"></xsl:text>
- <xsl:value-of select="xtsext:xmlencode(string(/root/asyncRequestResponse/tracking))"/>
- <xsl:text></param></xsl:text>
- </xsl:if>
- <xsl:text><param name="personalOnly"></xsl:text>
- <xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='personalOnly']))"/>
- <xsl:text></param></xsl:text>
- </xsl:variable>
- <xsl:value-of select="xtsext:base64encode($state,true())"/>
- </state>
- <markup>
- <mimeType>text/html</mimeType>
- <markupXml>
- <xsl:variable name="transform">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='current_filter'] = 'interactive'">/cogadmin/transforms/gen-ui-markup/activities_current_interactive.xslt</xsl:when>
- <xsl:otherwise>/cogadmin/transforms/gen-ui-markup/activities_current_background.xslt</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xts:transform src="/cogadmin/transforms/presentation/renderFragment.xslt" processor="XSLT">
- <xts:param name="messageBase">/messages/cogadminuimsgs.xml</xts:param>
- <xts:param name="logicsheet">/cogadmin/logicsheets/admin.xslt</xts:param>
- <root>
- <!-- Generate UI markup using the response and metadata -->
- <xts:transform src="{$transform}" processor="XSLT">
- <xts:param name="messageBase">/messages/cogadminuimsgs.xml</xts:param>
- <xts:param name="logicsheet">/cogadmin/logicsheets/presentation/common.xslt</xts:param>
- <xts:param name="logicsheet">/cogadmin/logicsheets/presentation/pager.xslt</xts:param>
- <xts:param name="logicsheet">/cogadmin/logicsheets/admin.xslt</xts:param>
- <root>
- <xts:queryNode select="/root/asyncRequestResponse | /root/user | /root/runnables | /root/response | /root/system | /root/session | /root/env | /root/activityHistory | /root/ dispatchers"/>
- </root>
- </xts:transform>
- <xts:queryNode select="/root/system | /root/session | /root/env | /root/user"/>
- </root>
- </xts:transform>
- </markupXml>
- </markup>
- <subfragment id="cogadminChart">
- <xsl:attribute name="href">
- <xsl:value-of select="/root/cogadminChartUrl"/>
- </xsl:attribute>
- </subfragment>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|