execute-request.ktr 31 KB

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