Commit 5056dd4d authored by Erik Alexandre Pucci's avatar Erik Alexandre Pucci

Merge remote branch 'pentahofiles/master'

Signed-off-by: 's avatarErik Alexandre Pucci <eap08@c3sl.ufpr.br>
parents 16b14d06 8b22db7c
C3SL - Centro de Computacao Cientifica e Software Livre
Agtha Cristina de Nadai
Adriano da Luz
Aryane Ast dos Santos
Bruno Cesar Ribas
Carlos Carvalho
Cleide Luzia Bonfim Possamai
Daniel Weingaertner
Danilo Kiyoshi Simizu Yorinori
Diego Giovane Pasqualin
Eduardo Cunha de Almeida
Erik Alexandre Pucci
Fabiano Silva
Felipe Cys Laskoski
Guilherme Zasyeki Machado
Jorge Augusto Meira
Josiney de Souza
Juliana Bueno
Klismann Smoger Mottin
Luis Carlos Erpen de Bona
Marcos Castilho
Marcos Sunye
Pedro Eugenio Rocha
Renan Franca De Miranda
Ricardo Tavares De Oliveira
Rubens Massayuki Suguimoto
Thiago Henrique Dos Santos Picharski
Tiago Rodrigo Kepe
Victor Tarabola Cortiano
Vinicius Kwiecien Ruoso
This diff is collapsed.
The installation and configuration process can be viewed in the link below:
wiki.c3sl.ufpr.br/pentaho
Other important information:
- Update the server, graphs and reports files with the correct database
configuration.
- Many files that are part of the server are currently in other PROINFODATA
repositories, such as server, buildpackage and database, both in
'ready-to-be-executed' scripts and compilation results:
http://git.c3sl.ufpr.br/gitweb
Pentaho Files is part of the PROINFODATA server and contains the graphs, reports
and other files presented in PROINFODATA Portal.
For installation support read "INSTALL".
For changes read "CHANGELOG".
For new features and other news read "NEWS".
For credits read "AUTHORS".
For copyright information read "COPYING".
<?xml version="1.0" encoding="UTF-8"?>
<action-sequence>
<title>Disp</title>
<version>1</version>
<logging-level>DEBUG</logging-level>
<documentation>
<author>C3SL</author>
<description>Empty blank action sequence document</description>
<help/>
<result-type>string</result-type>
<icon/>
</documentation>
<inputs>
<QUERY type="string">
<sources>
<request>QUERY</request>
</sources>
<default-value><![CDATA[NULL]]></default-value>
</QUERY>
</inputs>
<outputs>
<cities type="string">
<destinations>
<response>content</response>
</destinations>
</cities>
</outputs>
<resources/>
<actions>
<action-definition>
<component-name>SQLLookupRule</component-name>
<action-type>Relational</action-type>
<action-inputs>
<QUERY type="string"/>
</action-inputs>
<action-outputs>
<query-result type="result-set" mapping="swresult"/>
</action-outputs>
<component-definition>
<live><![CDATA[false]]></live>
<driver><![CDATA[org.postgresql.Driver]]></driver>
<connection><![CDATA[jdbc:postgresql://]]></connection>
<user-id><![CDATA[]]></user-id>
<password><![CDATA[]]></password>
<query>
<![CDATA[
{QUERY}
]]></query>
</component-definition>
</action-definition>
<action-definition>
<component-name>JavascriptRule</component-name>
<action-type>JavaScript</action-type>
<action-inputs>
<swresult type="result-set"/>
</action-inputs>
<action-outputs>
<cities type="string"/>
</action-outputs>
<component-definition>
<script><![CDATA[
cities = swresult.getValueAt(0,0);
]]></script>
</component-definition>
</action-definition>
</actions>
</action-sequence>
<?xml version="1.0" encoding="UTF-8"?>
<action-sequence>
<title>Disp</title>
<version>1</version>
<logging-level>DEBUG</logging-level>
<documentation>
<author>C3SL</author>
<description>Empty blank action sequence document</description>
<help/>
<result-type>string</result-type>
<icon/>
</documentation>
<inputs>
<QUERY type="string">
<sources>
<request>QUERY</request>
</sources>
<default-value><![CDATA[NULL]]></default-value>
</QUERY>
</inputs>
<outputs>
<options type="string">
<destinations>
<response>content</response>
</destinations>
</options>
</outputs>
<resources/>
<actions>
<action-definition>
<component-name>SQLLookupRule</component-name>
<action-type>Relational</action-type>
<action-inputs>
<QUERY type="string"/>
</action-inputs>
<action-outputs>
<query-result type="result-set" mapping="swresult"/>
</action-outputs>
<component-definition>
<live><![CDATA[false]]></live>
<driver><![CDATA[org.postgresql.Driver]]></driver>
<connection><![CDATA[jdbc:postgresql://]]></connection>
<user-id><![CDATA[]]></user-id>
<password><![CDATA[]]></password>
<query>
<![CDATA[
{QUERY}
]]></query>
</component-definition>
</action-definition>
<action-definition>
<component-name>JavascriptRule</component-name>
<action-type>JavaScript</action-type>
<action-inputs>
<swresult type="result-set"/>
</action-inputs>
<action-outputs>
<options type="string"/>
</action-outputs>
<component-definition>
<script><![CDATA[
options = "";
for (var rc = 0; rc < swresult.getRowCount(); rc++) {
//options += "<option value=\"" + swresult.getValueAt(rc,0) + "\">" + swresult.getValueAt(rc,0) + "</option>";
options += "<option value=\"" + swresult.getValueAt(rc,0).substring(8,10) + "/" + swresult.getValueAt(rc,0).substring(5,7) + "/" + swresult.getValueAt(rc,0).substring(0,4) + "\">" + swresult.getValueAt(rc,0).substring(8,10) + "/" + swresult.getValueAt(rc,0).substring(5,7) + "/" + swresult.getValueAt(rc,0).substring(0,4) + "</option>";
}
]]></script>
</component-definition>
</action-definition>
</actions>
</action-sequence>
<?xml version="1.0" encoding="UTF-8"?>
<action-sequence>
<title>Disp</title>
<version>1</version>
<logging-level>DEBUG</logging-level>
<documentation>
<author>C3SL</author>
<description>Empty blank action sequence document</description>
<help/>
<result-type>string</result-type>
<icon/>
</documentation>
<inputs>
<QUERY type="string">
<sources>
<request>QUERY</request>
</sources>
<default-value><![CDATA[NULL]]></default-value>
</QUERY>
</inputs>
<outputs>
<options type="string">
<destinations>
<response>content</response>
</destinations>
</options>
</outputs>
<resources/>
<actions>
<action-definition>
<component-name>SQLLookupRule</component-name>
<action-type>Relational</action-type>
<action-inputs>
<QUERY type="string"/>
</action-inputs>
<action-outputs>
<query-result type="result-set" mapping="swresult"/>
</action-outputs>
<component-definition>
<live><![CDATA[false]]></live>
<driver><![CDATA[org.postgresql.Driver]]></driver>
<connection><![CDATA[jdbc:postgresql://]]></connection>
<user-id><![CDATA[]]></user-id>
<password><![CDATA[]]></password>
<query>
<![CDATA[
{QUERY}
]]></query>
</component-definition>
</action-definition>
<action-definition>
<component-name>JavascriptRule</component-name>
<action-type>JavaScript</action-type>
<action-inputs>
<swresult type="result-set"/>
</action-inputs>
<action-outputs>
<options type="string"/>
</action-outputs>
<component-definition>
<script><![CDATA[
options = "";
for (var rc = 0; rc < swresult.getRowCount(); rc++) {
options += "<option value=\"" + swresult.getValueAt(rc,0) + "\">" + swresult.getValueAt(rc,0) + "</option>";
}
]]></script>
</component-definition>
</action-definition>
</actions>
</action-sequence>
<?xml version="1.0" encoding="UTF-8"?>
<action-sequence>
<title>Alert</title>
<version>1</version>
<logging-level>DEBUG</logging-level>
<documentation>
<author>C3SL</author>
<description>Empty blank action sequence document</description>
<help/>
<result-type/>
<icon/>
</documentation>
<inputs/>
<outputs>
<swresult type="result-set"/>
</outputs>
<resources/>
<actions>
<action-definition>
<component-name>SQLLookupRule</component-name>
<action-type>Relational</action-type>
<action-outputs>
<query-result type="result-set" mapping="swresult"/>
</action-outputs>
<component-definition>
<live><![CDATA[false]]></live>
<driver><![CDATA[org.postgresql.Driver]]></driver>
<connection><![CDATA[jdbc:postgresql://]]></connection>
<user-id><![CDATA[]]></user-id>
<password><![CDATA[]]></password>
<query>
<![CDATA[
SELECT
to_char((SELECT MAX(dis_data) FROM mectb09_dm_disp_ag), 'DD/MM/YYYY') AS Brasil,
SUM(inst_hd_modificado) AS "Máquinas com HD modificado",
SUM(inst_mem_modificada) AS "Máquinas com memória modificada"
FROM
mectb12_dm_instaladas_ag
WHERE
inst_data IS NOT NULL AND
inst_mes = date_part('month',CURRENT_DATE-1) AND
inst_ano = date_part('year',CURRENT_DATE-1) AND
mectb12_dm_instaladas_ag.inst_projeto = 0
]]>
</query>
</component-definition>
</action-definition>
</actions>
</action-sequence>
<!--
SELECT
to_char((SELECT MAX(dis_data) FROM mectb09_dm_disp_ag), 'DD/MM/YYYY') AS Brasil,
(SELECT count(distinct inv_maquina)
FROM mectb10_dm_inventario
WHERE inv_alerta_hd = 'B1') AS "Máquinas com HD modificado",
(SELECT count(distinct inv_maquina)
FROM mectb10_dm_inventario
WHERE inv_alerta_mem = 'B1') AS "Máquinas com memória modificada"
-->
<?xml version="1.0" encoding="UTF-8"?>
<action-sequence>
<title>Alert</title>
<version>1</version>
<logging-level>DEBUG</logging-level>
<documentation>
<author>C3SL</author>
<description>Empty blank action sequence document</description>
<help/>
<result-type/>
<icon/>
</documentation>
<inputs>
<REGIAO type="string">
<sources>
<request>REGIAO</request>
</sources>
<default-value><![CDATA[NULL]]></default-value>
</REGIAO>
<ESTADO type="string">
<sources>
<request>ESTADO</request>
</sources>
<default-value><![CDATA[NULL]]></default-value>
</ESTADO>
</inputs>
<outputs>
<swresult type="result-set"/>
</outputs>
<resources/>
<actions>
<action-definition>
<component-name>SQLLookupRule</component-name>
<action-type>Relational</action-type>
<action-inputs>
<ESTADO type="string"/>
</action-inputs>
<action-inputs>
<REGIAO type="string"/>
</action-inputs>
<action-outputs>
<query-result type="result-set" mapping="swresult"/>
</action-outputs>
<component-definition>
<live><![CDATA[false]]></live>
<driver><![CDATA[org.postgresql.Driver]]></driver>
<connection><![CDATA[jdbc:postgresql://]]></connection>
<user-id><![CDATA[]]></user-id>
<password><![CDATA[]]></password>
<query>
<![CDATA[
SELECT
CASE WHEN hd.cidade IS NULL then mem.cidade ELSE hd.cidade END AS Cidade,
CASE WHEN hd.hd IS NULL THEN 0 ELSE hd.hd END AS "Máquinas com HD modificado",
CASE WHEN mem.mem IS NULL THEN 0 ELSE mem.mem END AS "Máquinas com memória modificada"
FROM
(SELECT count(distinct inv_maquina) AS hd,
inv_cidade AS cidade
FROM mectb10_dm_inventario
WHERE
inv_regiao = '{REGIAO}'
AND inv_estado = '{ESTADO}'
AND inv_alerta_hd = 'B1'
AND inv_projeto = 0
GROUP BY inv_cidade) hd
FULL OUTER JOIN
(SELECT count(distinct inv_maquina) AS mem,
inv_cidade AS cidade
FROM mectb10_dm_inventario
WHERE
inv_regiao = '{REGIAO}'
AND inv_estado = '{ESTADO}'
AND inv_alerta_mem = 'B1'
AND inv_projeto = 0
GROUP BY inv_cidade) mem
ON mem.cidade = hd.cidade
ORDER BY
Cidade ASC
]]>
</query>
</component-definition>
</action-definition>
</actions>
</action-sequence>
<?xml version="1.0" encoding="UTF-8"?>
<action-sequence>
<title>Alert</title>
<version>1</version>
<logging-level>DEBUG</logging-level>
<documentation>
<author>C3SL</author>
<description>Empty blank action sequence document</description>
<help/>
<result-type/>