- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Method getScheduleEntry( java.lang.String ) not found
hallo developers,
In welchen Klassen befindet sich die Methode getScheduleEntry( java.lang.String)
import java.util.*;
tasklist = context.getTasks();
t = context.getTask();
s = t.getScheduleEntry();
p = s.getProject();
auftragsID="";
log = "Media Deploymend \"" + p.getName() + "\": ";
context.logInfo(log + "script started");
// Simple Parameter Checks
params = t.getParameters();
if (params == null) {
context.logError(log + " failed. Missing parameters. Required: MediaDeploymend");
return;
}
for(pa: params) {
switch(pa.getKey()) {
case "auftragsID":
auftragsID = pa.getValue();
break;
}
}
connection = context.getConnection();
scheduleEntry = connection.getAdminService().getScheduleStorage().getScheduleEntry(auftragsID);
if(scheduleEntry != null){
try{
scheduleEntryControl = scheduleEntry.execute();
context.logInfo("Schedule Entry is executed");
scheduleEntryControl.awaitTermination();
context.logInfo("Schedule Entry done");
} catch (ScheduleEntryRunningException ex){
context.logError("Error in Execution of Schedule Entry: "+ex.toString());
}
} else {
context.logError("Schedule Entry not found");
}
Gruss aus der Schweiz
- Labels:
-
Developers
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo Thomas,
die Klasse die Du nutzt ist korrekt. Bei Dir muss die auftragsID aber ein long sein.
siehe API Doc--> getScheduleEntry(long id).
Viele Grüße
Jan Tilo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo Thomas,
solche Fragen lassen sich über den Index der Javadoc einfach beantworten.
Im konkreten Fall ist das ScheduleStorage.
Viele Grüße
Christoph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo Thomas,
die Klasse die Du nutzt ist korrekt. Bei Dir muss die auftragsID aber ein long sein.
siehe API Doc--> getScheduleEntry(long id).
Viele Grüße
Jan Tilo

