Ana914
March 19, 2021, 5:14pm
1
Hi all,
My inputs: Say I have multiple excel reader nodes (because they’re all in different formatting);
My output: Excel writer node
What I need is that the my workflow would produce a new output when/if my inputs (which are saved in one folder X) are
created or moved or saved in the folder X and
modified in folder X
I was wondering if anyone had this experience before and made it work and what did you do for your workflows to achieve it.
Please note I’m a newbie so explaining your answers like I’m 5 yo would really help
Thank you!
iperez
March 19, 2021, 5:41pm
2
Hi @Ana914 .!!
"Please note I’m a newbie so explaining your answers like I’m 5 yo would really help "
It is always nice to work with kids
The node Wait
does what you are asking for, you can parametrize it
such that that the downstream nodes of a workflow are not executed until there is a creation/Modification/deletion of a file event. Connect the variable port of the node to the first node you want to be executed when the event occurs.
Hope that helps
1 Like
Ana914
March 20, 2021, 1:15pm
3
Hey @iperez thanks for your reply.
I’m wondering if I can do both the criteria though for an excel reader node.
Because I could put a wait node and execute the workflows upon creation of a file. Yet I can’t connect it to another Wait node with the criteria “upon modification”?
Ana914
March 20, 2021, 1:34pm
4
I also tried changing excel files in the folder with the wait node
but nothing seems to happen
iperez
March 20, 2021, 4:08pm
5
Hi. What I would do is to create another workflow that calls the corresponding workflow to be run when either of the conditions are satisfied:
wait on create or modify.knwf (18.7 KB)
4 Likes
All this might be a good job for the KNIME server.
Having said that I created a small example where a system waits for a changing file and of the file has changed does something.
@USCHUKN1ME I tried to build a system you might be able to expand and use.
The idea is to have a workflow that would iterate a number of times (v_number_of_intervals) with a set interval (of seconds) between (v_seconds_interval) them. The workflow looks for a trigger_file.csv if this file has changed from the last time the loop has run a component would be executed. If the file has not changed nothing would happen.
Admittedly not the most elegant way but you could build a small automatic execu…
2 Likes
Ana914
March 22, 2021, 9:51am
7
Thanks but I still can’t justify the server’s cost so i was looking for a work around
1 Like
Ana914
March 22, 2021, 9:51am
8
Thank you this would work
1 Like
Same here !
12.500 € is too much , only for one workflow
I have suggested a workflow that would simulate an automation and would run an check for changes. Maybe you can adapt that.
system
Closed
March 29, 2021, 3:53pm
11
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.