Bonjour,
je travaille sur un projet décisionnel et je suis sur la phase de reporting, alors puisque on a travaillé sur la suite de Pentaho, alors je dois réalisé cette tâche avec Pentaho Design Studio, lorsque j'ai créer ma première action en suivant un tutoriel j'ai tombé sur un erreur que j'ai pas compris lorsque j'ai testé cette action, voila son XML Source:
mais je me suis dis ca peut que je dois testé ou moins une simple action alors j'ai créer une autre action très simple, je contacte seulement ma base de données MySQL en sélectionnant une table, et voila son XML Source:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121 <?xml version="1.0" encoding="UTF-8"?> <action-sequence> <title>required</title> <version>1</version> <logging-level>ERROR</logging-level> <documentation> <author/> <description>Empty blank action sequence document</description> <help/> <result-type/> <icon/> </documentation> <inputs> <from type="string"> <sources/> </from> </inputs> <outputs/> <resources/> <actions> <action-definition> <component-name>SQLLookupRule</component-name> <action-type>GetManagerInfo</action-type> <action-inputs/> <action-outputs> <query-result type="result-set" mapping="LoopList"/> <REGION type="string"/> <MANAGER_NAME type="string"/> <EMAIL type="string"/> </action-outputs> <component-definition> <jndi><![CDATA[SampleData]]></jndi> <live><![CDATA[false]]></live> <query><![CDATA[select distinct REGION, MANAGER_NAME, EMAIL from DEPARTMENT_MANAGERS]]></query> </component-definition> </action-definition> <actions loop-on="LoopList"> <action-definition> <component-name>SQLLookupRule</component-name> <action-type>GetResults</action-type> <action-inputs> <REGION type="string"/> </action-inputs> <action-outputs> <query-result type="result-set" mapping="LoopList2"/> <ACTUAL type="string"/> <BUDGET type="string"/> <VARIANCE type="string"/> </action-outputs> <component-definition> <jndi><![CDATA[SampleData]]></jndi> <query><![CDATA[SELECT SUM(ACTUAL) ACTUAL, SUM(BUDGET) BUDGET, SUM(VARIANCE) VARIANCE FROM QUADRANT_ACTUALS WHERE REGION = '{REGION}]]></query> <live><![CDATA[true]]></live> </component-definition> </action-definition> <actions loop-on="LoopList2"> <action-definition> <component-name>TemplateComponent</component-name> <action-type>FormatSubject</action-type> <action-inputs> <REGION type="string"/> </action-inputs> <action-outputs> <output-message type="string" mapping="MailSubject"/> </action-outputs> <component-definition> <template><![CDATA[Results for region {REGION}]]></template> </component-definition> </action-definition> <action-definition> <component-name>TemplateComponent</component-name> <action-type>FormatText</action-type> <action-inputs> <BUDGET type="string"/> <VARIANCE type="string"/> <MANAGER_NAME type="string"/> <ACTUAL type="string"/> </action-inputs> <action-outputs> <output-message type="string" mapping="MailText"/> </action-outputs> <component-definition> <template><![CDATA[Dear {MANAGER_NAME}, your result was ${ACTUAL}, with a prijected result of ${BUDGET} leafing to a variance of ${VARIANCE} Kind regards, Your boss]]></template> </component-definition> </action-definition> <action-definition> <component-name>EmailComponent</component-name> <action-type>E-Mail</action-type> <action-inputs> <from type="string"/> <subject type="string" mapping="MailSubject"/> <message-plain type="string" mapping="MailSubject"/> </action-inputs> <component-definition> <to><![CDATA[khaoulaboujeddainetsouli@gmail.com]]></to> </component-definition> </action-definition> </actions> </actions> </actions> </action-sequence>
SVP aidez moi, j'ai besoin de votre aide.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38 <?xml version="1.0" encoding="UTF-8"?> <action-sequence> <title>testee</title> <version>1</version> <logging-level>ERROR</logging-level> <documentation> <author/> <description>Empty blank action sequence document</description> <help/> <result-type/> <icon/> </documentation> <inputs/> <outputs/> <resources/> <actions> <action-definition> <component-name>SQLLookupRule</component-name> <action-type>getData</action-type> <action-outputs> <query-result type="result-set" mapping="query_result"/> </action-outputs> <component-definition> <live><![CDATA[true]]></live> <driver><![CDATA[com.mysql.jdbc.Driver]]></driver> <connection><![CDATA[jdbc:mysql://localhost:3306/entrepot?user=root]]></connection> <user-id><![CDATA[joe]]></user-id> <password><![CDATA[password]]></password> <query><![CDATA[SELECT * FROM produit]]></query> </component-definition> </action-definition> </actions> </action-sequence>






Répondre avec citation




Partager