- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Skript regelmäßig starten
Hallo Zusammen,
ich habe ein Modul entwickelt welches Seiten in der Inhalteverwalung anlegt und/oder bearbeitet.
Dieses Modul, bzw. das Script welches das Modul aufruft, würde ich gerne jede Nacht zu einer bestimmten Uhrzeit automatisiert starten lassen.
Was wäre hier das beste Vorgehen? Wie kann man so etwas realisieren?
Wir nutzen (noch) die FirstSpirit Verion: Server-Version: 5.0.425.60000
So weit ich weiß, kann man es nicht über einen Publizierungsauftrag starten, da man so keine Schreibrechte in der Inhalteverwaltung hat.
Viele Grüße
Charlotte
- Labels:
-
Developers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo Charlotte,
did you try to set a user under script properties?
We create a special user, and this user own all schedul script.
ciao,
Antonio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo,
yes I set for "Own connection" the User "Admin".
I attached the screen of the action log file.
Now I changed it and set a special "technical User" from the administration group.
And I tryed this:
Connection connection = context.getConnection();
Connection adminConnection = connection.getAdminService().getConnection();
Project project = adminConnection.getProjectById(context.getProject().getId());
or this:
project = context.getProject();
But it doesn't works....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you have already a connection object..
UserService us = connection.getProjectById(context.getProject().getId()).getUserService();
or
Project project = connection.getProjectById(context.getProject().getId());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
oohh
Thank you!


- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »