<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Workflow Workload" language="groovy" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" whenResourceMissingType="Key" uuid="0992f62e-8bc5-4711-9fa5-9f5d05c9e225">
	<property name="ireport.zoom" value="1.5"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<queryString>
		<![CDATA[select ti.actorid_ as ti_actorid, pd.name_ as pd_name, ti.name_ as ti_name, ti.start_ as ti_start, ti.end_ as ti_end
from JBPM_TASKINSTANCE as ti, JBPM_PROCESSINSTANCE as pi, JBPM_PROCESSDEFINITION as pd
where ti.procinst_ = pi.id_ and pi.processdefinition_ = pd.id_
order by ti_actorid, pd_name, ti_name, ti_start, ti_end]]>
	</queryString>
	<field name="ti_actorid" class="java.lang.String"/>
	<field name="pd_name" class="java.lang.String"/>
	<field name="ti_name" class="java.lang.String"/>
	<field name="ti_start" class="java.sql.Timestamp"/>
	<field name="ti_end" class="java.sql.Timestamp"/>
	<group name="Usuarios">
		<groupExpression><![CDATA[$F{ti_actorid}]]></groupExpression>
		<groupHeader>
			<band height="50">
				<rectangle radius="10">
					<reportElement x="172" y="10" width="170" height="20" backcolor="#A4D4F5" uuid="28ee8b9e-1ac8-4c82-b18b-a2e976db2af3"/>
				</rectangle>
				<staticText>
					<reportElement x="355" y="32" width="87" height="14" uuid="099ffba6-71f4-404e-affe-1b3905becc2b"/>
					<textElement>
						<font fontName="Arial" isBold="true" pdfFontName="unicode.ttf" pdfEncoding="Identity-H"/>
					</textElement>
					<text><![CDATA[End]]></text>
				</staticText>
				<staticText>
					<reportElement x="120" y="32" width="119" height="14" uuid="914fb7b9-4a8d-45d5-88e3-e0594649ca37"/>
					<textElement>
						<font fontName="Arial" isBold="true" pdfFontName="unicode.ttf" pdfEncoding="Identity-H"/>
					</textElement>
					<text><![CDATA[Task]]></text>
				</staticText>
				<textField>
					<reportElement x="242" y="14" width="100" height="14" uuid="733c3f8f-a0cc-4fdd-a321-47a0cc56c516"/>
					<textElement>
						<font fontName="Arial" isBold="true" pdfFontName="unicode.ttf" pdfEncoding="Identity-H"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{ti_actorid}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement x="182" y="14" width="60" height="14" uuid="b704ced9-a00d-49f4-953a-922c3ca35879"/>
					<textElement>
						<font fontName="Arial" isBold="true" pdfFontName="unicode.ttf" pdfEncoding="Identity-H"/>
					</textElement>
					<text><![CDATA[User:]]></text>
				</staticText>
				<staticText>
					<reportElement x="453" y="32" width="102" height="14" uuid="490ed357-cdb9-42b9-966b-9f33def71275"/>
					<textElement>
						<font fontName="Arial" isBold="true" pdfFontName="unicode.ttf" pdfEncoding="Identity-H"/>
					</textElement>
					<text><![CDATA[Elapse]]></text>
				</staticText>
				<line>
					<reportElement x="0" y="47" width="555" height="1" uuid="29429310-3d5e-4011-8e4e-63c752ef12aa"/>
				</line>
				<staticText>
					<reportElement x="249" y="31" width="93" height="15" uuid="1d383d95-bcb2-482a-b231-72f906bc172b"/>
					<textElement>
						<font fontName="Arial" isBold="true" pdfFontName="unicode.ttf" pdfEncoding="Identity-H"/>
					</textElement>
					<text><![CDATA[Start]]></text>
				</staticText>
				<staticText>
					<reportElement x="0" y="32" width="100" height="14" uuid="7cf9af07-2832-4653-8e84-ef31535fc87c"/>
					<textElement>
						<font fontName="Arial" isBold="true" pdfFontName="unicode.ttf" pdfEncoding="Identity-H" isPdfEmbedded="false"/>
					</textElement>
					<text><![CDATA[Process]]></text>
				</staticText>
			</band>
		</groupHeader>
		<groupFooter>
			<band/>
		</groupFooter>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="44" splitType="Stretch">
			<staticText>
				<reportElement x="84" y="0" width="297" height="44" uuid="03cc942c-0982-4464-87e3-f990bb8ed2e9"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="Arial" size="22" isBold="true" pdfFontName="unicode.ttf" pdfEncoding="Identity-H" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[Workflow Workload]]></text>
			</staticText>
			<textField pattern="yyyy/MM/dd" isBlankWhenNull="false">
				<reportElement key="textField-13" x="0" y="0" width="65" height="10" forecolor="#010101" uuid="049dae49-d4e6-4b57-9aeb-e62ca9c9193c"/>
				<box>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement verticalAlignment="Middle">
					<font fontName="Arial" size="8" isBold="true" isUnderline="false" pdfFontName="unicode.ttf" pdfEncoding="Identity-H"/>
				</textElement>
				<textFieldExpression><![CDATA[new Date()]]></textFieldExpression>
			</textField>
			<textField pattern="h.mm.ss a" isBlankWhenNull="false">
				<reportElement key="textField-14" x="0" y="10" width="65" height="10" forecolor="#010101" uuid="1d334942-adc2-474f-9403-f4a19b9abf99"/>
				<box>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement verticalAlignment="Middle">
					<font fontName="Arial" size="8" isBold="true" isUnderline="false" pdfFontName="unicode.ttf" pdfEncoding="Identity-H"/>
				</textElement>
				<textFieldExpression><![CDATA[new Date()]]></textFieldExpression>
			</textField>
			<image>
				<reportElement key="image-1" x="405" y="0" width="150" height="35" uuid="00a973f1-de26-4367-af9f-c916ad93dd9e"/>
				<imageExpression><![CDATA["http://localhost:8080/openkm/logo/report"]]></imageExpression>
			</image>
		</band>
	</title>
	<pageHeader>
		<band height="6" splitType="Stretch"/>
	</pageHeader>
	<columnHeader>
		<band height="7" splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="16" splitType="Stretch">
			<textField isBlankWhenNull="true">
				<reportElement x="250" y="1" width="93" height="13" uuid="45496ea4-b335-4bbf-a5ac-dd7ec45a8c09"/>
				<textElement>
					<font fontName="Arial" pdfFontName="unicode.ttf" pdfEncoding="Identity-H"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{ti_start}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="355" y="0" width="87" height="14" uuid="5f492345-7391-40d2-971d-6dff625fc9ed"/>
				<textElement>
					<font fontName="Arial" pdfFontName="unicode.ttf" pdfEncoding="Identity-H"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{ti_end}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="120" y="1" width="119" height="13" uuid="03d76c0e-180c-4452-9eac-e351f00a3885"/>
				<textElement>
					<font fontName="Arial" pdfFontName="unicode.ttf" pdfEncoding="Identity-H"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{ti_name}]]></textFieldExpression>
			</textField>
			<textField pattern="HH.mm.ss" isBlankWhenNull="true">
				<reportElement x="453" y="1" width="102" height="13" uuid="a1c88a36-c648-4d20-8333-f2427be50a69"/>
				<textElement>
					<font fontName="Arial" pdfFontName="unicode.ttf" pdfEncoding="Identity-H"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.sql.Timestamp(($F{ti_end}.getTime()-$F{ti_start}.getTime())-1000*60*60)]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="0" width="100" height="14" uuid="700532b1-ad9e-482e-bfe5-e28b3cf18445"/>
				<textElement>
					<font fontName="Arial" pdfFontName="unicode.ttf" pdfEncoding="Identity-H"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{pd_name}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band height="30" splitType="Stretch">
			<line>
				<reportElement key="line-2" x="0" y="2" width="552" height="1" forecolor="#010101" backcolor="#FFFFFF" uuid="8a617b58-3fe0-4aeb-af5d-5370a3e55cdc"/>
				<graphicElement fill="Solid"/>
			</line>
		</band>
	</pageFooter>
	<summary>
		<band height="3" splitType="Stretch"/>
	</summary>
</jasperReport>
