cancel
Showing results for 
Search instead for 
Did you mean: 

Scheduled/triggered actions in Share

michalwrobel
Champ on-the-rise
Champ on-the-rise
Is it possible (and how?) to perform scheduled/triggered Java based actions in share? I would like to perform database synchronization with external system every N-minutes, and on action: entering a specified site.

I'm a beginner developer in Alfresco, I don't know wheter I placed this topic in the right place on the forum, maybe such actions are purely Alfresco Repository related?

Any help will be appreciated Smiley Happy
3 REPLIES 3

jpotts
World-Class Innovator
World-Class Innovator
Share is just a webapp that sits on top of the Alfresco repository. So, if you set up something that happens on the repository tier, like a rule action or a scheduled action, it will work regardless of how you are managing the content (Share vs. Explorer vs. some other custom UI).

It sounds like you want to wake up on a schedule and run some code. Take a look at the wiki page on Scheduled Actions to learn more about how to do that.

http://wiki.alfresco.com/wiki/Scheduled_Actions

Jeff

michalwrobel
Champ on-the-rise
Champ on-the-rise
Thanks for clearing my mind, I hope this article will help me

michalwrobel
Champ on-the-rise
Champ on-the-rise
It sounds like you want to wake up on a schedule and run some code. Take a look at the wiki page on Scheduled Actions to learn more about how to do that.

But what if I would like to run code which is not related to any existing node?
e.g.
I want to periodically check external database and sometimes create completely new nodes. Should I use some kind of 'mock node' just to inject my code into Action, or there is more proper way to execute Java code not related to existing node by schedule?

As far as I understood the article actions are designed to modify concrete nodes which is not the case here..