Quantcast
Channel: SCN : Popular Discussions - SAP Business Process Automation by Redwood
Viewing all articles
Browse latest Browse all 1466

Import Action

$
0
0

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


Viewing all articles
Browse latest Browse all 1466

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>