cancel
Showing results for 
Search instead for 
Did you mean: 

Java Service Task with scheduling and configuration

nicu
Champ in-the-making
Champ in-the-making
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?
4 REPLIES 4

jbarrez
Star Contributor
Star Contributor
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.

nicu
Champ in-the-making
Champ in-the-making
Thanks Joram!

How about the configuration? What would be the best way to configure the task to use certain settings like the server address or port number?

jbarrez
Star Contributor
Star Contributor
In the next release, this will be possible: http://jira.codehaus.org/browse/ACT-156

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).

nicu
Champ in-the-making
Champ in-the-making
Perfect! I can't wait to see both these features implemented.