execute-request.ktr 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <transformation>
  3. <info>
  4. <name>execute-request</name>
  5. <description/>
  6. <extended_description/>
  7. <trans_version/>
  8. <trans_type>Normal</trans_type>
  9. <directory>/</directory>
  10. <parameters>
  11. </parameters>
  12. <log>
  13. <trans-log-table>
  14. <connection/>
  15. <schema/>
  16. <table/>
  17. <size_limit_lines/>
  18. <interval/>
  19. <timeout_days/>
  20. <field>
  21. <id>ID_BATCH</id>
  22. <enabled>Y</enabled>
  23. <name>ID_BATCH</name>
  24. </field>
  25. <field>
  26. <id>CHANNEL_ID</id>
  27. <enabled>Y</enabled>
  28. <name>CHANNEL_ID</name>
  29. </field>
  30. <field>
  31. <id>TRANSNAME</id>
  32. <enabled>Y</enabled>
  33. <name>TRANSNAME</name>
  34. </field>
  35. <field>
  36. <id>STATUS</id>
  37. <enabled>Y</enabled>
  38. <name>STATUS</name>
  39. </field>
  40. <field>
  41. <id>LINES_READ</id>
  42. <enabled>Y</enabled>
  43. <name>LINES_READ</name>
  44. <subject/>
  45. </field>
  46. <field>
  47. <id>LINES_WRITTEN</id>
  48. <enabled>Y</enabled>
  49. <name>LINES_WRITTEN</name>
  50. <subject/>
  51. </field>
  52. <field>
  53. <id>LINES_UPDATED</id>
  54. <enabled>Y</enabled>
  55. <name>LINES_UPDATED</name>
  56. <subject/>
  57. </field>
  58. <field>
  59. <id>LINES_INPUT</id>
  60. <enabled>Y</enabled>
  61. <name>LINES_INPUT</name>
  62. <subject/>
  63. </field>
  64. <field>
  65. <id>LINES_OUTPUT</id>
  66. <enabled>Y</enabled>
  67. <name>LINES_OUTPUT</name>
  68. <subject/>
  69. </field>
  70. <field>
  71. <id>LINES_REJECTED</id>
  72. <enabled>Y</enabled>
  73. <name>LINES_REJECTED</name>
  74. <subject/>
  75. </field>
  76. <field>
  77. <id>ERRORS</id>
  78. <enabled>Y</enabled>
  79. <name>ERRORS</name>
  80. </field>
  81. <field>
  82. <id>STARTDATE</id>
  83. <enabled>Y</enabled>
  84. <name>STARTDATE</name>
  85. </field>
  86. <field>
  87. <id>ENDDATE</id>
  88. <enabled>Y</enabled>
  89. <name>ENDDATE</name>
  90. </field>
  91. <field>
  92. <id>LOGDATE</id>
  93. <enabled>Y</enabled>
  94. <name>LOGDATE</name>
  95. </field>
  96. <field>
  97. <id>DEPDATE</id>
  98. <enabled>Y</enabled>
  99. <name>DEPDATE</name>
  100. </field>
  101. <field>
  102. <id>REPLAYDATE</id>
  103. <enabled>Y</enabled>
  104. <name>REPLAYDATE</name>
  105. </field>
  106. <field>
  107. <id>LOG_FIELD</id>
  108. <enabled>Y</enabled>
  109. <name>LOG_FIELD</name>
  110. </field>
  111. <field>
  112. <id>EXECUTING_SERVER</id>
  113. <enabled>N</enabled>
  114. <name>EXECUTING_SERVER</name>
  115. </field>
  116. <field>
  117. <id>EXECUTING_USER</id>
  118. <enabled>N</enabled>
  119. <name>EXECUTING_USER</name>
  120. </field>
  121. <field>
  122. <id>CLIENT</id>
  123. <enabled>N</enabled>
  124. <name>CLIENT</name>
  125. </field>
  126. </trans-log-table>
  127. <perf-log-table>
  128. <connection/>
  129. <schema/>
  130. <table/>
  131. <interval/>
  132. <timeout_days/>
  133. <field>
  134. <id>ID_BATCH</id>
  135. <enabled>Y</enabled>
  136. <name>ID_BATCH</name>
  137. </field>
  138. <field>
  139. <id>SEQ_NR</id>
  140. <enabled>Y</enabled>
  141. <name>SEQ_NR</name>
  142. </field>
  143. <field>
  144. <id>LOGDATE</id>
  145. <enabled>Y</enabled>
  146. <name>LOGDATE</name>
  147. </field>
  148. <field>
  149. <id>TRANSNAME</id>
  150. <enabled>Y</enabled>
  151. <name>TRANSNAME</name>
  152. </field>
  153. <field>
  154. <id>STEPNAME</id>
  155. <enabled>Y</enabled>
  156. <name>STEPNAME</name>
  157. </field>
  158. <field>
  159. <id>STEP_COPY</id>
  160. <enabled>Y</enabled>
  161. <name>STEP_COPY</name>
  162. </field>
  163. <field>
  164. <id>LINES_READ</id>
  165. <enabled>Y</enabled>
  166. <name>LINES_READ</name>
  167. </field>
  168. <field>
  169. <id>LINES_WRITTEN</id>
  170. <enabled>Y</enabled>
  171. <name>LINES_WRITTEN</name>
  172. </field>
  173. <field>
  174. <id>LINES_UPDATED</id>
  175. <enabled>Y</enabled>
  176. <name>LINES_UPDATED</name>
  177. </field>
  178. <field>
  179. <id>LINES_INPUT</id>
  180. <enabled>Y</enabled>
  181. <name>LINES_INPUT</name>
  182. </field>
  183. <field>
  184. <id>LINES_OUTPUT</id>
  185. <enabled>Y</enabled>
  186. <name>LINES_OUTPUT</name>
  187. </field>
  188. <field>
  189. <id>LINES_REJECTED</id>
  190. <enabled>Y</enabled>
  191. <name>LINES_REJECTED</name>
  192. </field>
  193. <field>
  194. <id>ERRORS</id>
  195. <enabled>Y</enabled>
  196. <name>ERRORS</name>
  197. </field>
  198. <field>
  199. <id>INPUT_BUFFER_ROWS</id>
  200. <enabled>Y</enabled>
  201. <name>INPUT_BUFFER_ROWS</name>
  202. </field>
  203. <field>
  204. <id>OUTPUT_BUFFER_ROWS</id>
  205. <enabled>Y</enabled>
  206. <name>OUTPUT_BUFFER_ROWS</name>
  207. </field>
  208. </perf-log-table>
  209. <channel-log-table>
  210. <connection/>
  211. <schema/>
  212. <table/>
  213. <timeout_days/>
  214. <field>
  215. <id>ID_BATCH</id>
  216. <enabled>Y</enabled>
  217. <name>ID_BATCH</name>
  218. </field>
  219. <field>
  220. <id>CHANNEL_ID</id>
  221. <enabled>Y</enabled>
  222. <name>CHANNEL_ID</name>
  223. </field>
  224. <field>
  225. <id>LOG_DATE</id>
  226. <enabled>Y</enabled>
  227. <name>LOG_DATE</name>
  228. </field>
  229. <field>
  230. <id>LOGGING_OBJECT_TYPE</id>
  231. <enabled>Y</enabled>
  232. <name>LOGGING_OBJECT_TYPE</name>
  233. </field>
  234. <field>
  235. <id>OBJECT_NAME</id>
  236. <enabled>Y</enabled>
  237. <name>OBJECT_NAME</name>
  238. </field>
  239. <field>
  240. <id>OBJECT_COPY</id>
  241. <enabled>Y</enabled>
  242. <name>OBJECT_COPY</name>
  243. </field>
  244. <field>
  245. <id>REPOSITORY_DIRECTORY</id>
  246. <enabled>Y</enabled>
  247. <name>REPOSITORY_DIRECTORY</name>
  248. </field>
  249. <field>
  250. <id>FILENAME</id>
  251. <enabled>Y</enabled>
  252. <name>FILENAME</name>
  253. </field>
  254. <field>
  255. <id>OBJECT_ID</id>
  256. <enabled>Y</enabled>
  257. <name>OBJECT_ID</name>
  258. </field>
  259. <field>
  260. <id>OBJECT_REVISION</id>
  261. <enabled>Y</enabled>
  262. <name>OBJECT_REVISION</name>
  263. </field>
  264. <field>
  265. <id>PARENT_CHANNEL_ID</id>
  266. <enabled>Y</enabled>
  267. <name>PARENT_CHANNEL_ID</name>
  268. </field>
  269. <field>
  270. <id>ROOT_CHANNEL_ID</id>
  271. <enabled>Y</enabled>
  272. <name>ROOT_CHANNEL_ID</name>
  273. </field>
  274. </channel-log-table>
  275. <step-log-table>
  276. <connection/>
  277. <schema/>
  278. <table/>
  279. <timeout_days/>
  280. <field>
  281. <id>ID_BATCH</id>
  282. <enabled>Y</enabled>
  283. <name>ID_BATCH</name>
  284. </field>
  285. <field>
  286. <id>CHANNEL_ID</id>
  287. <enabled>Y</enabled>
  288. <name>CHANNEL_ID</name>
  289. </field>
  290. <field>
  291. <id>LOG_DATE</id>
  292. <enabled>Y</enabled>
  293. <name>LOG_DATE</name>
  294. </field>
  295. <field>
  296. <id>TRANSNAME</id>
  297. <enabled>Y</enabled>
  298. <name>TRANSNAME</name>
  299. </field>
  300. <field>
  301. <id>STEPNAME</id>
  302. <enabled>Y</enabled>
  303. <name>STEPNAME</name>
  304. </field>
  305. <field>
  306. <id>STEP_COPY</id>
  307. <enabled>Y</enabled>
  308. <name>STEP_COPY</name>
  309. </field>
  310. <field>
  311. <id>LINES_READ</id>
  312. <enabled>Y</enabled>
  313. <name>LINES_READ</name>
  314. </field>
  315. <field>
  316. <id>LINES_WRITTEN</id>
  317. <enabled>Y</enabled>
  318. <name>LINES_WRITTEN</name>
  319. </field>
  320. <field>
  321. <id>LINES_UPDATED</id>
  322. <enabled>Y</enabled>
  323. <name>LINES_UPDATED</name>
  324. </field>
  325. <field>
  326. <id>LINES_INPUT</id>
  327. <enabled>Y</enabled>
  328. <name>LINES_INPUT</name>
  329. </field>
  330. <field>
  331. <id>LINES_OUTPUT</id>
  332. <enabled>Y</enabled>
  333. <name>LINES_OUTPUT</name>
  334. </field>
  335. <field>
  336. <id>LINES_REJECTED</id>
  337. <enabled>Y</enabled>
  338. <name>LINES_REJECTED</name>
  339. </field>
  340. <field>
  341. <id>ERRORS</id>
  342. <enabled>Y</enabled>
  343. <name>ERRORS</name>
  344. </field>
  345. <field>
  346. <id>LOG_FIELD</id>
  347. <enabled>N</enabled>
  348. <name>LOG_FIELD</name>
  349. </field>
  350. </step-log-table>
  351. <metrics-log-table>
  352. <connection/>
  353. <schema/>
  354. <table/>
  355. <timeout_days/>
  356. <field>
  357. <id>ID_BATCH</id>
  358. <enabled>Y</enabled>
  359. <name>ID_BATCH</name>
  360. </field>
  361. <field>
  362. <id>CHANNEL_ID</id>
  363. <enabled>Y</enabled>
  364. <name>CHANNEL_ID</name>
  365. </field>
  366. <field>
  367. <id>LOG_DATE</id>
  368. <enabled>Y</enabled>
  369. <name>LOG_DATE</name>
  370. </field>
  371. <field>
  372. <id>METRICS_DATE</id>
  373. <enabled>Y</enabled>
  374. <name>METRICS_DATE</name>
  375. </field>
  376. <field>
  377. <id>METRICS_CODE</id>
  378. <enabled>Y</enabled>
  379. <name>METRICS_CODE</name>
  380. </field>
  381. <field>
  382. <id>METRICS_DESCRIPTION</id>
  383. <enabled>Y</enabled>
  384. <name>METRICS_DESCRIPTION</name>
  385. </field>
  386. <field>
  387. <id>METRICS_SUBJECT</id>
  388. <enabled>Y</enabled>
  389. <name>METRICS_SUBJECT</name>
  390. </field>
  391. <field>
  392. <id>METRICS_TYPE</id>
  393. <enabled>Y</enabled>
  394. <name>METRICS_TYPE</name>
  395. </field>
  396. <field>
  397. <id>METRICS_VALUE</id>
  398. <enabled>Y</enabled>
  399. <name>METRICS_VALUE</name>
  400. </field>
  401. </metrics-log-table>
  402. </log>
  403. <maxdate>
  404. <connection/>
  405. <table/>
  406. <field/>
  407. <offset>0.0</offset>
  408. <maxdiff>0.0</maxdiff>
  409. </maxdate>
  410. <size_rowset>10000</size_rowset>
  411. <sleep_time_empty>50</sleep_time_empty>
  412. <sleep_time_full>50</sleep_time_full>
  413. <unique_connections>N</unique_connections>
  414. <feedback_shown>Y</feedback_shown>
  415. <feedback_size>50000</feedback_size>
  416. <using_thread_priorities>Y</using_thread_priorities>
  417. <shared_objects_file/>
  418. <capture_step_performance>N</capture_step_performance>
  419. <step_performance_capturing_delay>1000</step_performance_capturing_delay>
  420. <step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
  421. <dependencies>
  422. </dependencies>
  423. <partitionschemas>
  424. </partitionschemas>
  425. <slaveservers>
  426. </slaveservers>
  427. <clusterschemas>
  428. </clusterschemas>
  429. <created_user>-</created_user>
  430. <created_date>2019/01/29 16:02:42.790</created_date>
  431. <modified_user>-</modified_user>
  432. <modified_date>2019/01/29 16:02:42.790</modified_date>
  433. <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
  434. <is_key_private>N</is_key_private>
  435. </info>
  436. <notepads>
  437. </notepads>
  438. <connection>
  439. <name>DEV_MEIntegrado_AZURE</name>
  440. <server>192.168.100.4</server>
  441. <type>MSSQLNATIVE</type>
  442. <access>Native</access>
  443. <database>DEV_MEIntegrado</database>
  444. <port>1433</port>
  445. <username>MERELEC_TABLEAU</username>
  446. <password>Encrypted 2be98afc827948087aa1da1638dc2ff8a</password>
  447. <servername/>
  448. <data_tablespace/>
  449. <index_tablespace/>
  450. <attributes>
  451. <attribute>
  452. <code>EXTRA_OPTION_MSSQLNATIVE.instance</code>
  453. <attribute>azureme.wmercadosme.local</attribute>
  454. </attribute>
  455. <attribute>
  456. <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
  457. <attribute>N</attribute>
  458. </attribute>
  459. <attribute>
  460. <code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
  461. <attribute>N</attribute>
  462. </attribute>
  463. <attribute>
  464. <code>IS_CLUSTERED</code>
  465. <attribute>N</attribute>
  466. </attribute>
  467. <attribute>
  468. <code>MSSQLUseIntegratedSecurity</code>
  469. <attribute>false</attribute>
  470. </attribute>
  471. <attribute>
  472. <code>MSSQL_DOUBLE_DECIMAL_SEPARATOR</code>
  473. <attribute>N</attribute>
  474. </attribute>
  475. <attribute>
  476. <code>PORT_NUMBER</code>
  477. <attribute>1433</attribute>
  478. </attribute>
  479. <attribute>
  480. <code>PRESERVE_RESERVED_WORD_CASE</code>
  481. <attribute>Y</attribute>
  482. </attribute>
  483. <attribute>
  484. <code>QUOTE_ALL_FIELDS</code>
  485. <attribute>N</attribute>
  486. </attribute>
  487. <attribute>
  488. <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
  489. <attribute>Y</attribute>
  490. </attribute>
  491. <attribute>
  492. <code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
  493. <attribute>Y</attribute>
  494. </attribute>
  495. <attribute>
  496. <code>USE_POOLING</code>
  497. <attribute>N</attribute>
  498. </attribute>
  499. </attributes>
  500. </connection>
  501. <order>
  502. <hop>
  503. <from>JSON Input</from>
  504. <to>Modified Java Script Value</to>
  505. <enabled>Y</enabled>
  506. </hop>
  507. <hop>
  508. <from>Modified Java Script Value</from>
  509. <to>Select values</to>
  510. <enabled>Y</enabled>
  511. </hop>
  512. <hop>
  513. <from>JSON Input 2</from>
  514. <to>JSON Input</to>
  515. <enabled>Y</enabled>
  516. </hop>
  517. <hop>
  518. <from>Select values</from>
  519. <to>Filter rows</to>
  520. <enabled>Y</enabled>
  521. </hop>
  522. <hop>
  523. <from>REST Client</from>
  524. <to>JSON Input 2</to>
  525. <enabled>Y</enabled>
  526. </hop>
  527. <hop>
  528. <from>Get rows from result</from>
  529. <to>REST Client</to>
  530. <enabled>Y</enabled>
  531. </hop>
  532. <hop>
  533. <from>Filter rows</from>
  534. <to>Table output</to>
  535. <enabled>Y</enabled>
  536. </hop>
  537. </order>
  538. <step>
  539. <name>Get rows from result</name>
  540. <type>RowsFromResult</type>
  541. <description/>
  542. <distribute>Y</distribute>
  543. <custom_distribution/>
  544. <copies>1</copies>
  545. <partitioning>
  546. <method>none</method>
  547. <schema_name/>
  548. </partitioning>
  549. <fields>
  550. <field>
  551. <name>pais</name>
  552. <type>String</type>
  553. <length>-1</length>
  554. <precision>-1</precision>
  555. </field>
  556. <field>
  557. <name>ciudad</name>
  558. <type>String</type>
  559. <length>-1</length>
  560. <precision>-1</precision>
  561. </field>
  562. <field>
  563. <name>url</name>
  564. <type>String</type>
  565. <length>-1</length>
  566. <precision>-1</precision>
  567. </field>
  568. </fields>
  569. <cluster_schema/>
  570. <remotesteps>
  571. <input>
  572. </input>
  573. <output>
  574. </output>
  575. </remotesteps>
  576. <GUI>
  577. <xloc>208</xloc>
  578. <yloc>128</yloc>
  579. <draw>Y</draw>
  580. </GUI>
  581. </step>
  582. <step>
  583. <name>JSON Input</name>
  584. <type>JsonInput</type>
  585. <description/>
  586. <distribute>Y</distribute>
  587. <custom_distribution/>
  588. <copies>1</copies>
  589. <partitioning>
  590. <method>none</method>
  591. <schema_name/>
  592. </partitioning>
  593. <include>N</include>
  594. <include_field/>
  595. <rownum>N</rownum>
  596. <addresultfile>N</addresultfile>
  597. <readurl>N</readurl>
  598. <removeSourceField>Y</removeSourceField>
  599. <IsIgnoreEmptyFile>N</IsIgnoreEmptyFile>
  600. <doNotFailIfNoFile>Y</doNotFailIfNoFile>
  601. <ignoreMissingPath>Y</ignoreMissingPath>
  602. <defaultPathLeafToNull>Y</defaultPathLeafToNull>
  603. <rownum_field/>
  604. <file>
  605. <name/>
  606. <filemask/>
  607. <exclude_filemask/>
  608. <file_required>N</file_required>
  609. <include_subfolders>N</include_subfolders>
  610. </file>
  611. <fields>
  612. <field>
  613. <name>time</name>
  614. <path>$.data[*].time</path>
  615. <type>Number</type>
  616. <format/>
  617. <currency/>
  618. <decimal/>
  619. <group/>
  620. <length>-1</length>
  621. <precision>-1</precision>
  622. <trim_type>none</trim_type>
  623. <repeat>N</repeat>
  624. </field>
  625. <field>
  626. <name>precipIntensity</name>
  627. <path>$.data[*].precipIntensity</path>
  628. <type>Number</type>
  629. <format/>
  630. <currency/>
  631. <decimal/>
  632. <group/>
  633. <length>-1</length>
  634. <precision>-1</precision>
  635. <trim_type>none</trim_type>
  636. <repeat>N</repeat>
  637. </field>
  638. <field>
  639. <name>precipProbability</name>
  640. <path>$.data[*].precipProbability</path>
  641. <type>Number</type>
  642. <format/>
  643. <currency/>
  644. <decimal/>
  645. <group/>
  646. <length>-1</length>
  647. <precision>-1</precision>
  648. <trim_type>none</trim_type>
  649. <repeat>N</repeat>
  650. </field>
  651. <field>
  652. <name>precipType</name>
  653. <path>$.data[*].precipType</path>
  654. <type>String</type>
  655. <format/>
  656. <currency/>
  657. <decimal/>
  658. <group/>
  659. <length>-1</length>
  660. <precision>-1</precision>
  661. <trim_type>none</trim_type>
  662. <repeat>N</repeat>
  663. </field>
  664. <field>
  665. <name>temperature</name>
  666. <path>$.data[*].temperature</path>
  667. <type>Number</type>
  668. <format/>
  669. <currency/>
  670. <decimal/>
  671. <group/>
  672. <length>-1</length>
  673. <precision>-1</precision>
  674. <trim_type>none</trim_type>
  675. <repeat>N</repeat>
  676. </field>
  677. <field>
  678. <name>apparentTemperature</name>
  679. <path>$.data[*].apparentTemperature</path>
  680. <type>Number</type>
  681. <format/>
  682. <currency/>
  683. <decimal/>
  684. <group/>
  685. <length>-1</length>
  686. <precision>-1</precision>
  687. <trim_type>none</trim_type>
  688. <repeat>N</repeat>
  689. </field>
  690. <field>
  691. <name>humidity</name>
  692. <path>$.data[*].humidity</path>
  693. <type>Number</type>
  694. <format/>
  695. <currency/>
  696. <decimal/>
  697. <group/>
  698. <length>-1</length>
  699. <precision>-1</precision>
  700. <trim_type>none</trim_type>
  701. <repeat>N</repeat>
  702. </field>
  703. <field>
  704. <name>pressure</name>
  705. <path>$.data[*].pressure</path>
  706. <type>Number</type>
  707. <format/>
  708. <currency/>
  709. <decimal/>
  710. <group/>
  711. <length>-1</length>
  712. <precision>-1</precision>
  713. <trim_type>none</trim_type>
  714. <repeat>N</repeat>
  715. </field>
  716. <field>
  717. <name>windSpeed</name>
  718. <path>$.data[*].windSpeed</path>
  719. <type>Number</type>
  720. <format/>
  721. <currency/>
  722. <decimal/>
  723. <group/>
  724. <length>-1</length>
  725. <precision>-1</precision>
  726. <trim_type>none</trim_type>
  727. <repeat>N</repeat>
  728. </field>
  729. <field>
  730. <name>windGust</name>
  731. <path>$.data[*].windGust</path>
  732. <type>Number</type>
  733. <format/>
  734. <currency/>
  735. <decimal/>
  736. <group/>
  737. <length>-1</length>
  738. <precision>-1</precision>
  739. <trim_type>none</trim_type>
  740. <repeat>N</repeat>
  741. </field>
  742. <field>
  743. <name>windBearing</name>
  744. <path>$.data[*].windBearing</path>
  745. <type>Number</type>
  746. <format/>
  747. <currency/>
  748. <decimal/>
  749. <group/>
  750. <length>-1</length>
  751. <precision>-1</precision>
  752. <trim_type>none</trim_type>
  753. <repeat>N</repeat>
  754. </field>
  755. <field>
  756. <name>cloudCover</name>
  757. <path>$.data[*].cloudCover</path>
  758. <type>Number</type>
  759. <format/>
  760. <currency/>
  761. <decimal/>
  762. <group/>
  763. <length>-1</length>
  764. <precision>-1</precision>
  765. <trim_type>none</trim_type>
  766. <repeat>N</repeat>
  767. </field>
  768. <field>
  769. <name>summary</name>
  770. <path>$.data[*].summary</path>
  771. <type>String</type>
  772. <format/>
  773. <currency/>
  774. <decimal/>
  775. <group/>
  776. <length>-1</length>
  777. <precision>-1</precision>
  778. <trim_type>none</trim_type>
  779. <repeat>N</repeat>
  780. </field>
  781. <field>
  782. <name>icon</name>
  783. <path>$.data[*].icon</path>
  784. <type>String</type>
  785. <format/>
  786. <currency/>
  787. <decimal/>
  788. <group/>
  789. <length>-1</length>
  790. <precision>-1</precision>
  791. <trim_type>none</trim_type>
  792. <repeat>N</repeat>
  793. </field>
  794. </fields>
  795. <limit>0</limit>
  796. <IsInFields>Y</IsInFields>
  797. <IsAFile>N</IsAFile>
  798. <valueField>hourly</valueField>
  799. <shortFileFieldName/>
  800. <pathFieldName/>
  801. <hiddenFieldName/>
  802. <lastModificationTimeFieldName/>
  803. <uriNameFieldName/>
  804. <rootUriNameFieldName/>
  805. <extensionFieldName/>
  806. <sizeFieldName/>
  807. <cluster_schema/>
  808. <remotesteps>
  809. <input>
  810. </input>
  811. <output>
  812. </output>
  813. </remotesteps>
  814. <GUI>
  815. <xloc>608</xloc>
  816. <yloc>128</yloc>
  817. <draw>Y</draw>
  818. </GUI>
  819. </step>
  820. <step>
  821. <name>Modified Java Script Value</name>
  822. <type>ScriptValueMod</type>
  823. <description/>
  824. <distribute>Y</distribute>
  825. <custom_distribution/>
  826. <copies>1</copies>
  827. <partitioning>
  828. <method>none</method>
  829. <schema_name/>
  830. </partitioning>
  831. <compatible>Y</compatible>
  832. <optimizationLevel>9</optimizationLevel>
  833. <jsScripts>
  834. <jsScript>
  835. <jsScript_type>0</jsScript_type>
  836. <jsScript_name>Script 1</jsScript_name>
  837. <jsScript_script>//Script here
  838. var time_hmi = new Date(time*1000);
  839. var fecha = new Date();
  840. var fecha_mañana = truncDate(dateAdd(fecha, "d", 1),3);
  841. var fecha_pasado = truncDate(dateAdd(fecha, "d", 2),3);
  842. //var ciudad = "San Salvador";
  843. //var pais = "El Salvador";</jsScript_script>
  844. </jsScript>
  845. <jsScript>
  846. <jsScript_type>-1</jsScript_type>
  847. <jsScript_name>dateAdd_Sample</jsScript_name>
  848. <jsScript_script>// Add's the given number to the given date Value.
  849. //
  850. // Usage:
  851. // dateAdd(var,var,var);
  852. // 1: Date - The Variable with the Date.
  853. // 2: String - The Type which represents the value
  854. // to add.
  855. // y - Years
  856. // m - Months
  857. // d - Days
  858. // w - Weeks
  859. // wd - Workingdays
  860. // hh - Hours
  861. // mi - Minutes
  862. // ss - Seconds
  863. // 3: Numeric - The Value to add.
  864. //
  865. // 2006-11-15
  866. //
  867. var d1 = new Date();
  868. Alert(dateAdd(d1, "y", 1));
  869. Alert(dateAdd(d1, "m", 4));
  870. Alert(dateAdd(d1, "d", 5));
  871. Alert(dateAdd(d1, "wd", 5));</jsScript_script>
  872. </jsScript>
  873. <jsScript>
  874. <jsScript_type>-1</jsScript_type>
  875. <jsScript_name>truncDate_Sample</jsScript_name>
  876. <jsScript_script>
  877. //
  878. // Usage:
  879. // truncDate(var1, var2);
  880. //
  881. // 1: a date - the date-time to be truncated
  882. // 2: the requested precision:
  883. // - 5 : truncate MONTHS (set to 1)
  884. // - 4 : truncate DAYS (set to 1)
  885. // - 3 : truncate HOURS (set to 0)
  886. // - 2 : truncate MINUTES (set to 0)
  887. // - 1 : truncate SECONDS (set to 0)
  888. // - 0 : truncate MILLISECONDS (set to 0)
  889. //
  890. // 2008-02-29
  891. //
  892. var dateTime = new Date();
  893. var date0 = truncDate(dateTime, 0); // gives back today at yyyy/MM/dd HH:mm:ss.000
  894. var date1 = truncDate(dateTime, 1); // gives back today at yyyy/MM/dd HH:mm:00.000
  895. var date2 = truncDate(dateTime, 2); // gives back today at yyyy/MM/dd HH:00:00.000
  896. var date3 = truncDate(dateTime, 3); // gives back today at yyyy/MM/dd 00:00:00.000
  897. var date4 = truncDate(dateTime, 4); // gives back today at yyyy/MM/01 00:00:00.000
  898. var date5 = truncDate(dateTime, 5); // gives back today at yyyy/01/01 00:00:00.000
  899. </jsScript_script>
  900. </jsScript>
  901. </jsScripts>
  902. <fields>
  903. <field>
  904. <name>time_hmi</name>
  905. <rename>time_hmi</rename>
  906. <type>Date</type>
  907. <length>-1</length>
  908. <precision>-1</precision>
  909. <replace>N</replace>
  910. </field>
  911. <field>
  912. <name>fecha_mañana</name>
  913. <rename>fecha_mañana</rename>
  914. <type>Date</type>
  915. <length>-1</length>
  916. <precision>-1</precision>
  917. <replace>N</replace>
  918. </field>
  919. <field>
  920. <name>fecha_pasado</name>
  921. <rename>fecha_pasado</rename>
  922. <type>Date</type>
  923. <length>-1</length>
  924. <precision>-1</precision>
  925. <replace>N</replace>
  926. </field>
  927. </fields>
  928. <cluster_schema/>
  929. <remotesteps>
  930. <input>
  931. </input>
  932. <output>
  933. </output>
  934. </remotesteps>
  935. <GUI>
  936. <xloc>736</xloc>
  937. <yloc>128</yloc>
  938. <draw>Y</draw>
  939. </GUI>
  940. </step>
  941. <step>
  942. <name>JSON Input 2</name>
  943. <type>JsonInput</type>
  944. <description/>
  945. <distribute>Y</distribute>
  946. <custom_distribution/>
  947. <copies>1</copies>
  948. <partitioning>
  949. <method>none</method>
  950. <schema_name/>
  951. </partitioning>
  952. <include>N</include>
  953. <include_field/>
  954. <rownum>N</rownum>
  955. <addresultfile>N</addresultfile>
  956. <readurl>N</readurl>
  957. <removeSourceField>N</removeSourceField>
  958. <IsIgnoreEmptyFile>N</IsIgnoreEmptyFile>
  959. <doNotFailIfNoFile>Y</doNotFailIfNoFile>
  960. <ignoreMissingPath>Y</ignoreMissingPath>
  961. <defaultPathLeafToNull>Y</defaultPathLeafToNull>
  962. <rownum_field/>
  963. <file>
  964. <name>C:\Users\BI4\Documents\Development\PDI - Kettle\weather-darksky\san-salvador-forecast.json</name>
  965. <filemask/>
  966. <exclude_filemask/>
  967. <file_required>N</file_required>
  968. <include_subfolders>N</include_subfolders>
  969. </file>
  970. <fields>
  971. <field>
  972. <name>latitude</name>
  973. <path>$.latitude</path>
  974. <type>Number</type>
  975. <format/>
  976. <currency/>
  977. <decimal/>
  978. <group/>
  979. <length>-1</length>
  980. <precision>-1</precision>
  981. <trim_type>none</trim_type>
  982. <repeat>N</repeat>
  983. </field>
  984. <field>
  985. <name>longitude</name>
  986. <path>$.longitude</path>
  987. <type>Number</type>
  988. <format/>
  989. <currency/>
  990. <decimal/>
  991. <group/>
  992. <length>-1</length>
  993. <precision>-1</precision>
  994. <trim_type>none</trim_type>
  995. <repeat>N</repeat>
  996. </field>
  997. <field>
  998. <name>hourly</name>
  999. <path>$.hourly</path>
  1000. <type>String</type>
  1001. <format/>
  1002. <currency/>
  1003. <decimal/>
  1004. <group/>
  1005. <length>-1</length>
  1006. <precision>-1</precision>
  1007. <trim_type>none</trim_type>
  1008. <repeat>N</repeat>
  1009. </field>
  1010. </fields>
  1011. <limit>0</limit>
  1012. <IsInFields>Y</IsInFields>
  1013. <IsAFile>N</IsAFile>
  1014. <valueField>result_json</valueField>
  1015. <shortFileFieldName/>
  1016. <pathFieldName/>
  1017. <hiddenFieldName/>
  1018. <lastModificationTimeFieldName/>
  1019. <uriNameFieldName/>
  1020. <rootUriNameFieldName/>
  1021. <extensionFieldName/>
  1022. <sizeFieldName/>
  1023. <cluster_schema/>
  1024. <remotesteps>
  1025. <input>
  1026. </input>
  1027. <output>
  1028. </output>
  1029. </remotesteps>
  1030. <GUI>
  1031. <xloc>496</xloc>
  1032. <yloc>128</yloc>
  1033. <draw>Y</draw>
  1034. </GUI>
  1035. </step>
  1036. <step>
  1037. <name>Select values</name>
  1038. <type>SelectValues</type>
  1039. <description/>
  1040. <distribute>Y</distribute>
  1041. <custom_distribution/>
  1042. <copies>1</copies>
  1043. <partitioning>
  1044. <method>none</method>
  1045. <schema_name/>
  1046. </partitioning>
  1047. <fields>
  1048. <select_unspecified>N</select_unspecified>
  1049. <remove>
  1050. <name>time</name>
  1051. </remove>
  1052. </fields>
  1053. <cluster_schema/>
  1054. <remotesteps>
  1055. <input>
  1056. </input>
  1057. <output>
  1058. </output>
  1059. </remotesteps>
  1060. <GUI>
  1061. <xloc>880</xloc>
  1062. <yloc>128</yloc>
  1063. <draw>Y</draw>
  1064. </GUI>
  1065. </step>
  1066. <step>
  1067. <name>Filter rows</name>
  1068. <type>FilterRows</type>
  1069. <description/>
  1070. <distribute>Y</distribute>
  1071. <custom_distribution/>
  1072. <copies>1</copies>
  1073. <partitioning>
  1074. <method>none</method>
  1075. <schema_name/>
  1076. </partitioning>
  1077. <send_true_to>Table output</send_true_to>
  1078. <send_false_to/>
  1079. <compare>
  1080. <condition>
  1081. <negated>N</negated>
  1082. <conditions>
  1083. <condition>
  1084. <negated>N</negated>
  1085. <leftvalue>time_hmi</leftvalue>
  1086. <function>&gt;=</function>
  1087. <rightvalue>fecha_mañana</rightvalue>
  1088. </condition>
  1089. <condition>
  1090. <negated>N</negated>
  1091. <operator>AND</operator>
  1092. <leftvalue>time_hmi</leftvalue>
  1093. <function>&lt;</function>
  1094. <rightvalue>fecha_pasado</rightvalue>
  1095. </condition>
  1096. </conditions>
  1097. </condition>
  1098. </compare>
  1099. <cluster_schema/>
  1100. <remotesteps>
  1101. <input>
  1102. </input>
  1103. <output>
  1104. </output>
  1105. </remotesteps>
  1106. <GUI>
  1107. <xloc>992</xloc>
  1108. <yloc>128</yloc>
  1109. <draw>Y</draw>
  1110. </GUI>
  1111. </step>
  1112. <step>
  1113. <name>REST Client</name>
  1114. <type>Rest</type>
  1115. <description/>
  1116. <distribute>Y</distribute>
  1117. <custom_distribution/>
  1118. <copies>1</copies>
  1119. <partitioning>
  1120. <method>none</method>
  1121. <schema_name/>
  1122. </partitioning>
  1123. <applicationType>JSON</applicationType>
  1124. <method>GET</method>
  1125. <url/>
  1126. <urlInField>Y</urlInField>
  1127. <dynamicMethod>N</dynamicMethod>
  1128. <methodFieldName/>
  1129. <urlField>url</urlField>
  1130. <bodyField/>
  1131. <httpLogin/>
  1132. <httpPassword>Encrypted </httpPassword>
  1133. <proxyHost/>
  1134. <proxyPort/>
  1135. <preemptive>N</preemptive>
  1136. <trustStoreFile/>
  1137. <trustStorePassword>Encrypted </trustStorePassword>
  1138. <headers>
  1139. </headers>
  1140. <parameters>
  1141. </parameters>
  1142. <matrixParameters>
  1143. </matrixParameters>
  1144. <result>
  1145. <name>result_json</name>
  1146. <code/>
  1147. <response_time/>
  1148. <response_header/>
  1149. </result>
  1150. <cluster_schema/>
  1151. <remotesteps>
  1152. <input>
  1153. </input>
  1154. <output>
  1155. </output>
  1156. </remotesteps>
  1157. <GUI>
  1158. <xloc>368</xloc>
  1159. <yloc>128</yloc>
  1160. <draw>Y</draw>
  1161. </GUI>
  1162. </step>
  1163. <step>
  1164. <name>Table output</name>
  1165. <type>TableOutput</type>
  1166. <description/>
  1167. <distribute>Y</distribute>
  1168. <custom_distribution/>
  1169. <copies>1</copies>
  1170. <partitioning>
  1171. <method>none</method>
  1172. <schema_name/>
  1173. </partitioning>
  1174. <connection>DEV_MEIntegrado_AZURE</connection>
  1175. <schema>CLIMA</schema>
  1176. <table>PRONOSTICO_HORARIO</table>
  1177. <commit>1000</commit>
  1178. <truncate>N</truncate>
  1179. <ignore_errors>N</ignore_errors>
  1180. <use_batch>Y</use_batch>
  1181. <specify_fields>Y</specify_fields>
  1182. <partitioning_enabled>N</partitioning_enabled>
  1183. <partitioning_field/>
  1184. <partitioning_daily>N</partitioning_daily>
  1185. <partitioning_monthly>Y</partitioning_monthly>
  1186. <tablename_in_field>N</tablename_in_field>
  1187. <tablename_field/>
  1188. <tablename_in_table>Y</tablename_in_table>
  1189. <return_keys>N</return_keys>
  1190. <return_field/>
  1191. <fields>
  1192. <field>
  1193. <column_name>PAIS</column_name>
  1194. <stream_name>pais</stream_name>
  1195. </field>
  1196. <field>
  1197. <column_name>CIUDAD</column_name>
  1198. <stream_name>ciudad</stream_name>
  1199. </field>
  1200. <field>
  1201. <column_name>LATITUD</column_name>
  1202. <stream_name>latitude</stream_name>
  1203. </field>
  1204. <field>
  1205. <column_name>LONGITUD</column_name>
  1206. <stream_name>longitude</stream_name>
  1207. </field>
  1208. <field>
  1209. <column_name>PRECIP_INTENSITY</column_name>
  1210. <stream_name>precipIntensity</stream_name>
  1211. </field>
  1212. <field>
  1213. <column_name>PRECIP_PROBABILITY</column_name>
  1214. <stream_name>precipProbability</stream_name>
  1215. </field>
  1216. <field>
  1217. <column_name>PRECIP_TYPE</column_name>
  1218. <stream_name>precipType</stream_name>
  1219. </field>
  1220. <field>
  1221. <column_name>TEMPERATURE</column_name>
  1222. <stream_name>temperature</stream_name>
  1223. </field>
  1224. <field>
  1225. <column_name>APPARENT_TEMPERATURE</column_name>
  1226. <stream_name>apparentTemperature</stream_name>
  1227. </field>
  1228. <field>
  1229. <column_name>HUMIDITY</column_name>
  1230. <stream_name>humidity</stream_name>
  1231. </field>
  1232. <field>
  1233. <column_name>PRESSURE</column_name>
  1234. <stream_name>pressure</stream_name>
  1235. </field>
  1236. <field>
  1237. <column_name>WIND_SPEED</column_name>
  1238. <stream_name>windSpeed</stream_name>
  1239. </field>
  1240. <field>
  1241. <column_name>WIND_GUST</column_name>
  1242. <stream_name>windGust</stream_name>
  1243. </field>
  1244. <field>
  1245. <column_name>WIND_BEARING</column_name>
  1246. <stream_name>windBearing</stream_name>
  1247. </field>
  1248. <field>
  1249. <column_name>CLOUD_COVER</column_name>
  1250. <stream_name>cloudCover</stream_name>
  1251. </field>
  1252. <field>
  1253. <column_name>SUMMARY</column_name>
  1254. <stream_name>summary</stream_name>
  1255. </field>
  1256. <field>
  1257. <column_name>ICON</column_name>
  1258. <stream_name>icon</stream_name>
  1259. </field>
  1260. <field>
  1261. <column_name>FECHA</column_name>
  1262. <stream_name>time_hmi</stream_name>
  1263. </field>
  1264. </fields>
  1265. <cluster_schema/>
  1266. <remotesteps>
  1267. <input>
  1268. </input>
  1269. <output>
  1270. </output>
  1271. </remotesteps>
  1272. <GUI>
  1273. <xloc>1120</xloc>
  1274. <yloc>128</yloc>
  1275. <draw>Y</draw>
  1276. </GUI>
  1277. </step>
  1278. <step_error_handling>
  1279. </step_error_handling>
  1280. <slave-step-copy-partition-distribution>
  1281. </slave-step-copy-partition-distribution>
  1282. <slave_transformation>N</slave_transformation>
  1283. </transformation>