123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: cogadmin
- (C) Copyright IBM Corp. 2005, 2013
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/cogadminuimsgs.xml" resolverBase="cogadmin">
- <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')]" mandatory="true"/>
- <!--
- Cancel the selected interactive activities
- -->
- <xts:block id="cancelInteractiveActivities" dependency="frag_init" nodelist="env, header" type="exec" mode="interpret" processor="XSLT" condition=".[/root/env/param[@name='group_action'] = 'cancel_interactive']" mandatory="false">
- <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"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root">
- <response>
- <xts:request protocol="CancelInteractiveActivities" responseEnvelope="false" faultBlock="faultHandler">
- <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:CancelInteractiveActivities xmlns:resource-prop="http://developer.cognos.com/admin/properties">
- <xsl:for-each select="/root/env/param[starts-with(@name, 'requestID_')]">
- <xsl:variable name="dispNameVar"><xsl:value-of select="concat('dispatcherName_', substring-after(@name, 'requestID_'))"/></xsl:variable>
- <resource-prop:Activity>
- <resource-prop:Property name="RequestID"><xsl:value-of select="."/></resource-prop:Property>
- <resource-prop:Property name="DispatcherName"><xsl:value-of select="/root/env/param[@name = $dispNameVar]"/></resource-prop:Property>
- </resource-prop:Activity>
- </xsl:for-each>
- </resource-prop:CancelInteractiveActivities>
- </SOAP-ENV:Body>
- </SOAP-ENV:Envelope>
- </xts:request>
- </response>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- Do schudule actions (iFrmcmd) : enable, disable, suspend, release, cancel
- -->
- <xts:block id="doScheduleActions" dependency="frag_init" nodelist="env, header" type="exec" mode="interpret" processor="XSLT" condition=".[/root/env/param[@name='ifrmcmd'] and not(/root/env/param[@name='ifrmcmd'] = '')]" mandatory="false">
- <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:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:admui="http://developer.cognos.com/schemas/xts/admui" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" 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"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root">
- <response>
- <send:request provider="xts" faultBlock="faultHandler">
- <xsl:element name="{/root/env/param[@name='ifrmcmd']}" namespace="http://developer.cognos.com/schemas/xts/portal/iFrmCmd/1/">
- <env xmlns="http://developer.cognos.com/schemas/xts/portal/iFrmCmd/1/">
- <param name="action">
- <xsl:value-of select="/root/env/param[@name='group_action']"/>
- </param>
- <xsl:for-each select="/root/env/*[starts-with(@name, 'm_')]">
- <param name="{@name}">
- <xsl:value-of select="."/>
- </param>
- </xsl:for-each>
- <xsl:for-each select="/root/env/*[starts-with(@name, 'checkbox_')]">
- <param name="{@name}">
- <xsl:value-of select="."/>
- </param>
- </xsl:for-each>
- </env>
- </xsl:element>
- </send:request>
- </response>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- Do actions for upcoming activities: cancel, schedule
- -->
- <xts:block id="doEventActions" dependency="frag_init" nodelist="env, header" type="exec" mode="interpret" processor="XSLT" condition=".[/root/env/param[@name='group_action'] = 'cancel_upcoming' or /root/env/param[@name='group_action'] = 'schedule_upcoming']" mandatory="false">
- <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:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:admui="http://developer.cognos.com/schemas/xts/admui" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:es="http://developer.cognos.com/schemas/eventManagementService/1" exclude-result-prefixes="xsl xts SOAP-ENV bus xtsext">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <actionResponse>
- <send:request provider="eventManagementService" faultBlock="faultHandler">
- <xsl:choose>
- <xsl:when test="key('env-param','group_action')='cancel_upcoming'">
- <es:cancelEvents>
- <xsl:call-template name="requestBody"/>
- </es:cancelEvents>
- </xsl:when>
- <xsl:when test="key('env-param','group_action')='schedule_upcoming'">
- <es:scheduleEvents>
- <xsl:call-template name="requestBody"/>
- </es:scheduleEvents>
- </xsl:when>
- </xsl:choose>
- </send:request>
- </actionResponse>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- <xsl:template name="requestBody">
- <eventIDs xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[{count(/root/env/param[starts-with(@name,'checkbox_')])}]">
- <xsl:for-each select="/root/env/param[starts-with(@name,'checkbox_')]">
- <item xsi:type="xsd:string"><xsl:value-of select="."/></item>
- </xsl:for-each>
- </eventIDs>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- Fault handler: If a fault happens during an action, then we need to catch it and process it.
- -->
- <xts:block id="faultHandler" dependency="frag_init" type="fault" processor="XSLT">
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <xsl:output method="xml"/>
- <xsl:template match="/root/fault">
- <actionFault>
- <xsl:copy-of select="."/>
- </actionFault>
- </xsl:template>
- <xsl:template match="text()"/>
- </xsl:stylesheet>
- </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>
- <info>
- <title>IDS_SPD_TITLE</title>
- </info>
- <meta/>
- </fragment>
- </xos:entityBody>
- </xos:part>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!--
- render - renders the result dialog or refresh the fragment
- -->
- <xts:block id="renderMarkup" type="exec" dependency="frag_init getMeta cancelInteractiveActivities doScheduleActions doEventActions" nodelist="env, header, user, system, response" processor="XSLT" mandatory="false">
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:ui="http://developer.cognos.com/schemas/ui/presentation/markup/"
- 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"
- xmlns:uic="http://developer.cognos.com/schemas/uic/presentation/markup/"
- exclude-result-prefixes="xsl ui xos xtsext SOAP-ENV uic">
-
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
-
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root/output/*[local-name()='part']/*[local-name()='entityBody']/fragment">
- <markup>
- <mimeType>text/html</mimeType>
- <markupXml>
- <!-- render the HTML -->
- <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 -->
- <xts:transform src="/cogadmin/controls/transforms/gen-ui-markup/group_actions.xslt" 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/admin.xslt</xts:param>
- <root>
- <xts:queryNode select="/root/response | /root/session | /root/env"/>
- </root>
- </xts:transform>
- <xts:queryNode select="/root/system | /root/session"/>
- </root>
- </xts:transform>
- </markupXml>
- </markup>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|