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>PRD_ORION_AZURE</name>
  440. <server>192.168.100.4</server>
  441. <type>MSSQLNATIVE</type>
  442. <access>Native</access>
  443. <database>PRD_ORION</database>
  444. <port>1433</port>
  445. <username>MERELEC_PDI</username>
  446. <password>Encrypted 2bec8eb8127c28081a71cad348cc2fe82</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>Filter rows</name>
  540. <type>FilterRows</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. <send_true_to>Table output</send_true_to>
  550. <send_false_to/>
  551. <compare>
  552. <condition>
  553. <negated>N</negated>
  554. <conditions>
  555. <condition>
  556. <negated>N</negated>
  557. <leftvalue>time_hmi</leftvalue>
  558. <function>&gt;=</function>
  559. <rightvalue>fecha_mañana</rightvalue>
  560. </condition>
  561. <condition>
  562. <negated>N</negated>
  563. <operator>AND</operator>
  564. <leftvalue>time_hmi</leftvalue>
  565. <function>&lt;</function>
  566. <rightvalue>fecha_pasado</rightvalue>
  567. </condition>
  568. </conditions>
  569. </condition>
  570. </compare>
  571. <cluster_schema/>
  572. <remotesteps>
  573. <input>
  574. </input>
  575. <output>
  576. </output>
  577. </remotesteps>
  578. <GUI>
  579. <xloc>992</xloc>
  580. <yloc>128</yloc>
  581. <draw>Y</draw>
  582. </GUI>
  583. </step>
  584. <step>
  585. <name>Get rows from result</name>
  586. <type>RowsFromResult</type>
  587. <description/>
  588. <distribute>Y</distribute>
  589. <custom_distribution/>
  590. <copies>1</copies>
  591. <partitioning>
  592. <method>none</method>
  593. <schema_name/>
  594. </partitioning>
  595. <fields>
  596. <field>
  597. <name>pais</name>
  598. <type>String</type>
  599. <length>-1</length>
  600. <precision>-1</precision>
  601. </field>
  602. <field>
  603. <name>ciudad</name>
  604. <type>String</type>
  605. <length>-1</length>
  606. <precision>-1</precision>
  607. </field>
  608. <field>
  609. <name>url</name>
  610. <type>String</type>
  611. <length>-1</length>
  612. <precision>-1</precision>
  613. </field>
  614. </fields>
  615. <cluster_schema/>
  616. <remotesteps>
  617. <input>
  618. </input>
  619. <output>
  620. </output>
  621. </remotesteps>
  622. <GUI>
  623. <xloc>208</xloc>
  624. <yloc>128</yloc>
  625. <draw>Y</draw>
  626. </GUI>
  627. </step>
  628. <step>
  629. <name>JSON Input</name>
  630. <type>JsonInput</type>
  631. <description/>
  632. <distribute>Y</distribute>
  633. <custom_distribution/>
  634. <copies>1</copies>
  635. <partitioning>
  636. <method>none</method>
  637. <schema_name/>
  638. </partitioning>
  639. <include>N</include>
  640. <include_field/>
  641. <rownum>N</rownum>
  642. <addresultfile>N</addresultfile>
  643. <readurl>N</readurl>
  644. <removeSourceField>Y</removeSourceField>
  645. <IsIgnoreEmptyFile>N</IsIgnoreEmptyFile>
  646. <doNotFailIfNoFile>Y</doNotFailIfNoFile>
  647. <ignoreMissingPath>Y</ignoreMissingPath>
  648. <defaultPathLeafToNull>Y</defaultPathLeafToNull>
  649. <rownum_field/>
  650. <file>
  651. <name/>
  652. <filemask/>
  653. <exclude_filemask/>
  654. <file_required>N</file_required>
  655. <include_subfolders>N</include_subfolders>
  656. </file>
  657. <fields>
  658. <field>
  659. <name>time</name>
  660. <path>$.data[*].time</path>
  661. <type>Number</type>
  662. <format/>
  663. <currency/>
  664. <decimal/>
  665. <group/>
  666. <length>-1</length>
  667. <precision>-1</precision>
  668. <trim_type>none</trim_type>
  669. <repeat>N</repeat>
  670. </field>
  671. <field>
  672. <name>precipIntensity</name>
  673. <path>$.data[*].precipIntensity</path>
  674. <type>Number</type>
  675. <format/>
  676. <currency/>
  677. <decimal/>
  678. <group/>
  679. <length>-1</length>
  680. <precision>-1</precision>
  681. <trim_type>none</trim_type>
  682. <repeat>N</repeat>
  683. </field>
  684. <field>
  685. <name>precipProbability</name>
  686. <path>$.data[*].precipProbability</path>
  687. <type>Number</type>
  688. <format/>
  689. <currency/>
  690. <decimal/>
  691. <group/>
  692. <length>-1</length>
  693. <precision>-1</precision>
  694. <trim_type>none</trim_type>
  695. <repeat>N</repeat>
  696. </field>
  697. <field>
  698. <name>precipType</name>
  699. <path>$.data[*].precipType</path>
  700. <type>String</type>
  701. <format/>
  702. <currency/>
  703. <decimal/>
  704. <group/>
  705. <length>-1</length>
  706. <precision>-1</precision>
  707. <trim_type>none</trim_type>
  708. <repeat>N</repeat>
  709. </field>
  710. <field>
  711. <name>temperature</name>
  712. <path>$.data[*].temperature</path>
  713. <type>Number</type>
  714. <format/>
  715. <currency/>
  716. <decimal/>
  717. <group/>
  718. <length>-1</length>
  719. <precision>-1</precision>
  720. <trim_type>none</trim_type>
  721. <repeat>N</repeat>
  722. </field>
  723. <field>
  724. <name>apparentTemperature</name>
  725. <path>$.data[*].apparentTemperature</path>
  726. <type>Number</type>
  727. <format/>
  728. <currency/>
  729. <decimal/>
  730. <group/>
  731. <length>-1</length>
  732. <precision>-1</precision>
  733. <trim_type>none</trim_type>
  734. <repeat>N</repeat>
  735. </field>
  736. <field>
  737. <name>humidity</name>
  738. <path>$.data[*].humidity</path>
  739. <type>Number</type>
  740. <format/>
  741. <currency/>
  742. <decimal/>
  743. <group/>
  744. <length>-1</length>
  745. <precision>-1</precision>
  746. <trim_type>none</trim_type>
  747. <repeat>N</repeat>
  748. </field>
  749. <field>
  750. <name>pressure</name>
  751. <path>$.data[*].pressure</path>
  752. <type>Number</type>
  753. <format/>
  754. <currency/>
  755. <decimal/>
  756. <group/>
  757. <length>-1</length>
  758. <precision>-1</precision>
  759. <trim_type>none</trim_type>
  760. <repeat>N</repeat>
  761. </field>
  762. <field>
  763. <name>windSpeed</name>
  764. <path>$.data[*].windSpeed</path>
  765. <type>Number</type>
  766. <format/>
  767. <currency/>
  768. <decimal/>
  769. <group/>
  770. <length>-1</length>
  771. <precision>-1</precision>
  772. <trim_type>none</trim_type>
  773. <repeat>N</repeat>
  774. </field>
  775. <field>
  776. <name>windGust</name>
  777. <path>$.data[*].windGust</path>
  778. <type>Number</type>
  779. <format/>
  780. <currency/>
  781. <decimal/>
  782. <group/>
  783. <length>-1</length>
  784. <precision>-1</precision>
  785. <trim_type>none</trim_type>
  786. <repeat>N</repeat>
  787. </field>
  788. <field>
  789. <name>windBearing</name>
  790. <path>$.data[*].windBearing</path>
  791. <type>Number</type>
  792. <format/>
  793. <currency/>
  794. <decimal/>
  795. <group/>
  796. <length>-1</length>
  797. <precision>-1</precision>
  798. <trim_type>none</trim_type>
  799. <repeat>N</repeat>
  800. </field>
  801. <field>
  802. <name>cloudCover</name>
  803. <path>$.data[*].cloudCover</path>
  804. <type>Number</type>
  805. <format/>
  806. <currency/>
  807. <decimal/>
  808. <group/>
  809. <length>-1</length>
  810. <precision>-1</precision>
  811. <trim_type>none</trim_type>
  812. <repeat>N</repeat>
  813. </field>
  814. <field>
  815. <name>summary</name>
  816. <path>$.data[*].summary</path>
  817. <type>String</type>
  818. <format/>
  819. <currency/>
  820. <decimal/>
  821. <group/>
  822. <length>-1</length>
  823. <precision>-1</precision>
  824. <trim_type>none</trim_type>
  825. <repeat>N</repeat>
  826. </field>
  827. <field>
  828. <name>icon</name>
  829. <path>$.data[*].icon</path>
  830. <type>String</type>
  831. <format/>
  832. <currency/>
  833. <decimal/>
  834. <group/>
  835. <length>-1</length>
  836. <precision>-1</precision>
  837. <trim_type>none</trim_type>
  838. <repeat>N</repeat>
  839. </field>
  840. </fields>
  841. <limit>0</limit>
  842. <IsInFields>Y</IsInFields>
  843. <IsAFile>N</IsAFile>
  844. <valueField>hourly</valueField>
  845. <shortFileFieldName/>
  846. <pathFieldName/>
  847. <hiddenFieldName/>
  848. <lastModificationTimeFieldName/>
  849. <uriNameFieldName/>
  850. <rootUriNameFieldName/>
  851. <extensionFieldName/>
  852. <sizeFieldName/>
  853. <cluster_schema/>
  854. <remotesteps>
  855. <input>
  856. </input>
  857. <output>
  858. </output>
  859. </remotesteps>
  860. <GUI>
  861. <xloc>608</xloc>
  862. <yloc>128</yloc>
  863. <draw>Y</draw>
  864. </GUI>
  865. </step>
  866. <step>
  867. <name>JSON Input 2</name>
  868. <type>JsonInput</type>
  869. <description/>
  870. <distribute>Y</distribute>
  871. <custom_distribution/>
  872. <copies>1</copies>
  873. <partitioning>
  874. <method>none</method>
  875. <schema_name/>
  876. </partitioning>
  877. <include>N</include>
  878. <include_field/>
  879. <rownum>N</rownum>
  880. <addresultfile>N</addresultfile>
  881. <readurl>N</readurl>
  882. <removeSourceField>N</removeSourceField>
  883. <IsIgnoreEmptyFile>N</IsIgnoreEmptyFile>
  884. <doNotFailIfNoFile>Y</doNotFailIfNoFile>
  885. <ignoreMissingPath>Y</ignoreMissingPath>
  886. <defaultPathLeafToNull>Y</defaultPathLeafToNull>
  887. <rownum_field/>
  888. <file>
  889. <name>C:\Users\BI4\Documents\Development\PDI - Kettle\weather-darksky\san-salvador-forecast.json</name>
  890. <filemask/>
  891. <exclude_filemask/>
  892. <file_required>N</file_required>
  893. <include_subfolders>N</include_subfolders>
  894. </file>
  895. <fields>
  896. <field>
  897. <name>latitude</name>
  898. <path>$.latitude</path>
  899. <type>Number</type>
  900. <format/>
  901. <currency/>
  902. <decimal/>
  903. <group/>
  904. <length>-1</length>
  905. <precision>-1</precision>
  906. <trim_type>none</trim_type>
  907. <repeat>N</repeat>
  908. </field>
  909. <field>
  910. <name>longitude</name>
  911. <path>$.longitude</path>
  912. <type>Number</type>
  913. <format/>
  914. <currency/>
  915. <decimal/>
  916. <group/>
  917. <length>-1</length>
  918. <precision>-1</precision>
  919. <trim_type>none</trim_type>
  920. <repeat>N</repeat>
  921. </field>
  922. <field>
  923. <name>hourly</name>
  924. <path>$.hourly</path>
  925. <type>String</type>
  926. <format/>
  927. <currency/>
  928. <decimal/>
  929. <group/>
  930. <length>-1</length>
  931. <precision>-1</precision>
  932. <trim_type>none</trim_type>
  933. <repeat>N</repeat>
  934. </field>
  935. </fields>
  936. <limit>0</limit>
  937. <IsInFields>Y</IsInFields>
  938. <IsAFile>N</IsAFile>
  939. <valueField>result_json</valueField>
  940. <shortFileFieldName/>
  941. <pathFieldName/>
  942. <hiddenFieldName/>
  943. <lastModificationTimeFieldName/>
  944. <uriNameFieldName/>
  945. <rootUriNameFieldName/>
  946. <extensionFieldName/>
  947. <sizeFieldName/>
  948. <cluster_schema/>
  949. <remotesteps>
  950. <input>
  951. </input>
  952. <output>
  953. </output>
  954. </remotesteps>
  955. <GUI>
  956. <xloc>496</xloc>
  957. <yloc>128</yloc>
  958. <draw>Y</draw>
  959. </GUI>
  960. </step>
  961. <step>
  962. <name>Modified Java Script Value</name>
  963. <type>ScriptValueMod</type>
  964. <description/>
  965. <distribute>Y</distribute>
  966. <custom_distribution/>
  967. <copies>1</copies>
  968. <partitioning>
  969. <method>none</method>
  970. <schema_name/>
  971. </partitioning>
  972. <compatible>Y</compatible>
  973. <optimizationLevel>9</optimizationLevel>
  974. <jsScripts>
  975. <jsScript>
  976. <jsScript_type>0</jsScript_type>
  977. <jsScript_name>Script 1</jsScript_name>
  978. <jsScript_script>//Script here
  979. var time_hmi = new Date(time*1000);
  980. var fecha = new Date();
  981. var fecha_mañana = truncDate(dateAdd(fecha, "d", 1),3);
  982. var fecha_pasado = truncDate(dateAdd(fecha, "d", 2),3);
  983. //var ciudad = "San Salvador";
  984. //var pais = "El Salvador";</jsScript_script>
  985. </jsScript>
  986. <jsScript>
  987. <jsScript_type>-1</jsScript_type>
  988. <jsScript_name>dateAdd_Sample</jsScript_name>
  989. <jsScript_script>// Add's the given number to the given date Value.
  990. //
  991. // Usage:
  992. // dateAdd(var,var,var);
  993. // 1: Date - The Variable with the Date.
  994. // 2: String - The Type which represents the value
  995. // to add.
  996. // y - Years
  997. // m - Months
  998. // d - Days
  999. // w - Weeks
  1000. // wd - Workingdays
  1001. // hh - Hours
  1002. // mi - Minutes
  1003. // ss - Seconds
  1004. // 3: Numeric - The Value to add.
  1005. //
  1006. // 2006-11-15
  1007. //
  1008. var d1 = new Date();
  1009. Alert(dateAdd(d1, "y", 1));
  1010. Alert(dateAdd(d1, "m", 4));
  1011. Alert(dateAdd(d1, "d", 5));
  1012. Alert(dateAdd(d1, "wd", 5));</jsScript_script>
  1013. </jsScript>
  1014. <jsScript>
  1015. <jsScript_type>-1</jsScript_type>
  1016. <jsScript_name>truncDate_Sample</jsScript_name>
  1017. <jsScript_script>
  1018. //
  1019. // Usage:
  1020. // truncDate(var1, var2);
  1021. //
  1022. // 1: a date - the date-time to be truncated
  1023. // 2: the requested precision:
  1024. // - 5 : truncate MONTHS (set to 1)
  1025. // - 4 : truncate DAYS (set to 1)
  1026. // - 3 : truncate HOURS (set to 0)
  1027. // - 2 : truncate MINUTES (set to 0)
  1028. // - 1 : truncate SECONDS (set to 0)
  1029. // - 0 : truncate MILLISECONDS (set to 0)
  1030. //
  1031. // 2008-02-29
  1032. //
  1033. var dateTime = new Date();
  1034. var date0 = truncDate(dateTime, 0); // gives back today at yyyy/MM/dd HH:mm:ss.000
  1035. var date1 = truncDate(dateTime, 1); // gives back today at yyyy/MM/dd HH:mm:00.000
  1036. var date2 = truncDate(dateTime, 2); // gives back today at yyyy/MM/dd HH:00:00.000
  1037. var date3 = truncDate(dateTime, 3); // gives back today at yyyy/MM/dd 00:00:00.000
  1038. var date4 = truncDate(dateTime, 4); // gives back today at yyyy/MM/01 00:00:00.000
  1039. var date5 = truncDate(dateTime, 5); // gives back today at yyyy/01/01 00:00:00.000
  1040. </jsScript_script>
  1041. </jsScript>
  1042. </jsScripts>
  1043. <fields>
  1044. <field>
  1045. <name>time_hmi</name>
  1046. <rename>time_hmi</rename>
  1047. <type>Date</type>
  1048. <length>-1</length>
  1049. <precision>-1</precision>
  1050. <replace>N</replace>
  1051. </field>
  1052. <field>
  1053. <name>fecha_mañana</name>
  1054. <rename>fecha_mañana</rename>
  1055. <type>Date</type>
  1056. <length>-1</length>
  1057. <precision>-1</precision>
  1058. <replace>N</replace>
  1059. </field>
  1060. <field>
  1061. <name>fecha_pasado</name>
  1062. <rename>fecha_pasado</rename>
  1063. <type>Date</type>
  1064. <length>-1</length>
  1065. <precision>-1</precision>
  1066. <replace>N</replace>
  1067. </field>
  1068. </fields>
  1069. <cluster_schema/>
  1070. <remotesteps>
  1071. <input>
  1072. </input>
  1073. <output>
  1074. </output>
  1075. </remotesteps>
  1076. <GUI>
  1077. <xloc>736</xloc>
  1078. <yloc>128</yloc>
  1079. <draw>Y</draw>
  1080. </GUI>
  1081. </step>
  1082. <step>
  1083. <name>REST Client</name>
  1084. <type>Rest</type>
  1085. <description/>
  1086. <distribute>Y</distribute>
  1087. <custom_distribution/>
  1088. <copies>1</copies>
  1089. <partitioning>
  1090. <method>none</method>
  1091. <schema_name/>
  1092. </partitioning>
  1093. <applicationType>JSON</applicationType>
  1094. <method>GET</method>
  1095. <url/>
  1096. <urlInField>Y</urlInField>
  1097. <dynamicMethod>N</dynamicMethod>
  1098. <methodFieldName/>
  1099. <urlField>url</urlField>
  1100. <bodyField/>
  1101. <httpLogin/>
  1102. <httpPassword>Encrypted </httpPassword>
  1103. <proxyHost/>
  1104. <proxyPort/>
  1105. <preemptive>N</preemptive>
  1106. <trustStoreFile/>
  1107. <trustStorePassword>Encrypted </trustStorePassword>
  1108. <headers>
  1109. </headers>
  1110. <parameters>
  1111. </parameters>
  1112. <matrixParameters>
  1113. </matrixParameters>
  1114. <result>
  1115. <name>result_json</name>
  1116. <code/>
  1117. <response_time/>
  1118. <response_header/>
  1119. </result>
  1120. <cluster_schema/>
  1121. <remotesteps>
  1122. <input>
  1123. </input>
  1124. <output>
  1125. </output>
  1126. </remotesteps>
  1127. <GUI>
  1128. <xloc>368</xloc>
  1129. <yloc>128</yloc>
  1130. <draw>Y</draw>
  1131. </GUI>
  1132. </step>
  1133. <step>
  1134. <name>Select values</name>
  1135. <type>SelectValues</type>
  1136. <description/>
  1137. <distribute>Y</distribute>
  1138. <custom_distribution/>
  1139. <copies>1</copies>
  1140. <partitioning>
  1141. <method>none</method>
  1142. <schema_name/>
  1143. </partitioning>
  1144. <fields>
  1145. <select_unspecified>N</select_unspecified>
  1146. <remove>
  1147. <name>time</name>
  1148. </remove>
  1149. </fields>
  1150. <cluster_schema/>
  1151. <remotesteps>
  1152. <input>
  1153. </input>
  1154. <output>
  1155. </output>
  1156. </remotesteps>
  1157. <GUI>
  1158. <xloc>880</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>PRD_ORION_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>