Interface is not changed after Groovy Script executed successfully

Hi all

I tried to add a filter to interface (temporary) source.

There is only one set of data (the default) and the source data store has alias T001. This data store is also associated with other data warehouse.

The script seems to be run successfully, but I don't see any change in the Interface. I've included a few prints debug to check.

Am I missing something?

Thank you

My groovy script output is the following:

Found SAP_FDM_GLBALANCES_NEW

Found GL_BALANCES_NEW_1_CUSTOM

Found by default

Helper Created

Fact

Script was released.

Groovy script

Created by Studio ODI

package odi_sdk;

Utils

to import java.util.Collection;

Import java.util.Iterator;

Basic libraries

import oracle.odi.core.OdiInstance

import oracle.odi.core.config.OdiInstanceConfig

import oracle.odi.core.config.MasterRepositoryDbInfo

import oracle.odi.core.config.WorkRepositoryDbInfo

import oracle.odi.core.security.Authentication

import oracle.odi.core.config.PoolingAttributes

Context operators:

import oracle.odi.domain.topology.OdiContext

import oracle.odi.domain.topology.finder.IOdiContextFinder

Folder operators:

import oracle.odi.domain.project.OdiFolder

import oracle.odi.domain.project.finder.IOdiFolderFinder

User interface:

import oracle.odi.domain.project.OdiInterface

import oracle.odi.domain.project.finder.IOdiInterfaceFinder

Project managers:

import oracle.odi.domain.project.OdiProject

import oracle.odi.domain.project.finder.IOdiProjectFinder

Assistants of the interface:

import oracle.odi.interfaces.interactive.support.InteractiveInterfaceHelperWithActions

import oracle.odi.interfaces.interactive.support.targetkeychoosers.TargetKeyChooserPrimaryKey

import oracle.odi.interfaces.interactive.support.mapping.automap.AutoMappingComputerLazy

import oracle.odi.interfaces.interactive.support.mapping.matchpolicy.MappingMatchPolicyLazy

import oracle.odi.interfaces.interactive.support.actions.InterfaceActionSetTargetDataStore

import oracle.odi.interfaces.interactive.support.aliascomputers.AliasComputerDoubleChecker

import oracle.odi.interfaces.interactive.support.clauseimporters.ClauseImporterLazy

import oracle.odi.interfaces.interactive.support.actions.InterfaceActionAddSourceDataStore

Import oracle.odi.interfaces.interactive.support.actions.InterfaceActionOnTargetDataStoreComputeAutoMapping;

import oracle.odi.interfaces.interactive.support.actions.InterfaceActionAddFilter

Operators of transaction:

Import oracle.odi.core.persistence.transaction.support.DefaultTransactionDefinition;

Import oracle.odi.core.persistence.transaction.ITransactionDefinition;

Import oracle.odi.core.persistence.transaction.ITransactionManager;

Import oracle.odi.core.persistence.transaction.ITransactionStatus;

Data set:

Import oracle.odi.domain.project.interfaces.DataSet;

Data Bank:

Import oracle.odi.domain.model.OdiDataStore;

Import oracle.odi.domain.model.finder.IOdiDataStoreFinder;

Variables

def Url = "jdbc:oracle:thin:@EPM11123:1521:FUSION";

def Driver = "oracle.jdbc.OracleDriver";

def Master_User = "XXXXX";

def Master_Pass = "XXXXX";

def WorkRep = "XXXXX";

def Odi_User = 'SUPERVISOR ';

def Odi_Pass = "SUNOPSIS ';

def Project_Code = "AIF_SAP";

def folder_name = "SAP_FDM_GLBALANCES_NEW";

def Interface_Name = "GL_BALANCES_NEW_1_CUSTOM."

def file

INTF def

def ds

filter def = new String ("T001. BUKRS = 1000 ")

Connection

def masterInfo = new MasterRepositoryDbInfo (Url, driver, Master_User, Master_Pass.toCharArray (), PoolingAttributes()) new;

def workInfo = new WorkRepositoryDbInfo (WorkRep, new PoolingAttributes());

def odiInstance is OdiInstance.createInstance (new OdiInstanceConfig (masterInfo, workInfo));.

def auth = odiInstance.getSecurityManager () .createAuthentication (Odi_User, Odi_Pass.toCharArray ());

odiInstance.getSecurityManager () .setCurrentThreadAuthentication (auth);

def trans = odiInstance.getTransactionManager () .getTransaction (new DefaultTransactionDefinition());

Find the folder

Fold collection = (odiInstance.getTransactionalEntityManager () .getFinder (OdiFolder.class)) (Folder_Name, Project_Code) .findByName (IOdiFolderFinder);

for (Iterator < OdiFolder > it = fold.iterator (); it.hasNext ();) {

record = it.next ((OdiFolder));

println ("Found" + folder.getName ())

}

Find Interface

Collection intfcol = ((IOdiInterfaceFinder) odiInstance.getTransactionalEntityManager () .getFinder (OdiInterface.class)) .findByName (Interface_Name, Project_Code);

for (Iterator < OdiInterface > it = intfcol.iterator (); it.hasNext ();) {

INTF = it.next ((OdiInterface));

println ("Found" + intf.getName ())

}

Get the Dataset

DS = intf.getDataSets () .get (0) (DataSet);

println ("Found" + ds.getName ())

Create support

def = new InteractiveInterfaceHelperWithActions helper (intf, odiInstance, odiInstance.getTransactionalEntityManager ());

println ('creation of assistance')

Add the filter

helper.performAction (new InterfaceActionAddFilter (ds, filter, OdiInterface.ExecutionLocation.SOURCE));

println ("Done")

I don't see you commit the transaction. This is probably the reason that the changes do not come.

Chantal

http://dwteam.in

Tags: Business Intelligence

Similar Questions

  • Disk space free (compress old files) does not change after you run Disk Cleanup.

    Original title: win. XP disk cleanup

    Win. XP: Free Disk Space (compress old files) does not change after you run Disk Cleanup.  Confused.

    Thank you. VC

    Compress your files, your computer will slow down a lot. I recommend that you don't try this.

  • Windows 7 splash screen will not change after the vista update

    After updating vista 32 bit to windows 7 32 bits, the splash screen will not change and he showed the vista boot. I read a lot of forum and the web page, but this solution:

    «.. . the dummies and bad start screen for Windows 7 is due to the locale entry in the startup folder, which could not be set when editing or rebuilding the BCD. When the locale is not found, Windows boot loader doesn't know what local startup folder to look for the animated bootscreen. Thus, in order to fix the boot screen so that the splash screen can be re-established, restored or reset to original animated Windows 7 boot screen, just run one of the following commands at the prompt with administrator rights:

    bcdedit/set {current} settings regional en-US

    or

    BCDboot % WinDir % / l en

    Change the US to the language version of Windows 7 installed, as ja - JP, en - us, es - ARE, pt - BR, zh - CN, zh - TW, fr - FR, fi - FI and etc.

    Restart the computer after running the command to see the new boot UI (user interface) be used again. To check if the locale has been entered properly, just run the bceedit command in the command prompt that is running as an administrator... »

    not solved my problem and also know for many users... after updating vista in windows 7 splash screen stay the same...

    Thanks for your help
    Hispanico hispanico

    Hi hispanico,

    Thank you for visiting Microsoft Answers.

    I suggest you do a repair from WinRE (Windows Recovery Environment) system using a Windows 7 installation disc. Follow these steps:

    1. turn on your computer, insert the Windows installation DVD, and then restart your computer.

    2. Press any key when prompted to do so and follow the instructions that appear.

    3. when the Windows Installer page, click repair your computer to access system recovery options.

    4. follow the instructions.

    Please visit these links for more information on the Startup Repair:

    1. http://windows.microsoft.com/en-us/windows7/Startup-Repair-frequently-asked-questions

    2. http://windows.microsoft.com/en-US/windows7/What-are-the-system-recovery-options-in-Windows-7

    Kind regards
    Amal-Microsoft Support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • My your whatsapp will not change after update

    I'm back changing my tone whatsapp after the update, but it will not change back

    Greetings, cazrose. Thank you for the communities of Apple Support!

    I see that WhatsApp is not allowing you to change his ring back to what it was after upgrade your iPhone to iOS 10 6s. I'll be happy to help you!

    How can I change my ringtone for WhatsApp? -Follow the instructions of the support that I have found on the site of WhatsApp.

    Have a great day!

  • How to trigger the Validation of batch after Action Script executed?

    Hello

    I have several validations that I need to put in the batch. I note that postings are triggered after the script of my action. What Miss me? Validations are assigned to the node and the hierarchy of the types.

    Validations do not pull so who runs the scripts of action via the batch client or web client.

    Appreciate all the help I can get,

    Sonny

    Then validations in real time are your option, or simply make the existing both.

  • Flag value does not change after the SCD TYPE1 column update

    Hello

    I had scd type3, type2 successfully.

    I'm trying to implement the type 1 scd.

    For this, I change slow dimension & ckm oracle the oracle select ikm.

    the source and target tables are the following. for the type 1 scd, I chose scd behavior as existing lines updated on behalf of the emp, sal columns.

    Start timestamp to join date and the current flag to flag column.

    first ename is smith when empno is 7369.

    I've updated ename

    Update scdtype1_source set ENAME = 'AA' where EMPNO = 7369

    After running, I don't have to change the flag o to 1 in the target table.

    SCD type1 mainly used for replaces old values., but I add flag column in the target table for easy identification. () column in which I updated)

    I have not any change in the flag.

    Please help me,

    Thnaks in advance,

    A.Kavya

    err11.jpg

    Hello

    I'm not sure what you're trying to do will work. In the case of Type 1 SCD are you still using the dimension of change slow ikm oracle? The flag is updated to 0 in the case of CDs because of the code in step 2 "' Historize old rows where CPCs flag is set to '0'.» In your case, that no new record is added in the case of an update so the IKM does not change the flag.

    I'm not sure of your requirement either. You say you want to identify the column in which you have updated. How is an indicator will tell you what the column value has been changed? Maybe you want to know which line you have updated? If this is the case and lets say you set the flag to 1 in case of update what happens when another updated same record?

    I would suggest you add an updated time stamp column to your table and set of sysdate but in properties check only the update and will not insert. What that would do is update your record, it will fill the current date and time so that you can identify that this record has been updated.

    If you want to always go for the flag, then follow the same approach but in your mapping, change the value of the flag to 1 instead of 0 and new check only the update box (uncheck the box insert). In your create table statement the default value of this option to 0. So when the new line is inserted database is automatically assigned the flag to 0 and where there is an update, ODI it will change to 1.

    Thank you

    Ajay

  • Is not changed after the model download

    Sometimes it works but right now does not work.

    After I have chnaged the model, transfer it with dependent files (CSS), but on the web, it has not changed.

    But on the files in Dreamweaver has changed... I'm here doing wroing... Help

    Thanks for reading

    Models don't do anything on the side server. You need to download individual pages on your server.

    Hit refresh in your browser (F5 or Ctrl + R) to see the changes.

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB
    www.Alt-Web.blogspot.com

  • Link color does not change after you click in Firefox for Android.

    Why the link I click does not change its color in Firefox for Android from blue to purple?

    Depends on the specificity of the site you click on links on.

  • Capacity of the disc does not change after resizing

    Hi all

    I had developed the disc hard a virtual computer and, unfortunately, the capacity of the disk in the infrastructure client does not change for my VM.

    Is there a way to fix this? I want real numbers.

    Thank you very much for your help!

    Johnny

    Yes, SSH into the host and the order number.

  • Application front end error after importing the script executed successfully in R12

    Hello
    I got an exception in the environment of R12.
    I developed a simple page of the OPS and deployed in apps to import the script runs successfully.
    but when I open this page at the Front end will give an exception.

    It's
    Details of the exception.
    oracle.apps.fnd.framework.OAException: could not load application module 'tflsm.oracle.apps.po.per.server.TflsmAM '.


    # # 0 in detail
    Houston-30003: the application pool (cph-oadb - tst22.dk.flsmidth.netTST221543tflsm.oracle.apps.po.per.server.TflsmAM) failed at the checkout a module of application because of the following exception:
    oracle.jbo.JboException: Houston-29000: Unexpected exception caught: oracle.jbo.JboException, msg = Houston-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg = Houston-25002: type tflsm.oracle.apps.po.per.server.TflsmAM ApplicationModule definition not found
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)



    # # 0 in detail
    oracle.jbo.JboException: Houston-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg = Houston-25002: type tflsm.oracle.apps.po.per.server.TflsmAM ApplicationModule definition not found
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)


    # # 0 in detail
    oracle.jbo.NoDefException: Houston-25002: type tflsm.oracle.apps.po.per.server.TflsmAM ApplicationModule definition not found
    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:441)


    Houston-30003: the application pool (cph-oadb - tst22.dk.flsmidth.netTST221543tflsm.oracle.apps.po.per.server.TflsmAM) failed at the checkout a module of application because of the following exception:
    oracle.jbo.JboException: Houston-29000: Unexpected exception caught: oracle.jbo.JboException, msg = Houston-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg = Houston-25002: type tflsm.oracle.apps.po.per.server.TflsmAM ApplicationModule definition not found
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)


    # # 0 in detail
    oracle.jbo.JboException: Houston-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg = Houston-25002: type tflsm.oracle.apps.po.per.server.TflsmAM ApplicationModule definition not found
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)


    # # 0 in detail
    oracle.jbo.NoDefException: Houston-25002: type tflsm.oracle.apps.po.per.server.TflsmAM ApplicationModule definition not found
    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:441)


    I will check all the class files and the Application Module below top xml files, are all there in the top server (less)
    / U02/TST22/Apps/apps_st/COMN/java/classes/xxfls

    but I got the exception.

    is there a different structure in R12.
    i.Ein the/u02/TST22/apps/apps_st/comn/java/classes/xxfls top of the page from the server (here my class all files in xml files and binary mode in ASCII mode)
    Only the CLASS files are needed or the XML files are also needed. (I'm moving all CLASS and XML files)

    could you please help me on this.

    Thank you, regards,
    Muthu

    Hello

    -In the same way it is you are oracle also... ?

    / U02/TST22/Apps/apps_st/COMN/java/classes/xxfls

    Concerning
    Meher Irk

  • URL is not change after successful authenticate with ISE 1.1.1

    Hello

    I have install Cisco Identity Service Engine (1.1.1) with Wireless LAN Controller (7.2.110)

    Everything is complete, unless the redirect URL. My customer comments can join the SSID of comments and also can authenticate to ISE.

    But after they success to authenticate with ISE, the URL in the browser does not alter the pre - configure. There still be something like https://ise-ip:8443/guestportal/redir.html . Anyway the content in the browser is replaced by the URL that is configured as http://www.google.com/

    How can I do with this cause of situation that everything works well, but only the URL of the browser that is not a change to the sits one.

    Thank you

    Mathias

    Hello

    See if this thread will help, what you can do to work around the problem, is to redirect all authentications to a single Web page.

    https://supportforums.Cisco.com/message/3664154#3664154

    Thank you

    Tarik Admani
    * Please note the useful messages *.

  • Follow links do not change after you have visited... out no grizzled.

    In the past few days I noticed that when I click on a link on my regular web pages, the links do not appear as having been followed.

    Have you checked the history settings?

    Make sure that you are not Firefox running in permanent private browsing mode.

    • Tools > Options > privacy, choose the setting Firefox will: use the custom settings for the story of
    • Uncheck the box: [] "always use the navigation mode private.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance/themes).

  • Why the codes would not change after I saved and my site shows different display than dreamweaver?

    I changed the banner images. It was modified in dreamweaver, but browsers of the source of the page shows the old image. I save after I edited the new codes. Thank you

    You have downloaded the new images on the server?

  • HP Envy 7640: Receives the message "print status interface is not responding" after upgrade to windows 10

    After the upgrade to windows 10 I have to manually delete each message in the queue.  I can print one message and then I have to go into devices and printers and delete this message before I can print another.  I have a wireless internet connection.  I checked the print spooler and it is set to automatic.

    It is an addition to this post:

    Later, after downloading the latest version of the software and reinstall the printer, the problem has been corrected.

    Hi, uninstall the printer software and download the installation software for free using this linkHP.

  • HP ENVY 5640: claim for a previously owned HP ENVY 564 new code does not change after the disconnection from the WiFi?

    my printer used, I cannot set up an instant with HP ink account as the claim code is already associated with another account. After unplugging my hub and reboot / reconnect, a charge code showed on my touch screen but it says already with another account? Someone at - it suggestions?

    @itsatoucher

    See the following topics:

    Connected HP - Instant ink

    If necessary, call people cloud Support at the number indicated on the web page.

    When you see a post that will help you,

    Who inspires you, gives a cool idea,

    Or you learn something new.

    Click the 'Thumbs Up' on this post.

    Fixed / responded? Click this post accept as Solution to help others find answers.

Maybe you are looking for

  • Administrator password BIOS HP

    Hello After three attemtps to enter the BIOS administrator password, I get the following code: Spoiler (Highlight to read)     84799485 Help, please.

  • Call - And - Play

    Hello...When some one call me and I will not answer, which I can leave the calling window without rejecting the call?

  • ePrint record new user and the issues of access to Web Services

    In June, I registered the HP printer. Then, I went on the eprint site and registered an e-mail address there. After we have chaged the name of my laptop, the printer recognizes the laptop more (Macbook pro). After having tried everything, reset us th

  • QNXWebView changes / broken in PB 1.0.6.2390 / AIR SDK 1.1

    I've updated my PlayBook OS device to: 1.0.6.2390 and all seemed ok, but I noticed a few apps I have who use the QNXWebView did not work (the display of web pages simply does not load). So I have now 2 concerns: What has changed (for example what sho

  • Page content Web going edge to edge

    HelloNew to Bootstrap and feeling my way along in the dark...  I am creating a site that has an edge to header and footer, but in which all content is located centrally on the page maybe a pixel area of 1000 on the desktop (but not necessarily 'cente