ODI 12c groovy mapping execution
Hi,
Using ODI 12C and trying to execute all my mappings using groovy! Have tried to find a way to execute and run my mappings but have not succeeded yet!
Anyone knowing a way to do this on?
Code I am using looks like this:
import oracle.odi.domain.mapping.finder.IMappingFinder
import oracle.odi.domain.project.OdiProject
def tme = odiInstance.getTransactionalEntityManager() // Shortcut to transaction manager
def fm = ((IMappingFinder) tme.getFinder(Mapping.class)) // shorcut to Find Mapping
def mappingList = fm.findAll().findAll{w -> w.getProject().getCode() == 'MY_PROJECT_NAME'}
if (mappingList == null){
println "Map is null"
}
ms=mappingList.iterator()