Is it possible to create a process with one Java Service Task that downloads some files from an FTP server each day at 8pm? The scheduling and the connection details have to be configurable from outside the task.
I know I can write a Java Service Task to download the files but I don't know if it's possible to schedule it. I also don't know if it's possible to keep the connection details outside the task, preferably in the bpmn20.xml file.
If this is not possible now, will it be in the future?
Currently, our timer only supports timeDurations, not yet a timeCycle. Another way to implement it, would be using a timer start event, which is also not yet implemeted.
Both concepts will be implemented in the near future, though.
Currently, the best workaround I can come up with, is to store these configuration properties as process variables, and set them when you start your process (ie with the startProcessInstanceXX(string, variables) operations).