Integration Technologies - JDE1 (MOSC)

MOSC Banner

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()

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center