ODI 12C Smart import with actions using SDK












0















HI I'm able to smart import Projects in ODI using SDK. but i'm unable to use the predefined method which sets actions like merge, create copy, ignore, reuse, while importing the projects.



Please help me to implement the below method,
setMatchedFCODefaultImportAction(java.lang.String pFCOObjType, int pSmartImportAction)



by using below method i'm directly importing projects.
importObjectsFromXml (fnameAndPath, ExportKey, ExportWithoutCipherData);



I want to implement above mentioned actions, please help me.
thanks










share|improve this question


















  • 1





    Gopi, You should implement first version before approaching for help. In doing so, once you fulfill the basic requirement of your solution, stack-overflow can help pitch-in with anything you missed. It is not smart to assume someone will implement all code for merge, create, copy, ignore, reuse (actions) for you, but you can explore more online if you have no idea where to start.

    – nitinr708
    Nov 16 '18 at 9:48











  • Nitin I have done my implementation, here is my code,

    – Gopi Krishna Anabham
    Nov 16 '18 at 9:53













  • github.com/Gopi1995krishna/smartImport.git

    – Gopi Krishna Anabham
    Nov 16 '18 at 9:56
















0















HI I'm able to smart import Projects in ODI using SDK. but i'm unable to use the predefined method which sets actions like merge, create copy, ignore, reuse, while importing the projects.



Please help me to implement the below method,
setMatchedFCODefaultImportAction(java.lang.String pFCOObjType, int pSmartImportAction)



by using below method i'm directly importing projects.
importObjectsFromXml (fnameAndPath, ExportKey, ExportWithoutCipherData);



I want to implement above mentioned actions, please help me.
thanks










share|improve this question


















  • 1





    Gopi, You should implement first version before approaching for help. In doing so, once you fulfill the basic requirement of your solution, stack-overflow can help pitch-in with anything you missed. It is not smart to assume someone will implement all code for merge, create, copy, ignore, reuse (actions) for you, but you can explore more online if you have no idea where to start.

    – nitinr708
    Nov 16 '18 at 9:48











  • Nitin I have done my implementation, here is my code,

    – Gopi Krishna Anabham
    Nov 16 '18 at 9:53













  • github.com/Gopi1995krishna/smartImport.git

    – Gopi Krishna Anabham
    Nov 16 '18 at 9:56














0












0








0








HI I'm able to smart import Projects in ODI using SDK. but i'm unable to use the predefined method which sets actions like merge, create copy, ignore, reuse, while importing the projects.



Please help me to implement the below method,
setMatchedFCODefaultImportAction(java.lang.String pFCOObjType, int pSmartImportAction)



by using below method i'm directly importing projects.
importObjectsFromXml (fnameAndPath, ExportKey, ExportWithoutCipherData);



I want to implement above mentioned actions, please help me.
thanks










share|improve this question














HI I'm able to smart import Projects in ODI using SDK. but i'm unable to use the predefined method which sets actions like merge, create copy, ignore, reuse, while importing the projects.



Please help me to implement the below method,
setMatchedFCODefaultImportAction(java.lang.String pFCOObjType, int pSmartImportAction)



by using below method i'm directly importing projects.
importObjectsFromXml (fnameAndPath, ExportKey, ExportWithoutCipherData);



I want to implement above mentioned actions, please help me.
thanks







oracle-data-integrator






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 16 '18 at 9:27









Gopi Krishna AnabhamGopi Krishna Anabham

11




11








  • 1





    Gopi, You should implement first version before approaching for help. In doing so, once you fulfill the basic requirement of your solution, stack-overflow can help pitch-in with anything you missed. It is not smart to assume someone will implement all code for merge, create, copy, ignore, reuse (actions) for you, but you can explore more online if you have no idea where to start.

    – nitinr708
    Nov 16 '18 at 9:48











  • Nitin I have done my implementation, here is my code,

    – Gopi Krishna Anabham
    Nov 16 '18 at 9:53













  • github.com/Gopi1995krishna/smartImport.git

    – Gopi Krishna Anabham
    Nov 16 '18 at 9:56














  • 1





    Gopi, You should implement first version before approaching for help. In doing so, once you fulfill the basic requirement of your solution, stack-overflow can help pitch-in with anything you missed. It is not smart to assume someone will implement all code for merge, create, copy, ignore, reuse (actions) for you, but you can explore more online if you have no idea where to start.

    – nitinr708
    Nov 16 '18 at 9:48











  • Nitin I have done my implementation, here is my code,

    – Gopi Krishna Anabham
    Nov 16 '18 at 9:53













  • github.com/Gopi1995krishna/smartImport.git

    – Gopi Krishna Anabham
    Nov 16 '18 at 9:56








1




1





Gopi, You should implement first version before approaching for help. In doing so, once you fulfill the basic requirement of your solution, stack-overflow can help pitch-in with anything you missed. It is not smart to assume someone will implement all code for merge, create, copy, ignore, reuse (actions) for you, but you can explore more online if you have no idea where to start.

– nitinr708
Nov 16 '18 at 9:48





Gopi, You should implement first version before approaching for help. In doing so, once you fulfill the basic requirement of your solution, stack-overflow can help pitch-in with anything you missed. It is not smart to assume someone will implement all code for merge, create, copy, ignore, reuse (actions) for you, but you can explore more online if you have no idea where to start.

– nitinr708
Nov 16 '18 at 9:48













Nitin I have done my implementation, here is my code,

– Gopi Krishna Anabham
Nov 16 '18 at 9:53







Nitin I have done my implementation, here is my code,

– Gopi Krishna Anabham
Nov 16 '18 at 9:53















github.com/Gopi1995krishna/smartImport.git

– Gopi Krishna Anabham
Nov 16 '18 at 9:56





github.com/Gopi1995krishna/smartImport.git

– Gopi Krishna Anabham
Nov 16 '18 at 9:56












1 Answer
1






active

oldest

votes


















0














Unfortunately you can not use setMatchedFCODefaultImportAction to specify the action for a specific object like a project as in your code :



smartImpServ.setMatchedFCODefaultImportAction("Dev_ODI_Project", 1);


It can only define the default action for a First Class Object i.e. for all the objects of a specific type. For instance you can set the default actions for any project as CREATE/COPY (equivalent to 1 as you used in your code):



smartImpServ.setMatchedFCODefaultImportAction(ISmartImportService.PROJECT_OBJECT_NAME, ISmartImportService.SMART_IMPORT_ACTION_CREATE_COPY);


The values you can use as the pFCOObjType parameters are all the Fields ending by _OBJECT_NAME in the ISmartImportService interface.



If you want to specify the action for a specific object, you would need to use a response file from a previous import with the importFromXml method.






share|improve this answer


























  • Hi, in ISmartImportService.PROJECT_OBJECT_NAME, is this is Project name? so can I use Dev_ODI_Project_OBJECT_NAME, where Dev_ODI_Project is name of the project

    – Gopi Krishna Anabham
    Nov 16 '18 at 11:05













  • No, as I said, you can not specify a single project. The only thing you can specify is the type of object and in this case it's a project. So it will apply the same action for all the projects. ISmartImportService.PROJECT_OBJECT_NAME is a constant defined in the interface, it is already your string. Its value is "SNP_PROJECT" as you can see on this page : docs.oracle.com/middleware/1221/odi/reference-java-api/…

    – JeromeFr
    Nov 16 '18 at 11:12











  • I just edited my answer to add an alternative using a response file. That would allow you to specify the action for each object.

    – JeromeFr
    Nov 16 '18 at 11:16











  • Thanks for the info, but still i'm in confusion. can you please give me an example of only that method or else can you please update my git code with that method, That would be great help to me.

    – Gopi Krishna Anabham
    Nov 16 '18 at 13:51











  • Which method? setMatchedFCODefaultImportAction or importFromXml ?

    – JeromeFr
    Nov 16 '18 at 13:59












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53334895%2fodi-12c-smart-import-with-actions-using-sdk%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Unfortunately you can not use setMatchedFCODefaultImportAction to specify the action for a specific object like a project as in your code :



smartImpServ.setMatchedFCODefaultImportAction("Dev_ODI_Project", 1);


It can only define the default action for a First Class Object i.e. for all the objects of a specific type. For instance you can set the default actions for any project as CREATE/COPY (equivalent to 1 as you used in your code):



smartImpServ.setMatchedFCODefaultImportAction(ISmartImportService.PROJECT_OBJECT_NAME, ISmartImportService.SMART_IMPORT_ACTION_CREATE_COPY);


The values you can use as the pFCOObjType parameters are all the Fields ending by _OBJECT_NAME in the ISmartImportService interface.



If you want to specify the action for a specific object, you would need to use a response file from a previous import with the importFromXml method.






share|improve this answer


























  • Hi, in ISmartImportService.PROJECT_OBJECT_NAME, is this is Project name? so can I use Dev_ODI_Project_OBJECT_NAME, where Dev_ODI_Project is name of the project

    – Gopi Krishna Anabham
    Nov 16 '18 at 11:05













  • No, as I said, you can not specify a single project. The only thing you can specify is the type of object and in this case it's a project. So it will apply the same action for all the projects. ISmartImportService.PROJECT_OBJECT_NAME is a constant defined in the interface, it is already your string. Its value is "SNP_PROJECT" as you can see on this page : docs.oracle.com/middleware/1221/odi/reference-java-api/…

    – JeromeFr
    Nov 16 '18 at 11:12











  • I just edited my answer to add an alternative using a response file. That would allow you to specify the action for each object.

    – JeromeFr
    Nov 16 '18 at 11:16











  • Thanks for the info, but still i'm in confusion. can you please give me an example of only that method or else can you please update my git code with that method, That would be great help to me.

    – Gopi Krishna Anabham
    Nov 16 '18 at 13:51











  • Which method? setMatchedFCODefaultImportAction or importFromXml ?

    – JeromeFr
    Nov 16 '18 at 13:59
















0














Unfortunately you can not use setMatchedFCODefaultImportAction to specify the action for a specific object like a project as in your code :



smartImpServ.setMatchedFCODefaultImportAction("Dev_ODI_Project", 1);


It can only define the default action for a First Class Object i.e. for all the objects of a specific type. For instance you can set the default actions for any project as CREATE/COPY (equivalent to 1 as you used in your code):



smartImpServ.setMatchedFCODefaultImportAction(ISmartImportService.PROJECT_OBJECT_NAME, ISmartImportService.SMART_IMPORT_ACTION_CREATE_COPY);


The values you can use as the pFCOObjType parameters are all the Fields ending by _OBJECT_NAME in the ISmartImportService interface.



If you want to specify the action for a specific object, you would need to use a response file from a previous import with the importFromXml method.






share|improve this answer


























  • Hi, in ISmartImportService.PROJECT_OBJECT_NAME, is this is Project name? so can I use Dev_ODI_Project_OBJECT_NAME, where Dev_ODI_Project is name of the project

    – Gopi Krishna Anabham
    Nov 16 '18 at 11:05













  • No, as I said, you can not specify a single project. The only thing you can specify is the type of object and in this case it's a project. So it will apply the same action for all the projects. ISmartImportService.PROJECT_OBJECT_NAME is a constant defined in the interface, it is already your string. Its value is "SNP_PROJECT" as you can see on this page : docs.oracle.com/middleware/1221/odi/reference-java-api/…

    – JeromeFr
    Nov 16 '18 at 11:12











  • I just edited my answer to add an alternative using a response file. That would allow you to specify the action for each object.

    – JeromeFr
    Nov 16 '18 at 11:16











  • Thanks for the info, but still i'm in confusion. can you please give me an example of only that method or else can you please update my git code with that method, That would be great help to me.

    – Gopi Krishna Anabham
    Nov 16 '18 at 13:51











  • Which method? setMatchedFCODefaultImportAction or importFromXml ?

    – JeromeFr
    Nov 16 '18 at 13:59














0












0








0







Unfortunately you can not use setMatchedFCODefaultImportAction to specify the action for a specific object like a project as in your code :



smartImpServ.setMatchedFCODefaultImportAction("Dev_ODI_Project", 1);


It can only define the default action for a First Class Object i.e. for all the objects of a specific type. For instance you can set the default actions for any project as CREATE/COPY (equivalent to 1 as you used in your code):



smartImpServ.setMatchedFCODefaultImportAction(ISmartImportService.PROJECT_OBJECT_NAME, ISmartImportService.SMART_IMPORT_ACTION_CREATE_COPY);


The values you can use as the pFCOObjType parameters are all the Fields ending by _OBJECT_NAME in the ISmartImportService interface.



If you want to specify the action for a specific object, you would need to use a response file from a previous import with the importFromXml method.






share|improve this answer















Unfortunately you can not use setMatchedFCODefaultImportAction to specify the action for a specific object like a project as in your code :



smartImpServ.setMatchedFCODefaultImportAction("Dev_ODI_Project", 1);


It can only define the default action for a First Class Object i.e. for all the objects of a specific type. For instance you can set the default actions for any project as CREATE/COPY (equivalent to 1 as you used in your code):



smartImpServ.setMatchedFCODefaultImportAction(ISmartImportService.PROJECT_OBJECT_NAME, ISmartImportService.SMART_IMPORT_ACTION_CREATE_COPY);


The values you can use as the pFCOObjType parameters are all the Fields ending by _OBJECT_NAME in the ISmartImportService interface.



If you want to specify the action for a specific object, you would need to use a response file from a previous import with the importFromXml method.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 16 '18 at 14:45

























answered Nov 16 '18 at 10:53









JeromeFrJeromeFr

96311118




96311118













  • Hi, in ISmartImportService.PROJECT_OBJECT_NAME, is this is Project name? so can I use Dev_ODI_Project_OBJECT_NAME, where Dev_ODI_Project is name of the project

    – Gopi Krishna Anabham
    Nov 16 '18 at 11:05













  • No, as I said, you can not specify a single project. The only thing you can specify is the type of object and in this case it's a project. So it will apply the same action for all the projects. ISmartImportService.PROJECT_OBJECT_NAME is a constant defined in the interface, it is already your string. Its value is "SNP_PROJECT" as you can see on this page : docs.oracle.com/middleware/1221/odi/reference-java-api/…

    – JeromeFr
    Nov 16 '18 at 11:12











  • I just edited my answer to add an alternative using a response file. That would allow you to specify the action for each object.

    – JeromeFr
    Nov 16 '18 at 11:16











  • Thanks for the info, but still i'm in confusion. can you please give me an example of only that method or else can you please update my git code with that method, That would be great help to me.

    – Gopi Krishna Anabham
    Nov 16 '18 at 13:51











  • Which method? setMatchedFCODefaultImportAction or importFromXml ?

    – JeromeFr
    Nov 16 '18 at 13:59



















  • Hi, in ISmartImportService.PROJECT_OBJECT_NAME, is this is Project name? so can I use Dev_ODI_Project_OBJECT_NAME, where Dev_ODI_Project is name of the project

    – Gopi Krishna Anabham
    Nov 16 '18 at 11:05













  • No, as I said, you can not specify a single project. The only thing you can specify is the type of object and in this case it's a project. So it will apply the same action for all the projects. ISmartImportService.PROJECT_OBJECT_NAME is a constant defined in the interface, it is already your string. Its value is "SNP_PROJECT" as you can see on this page : docs.oracle.com/middleware/1221/odi/reference-java-api/…

    – JeromeFr
    Nov 16 '18 at 11:12











  • I just edited my answer to add an alternative using a response file. That would allow you to specify the action for each object.

    – JeromeFr
    Nov 16 '18 at 11:16











  • Thanks for the info, but still i'm in confusion. can you please give me an example of only that method or else can you please update my git code with that method, That would be great help to me.

    – Gopi Krishna Anabham
    Nov 16 '18 at 13:51











  • Which method? setMatchedFCODefaultImportAction or importFromXml ?

    – JeromeFr
    Nov 16 '18 at 13:59

















Hi, in ISmartImportService.PROJECT_OBJECT_NAME, is this is Project name? so can I use Dev_ODI_Project_OBJECT_NAME, where Dev_ODI_Project is name of the project

– Gopi Krishna Anabham
Nov 16 '18 at 11:05







Hi, in ISmartImportService.PROJECT_OBJECT_NAME, is this is Project name? so can I use Dev_ODI_Project_OBJECT_NAME, where Dev_ODI_Project is name of the project

– Gopi Krishna Anabham
Nov 16 '18 at 11:05















No, as I said, you can not specify a single project. The only thing you can specify is the type of object and in this case it's a project. So it will apply the same action for all the projects. ISmartImportService.PROJECT_OBJECT_NAME is a constant defined in the interface, it is already your string. Its value is "SNP_PROJECT" as you can see on this page : docs.oracle.com/middleware/1221/odi/reference-java-api/…

– JeromeFr
Nov 16 '18 at 11:12





No, as I said, you can not specify a single project. The only thing you can specify is the type of object and in this case it's a project. So it will apply the same action for all the projects. ISmartImportService.PROJECT_OBJECT_NAME is a constant defined in the interface, it is already your string. Its value is "SNP_PROJECT" as you can see on this page : docs.oracle.com/middleware/1221/odi/reference-java-api/…

– JeromeFr
Nov 16 '18 at 11:12













I just edited my answer to add an alternative using a response file. That would allow you to specify the action for each object.

– JeromeFr
Nov 16 '18 at 11:16





I just edited my answer to add an alternative using a response file. That would allow you to specify the action for each object.

– JeromeFr
Nov 16 '18 at 11:16













Thanks for the info, but still i'm in confusion. can you please give me an example of only that method or else can you please update my git code with that method, That would be great help to me.

– Gopi Krishna Anabham
Nov 16 '18 at 13:51





Thanks for the info, but still i'm in confusion. can you please give me an example of only that method or else can you please update my git code with that method, That would be great help to me.

– Gopi Krishna Anabham
Nov 16 '18 at 13:51













Which method? setMatchedFCODefaultImportAction or importFromXml ?

– JeromeFr
Nov 16 '18 at 13:59





Which method? setMatchedFCODefaultImportAction or importFromXml ?

– JeromeFr
Nov 16 '18 at 13:59




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53334895%2fodi-12c-smart-import-with-actions-using-sdk%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Bressuire

Vorschmack

Quarantine