Hello,
the following Import Action is working for one Job, but if I have a car-File with more than one JobDefinition I get an error message (attached file). What I have to Change so that the Action is working also for a bundle of JobDefinitions?
Import Action:
{ for (Java.util.Iterator it = jcsImportRuleSet.getObjects().iterator(); it.hasNext();) { Object o = (Object) it.next(); if (o instanceof JobDefinition) { JobDefinition jd = (JobDefinition) o; JobDefinition jdNeu = jd.duplicate(); jdNeu.setName(jd.getName().replace("FIG","FIW")); jdNeu.setDescription(jd.getDescription().replace("FIG";"FIW")); jdNeu.setParentApplication(jcsSession.getApplicationByName(jd.getParentApplication().getName()replace("FIG","FIW"))); } } }
Best regards
Dana Ullrich