{"id":1477,"date":"2010-06-21T18:58:00","date_gmt":"2010-06-22T00:58:00","guid":{"rendered":"http:\/\/odiexperts.com\/?p=1477"},"modified":"2010-06-21T18:58:00","modified_gmt":"2010-06-22T00:58:00","slug":"automated-odi-export-import-scenarios","status":"publish","type":"post","link":"http:\/\/odiexperts.com\/pt-br\/automated-odi-export-import-scenarios\/","title":{"rendered":"ODI Automatizado Importa\u00e7\u00e3o de Exporta\u00e7\u00e3o Scenarios"},"content":{"rendered":"<p>The whole main idea of this logic is to capture any created , regenerated and re process any failed scenarios while importing . Its just a simple Process to do the Export and Import of Scenarios from One Work Repository to another Work Repository with out manually doing any of the steps .<br \/>\nThe Logic \u00a0in short, works like this , a small procedure (ODI_SCEN) \u00a0captures the created ,regenerated scenarios\u00a0from the Source Work Repository\u00a0and automatically determines whether the scenarios needs to imported or not . If so , using jython and startcmd , respective scenario is exported and later at the Target Work Repository \u00a0the scenarios are imported and finally the Exported Scenarios.<\/p>\n<p><em>Presently this method is deployed to work with single Master and Multiple work repository.<\/em><\/p>\n<p>I have developed this idea keeping into mind that after the development is done , the export and import of scenario to next stage is high since lots of code fixes ,updates and issues are resolved at this stage and so scenarios are regenerated and send to the next stage and for an administrator and even developer this is lots of work.<\/p>\n<p>The below screenshot shows the big picture of the process and the are steps are as follows.<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image3.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb6.png\" border=\"0\" alt=\"image\" width=\"513\" height=\"282\" \/><\/a><\/p>\n<p>1. A table is created\u00a0 called ODI_SCEN , for my example i have created into ODI_TEMP ( my work area) which keeps history of all scenarios processed\u00a0 and even that got deleted .<\/p>\n<p>2. An ODI procedure (ODI_SCEN) is run which collects all the data required\u00a0 such what scenarios are being inserted and what\u00a0 are updated\u00a0 and what got deleted.\u00a0 The information is collected from the previous work repository table (SNP_SCEN) tables and then stored into ODI_SCEN.<\/p>\n<p>3. The variable V_REM_SCEN\u00a0 is used to calculate if there is any scenarios to be run , else end the process.<\/p>\n<p>4. V_GET_SCEN is used to retrieve the scenario name and version .<\/p>\n<p>5. Export Scen is a jython code which gets the scenario name , version and uses\u00a0 <strong>startcmd <\/strong>to export the XML from the previous(development) repository.<\/p>\n<p>6. IMPORT_SCEN\u00a0 is used to import the scen from the location where the export is stored and import in Insert_Update mode.<\/p>\n<p>7. If the above step is successful the Import Flag in ODI_SCEN is updated with SUCCESS\u00a0 else with SKIP.<\/p>\n<p>8. V_REM_SCEN is called to check if there are any other scenarios to be processed or not and the loop is processed till all the scenarios are Imported and once done\u00a0 finally SKIP_TO_FAILURE is called to mark all the skip to Failure so that these scenarios can be processed again in the next run .<\/p>\n<p>9. Finally delete all the exported scenarios.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/052410_1105_automizeodi11.png\" alt=\"\" width=\"505\" height=\"287\" \/><\/p>\n<p><span style=\"color:#ff0000;\">PROCEDURE ODI_SCEN<\/span><\/p>\n<p>The first step is to create an ODI procedure called ODI_SCEN\u00a0 and create the following options<\/p>\n<ul>\n<li>PROCESS<\/li>\n<li>SUCCESS<\/li>\n<li>SKIP<\/li>\n<li>SKIP_TO_FAILURE<\/li>\n<\/ul>\n<p>of the type \u2018 CHECK BOX \u2018 and default value as \u2018 NO\u2019<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image11.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb12.png\" border=\"0\" alt=\"image\" width=\"298\" height=\"173\" \/><\/a><\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image21.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb21.png\" border=\"0\" alt=\"image\" width=\"295\" height=\"173\" \/><\/a><\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image31.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb31.png\" border=\"0\" alt=\"image\" width=\"299\" height=\"179\" \/><\/a><\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image41.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb41.png\" border=\"0\" alt=\"image\" width=\"304\" height=\"182\" \/><\/a><\/p>\n<p>and now created the following command and in the given order and required option as shown below in detailed.<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image510.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb510.png\" border=\"0\" alt=\"image\" width=\"513\" height=\"210\" \/><\/a><\/p>\n<p>CREATE TABLE<\/p>\n<p>First step is to create a temporary table where we are going to record and analyze which scenarios to be imported and and which to skip . Please change the schema and\u00a0 table name as required .<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image610.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb610.png\" border=\"0\" alt=\"image\" width=\"364\" height=\"338\" \/><\/a><\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image710.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb710.png\" border=\"0\" alt=\"image\" width=\"244\" height=\"155\" \/><\/a><\/p>\n<pre class=\"brush:sql\">CREATE TABLE ODI_TEMP.ODI_SCEN\n (\n    ROW_ID       NUMBER(10)  DEFAULT 1,\n    SCEN_NAME    VARCHAR2(50),\n    SCEN_VERSION VARCHAR2(10),\n    SCEN_TYPE    VARCHAR2(20),\n    SCEN_INSERT_DATE DATE,\n    PROCESSED_DATE DATE,\n    IMPORT_FLAG VARCHAR(50),\n    CONSTRAINT ROW_ID_PK PRIMARY KEY (ROW_ID)\n  )<\/pre>\n<p>The SCEN_NAME stores the scenario name , SCEN_VERSION\u00a0 stores the scenario_version , SCEN_TYPE the object type such as variable\u00a0 , procedure , Interface , SCEN_INSERT_DATE\u00a0 stores the date when the scenarios gets created and PROCESSED_DATE stores the date when the scenario gets inserted into ODI_SCEN table .<br \/>\nUPDATE<\/p>\n<p>Here this query checks to see if already existing scenarios have been regenerated and if so capture them so that we can import them .<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image84.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb84.png\" border=\"0\" alt=\"image\" width=\"358\" height=\"327\" \/><\/a> <a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image91.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb91.png\" border=\"0\" alt=\"image\" width=\"304\" height=\"153\" \/><\/a><\/p>\n<pre class=\"brush:sql\">UPDATE ODI_TEMP.ODI_SCEN\nSET\n  (\n    PROCESSED_DATE,\n    SCEN_INSERT_DATE,\n    IMPORT_FLAG\n  )\n  =\n  (SELECT SYSDATE,\n    SNP_SCEN.LAST_DATE,''\n  FROM ODI_WORK.SNP_SCEN ,\n    ODI_TEMP.ODI_SCEN\n  WHERE SNP_SCEN.SCEN_NAME       =ODI_SCEN.SCEN_NAME\n  AND SNP_SCEN.SCEN_VERSION      =ODI_SCEN.SCEN_VERSION\n  AND ODI_SCEN.SCEN_INSERT_DATE != SNP_SCEN.LAST_DATE\n   )\n   WHERE (SCEN_NAME,SCEN_VERSION,ODI_SCEN.SCEN_INSERT_DATE) NOT IN\n  ( SELECT SCEN_NAME,SCEN_VERSION,SNP_SCEN.LAST_DATE FROM ODI_WORK.SNP_SCEN\n  )<\/pre>\n<p>INSERT<\/p>\n<p>Here this query checks for newly created scenarios and capture them into the table and import them accordingly<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image108.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb108.png\" border=\"0\" alt=\"image\" width=\"244\" height=\"183\" \/><\/a><\/p>\n<pre class=\"brush:sql\">DECLARE\n  V_COUNT      NUMBER(5);\n  V_MAX_ROW_ID NUMBER(5);\nBEGIN\n  SELECT COUNT(*)INTO V_COUNT\n  FROM ODI_WORK.SNP_SCEN\n  WHERE ( SCEN_NAME, SCEN_VERSION, LAST_DATE) NOT IN\n    ( SELECT SCEN_NAME , SCEN_VERSION ,SCEN_INSERT_DATE\n\tFROM ODI_TEMP.ODI_SCEN\n    );\n  SELECT CASE WHEN MAX(ROW_ID)&gt;1 THEN MAX(ROW_ID) ELSE 0 END\n\tINTO V_MAX_ROW_ID FROM ODI_TEMP.ODI_SCEN ;\n  WHILE (V_COUNT&gt;0) LOOP\n  INSERT INTO ODI_TEMP.ODI_SCEN\n  SELECT V_MAX_ROW_ID+ROWNUM,\n    SCEN_NAME ,\n    SCEN_VERSION ,\n    CASE\n      WHEN I_POP IS NOT NULL\n      THEN 'INTERFACE'\n      WHEN I_PACKAGE IS NOT NULL\n      THEN 'PACKAGE'\n      WHEN I_TRT IS NOT NULL\n      THEN 'PROCEDURE'\n      WHEN I_VAR IS NOT NULL\n      THEN 'VARIABLE'\n    END,\n    LAST_DATE,\n    SYSDATE,\n   ''\n  FROM ODI_WORK.SNP_SCEN\n  WHERE ( SCEN_NAME, SCEN_VERSION, LAST_DATE) NOT IN\n    (SELECT SCEN_NAME , SCEN_VERSION ,SCEN_INSERT_DATE\n\tFROM ODI_TEMP.ODI_SCEN) ;\n    V_COUNT := V_COUNT -1 ;\n    COMMIT;\nEND LOOP;\nEND;<\/pre>\n<p>MARK FOR DELETION<\/p>\n<p>some time few scenarios are dropped or renamed to a newer scenario\u00a0 and this way we capture\u00a0 the dropped scenarios\u00a0 and marked with deleted flag. Here there is no process to drop the scenarios already existing in the target repository , which have to carried out manually.<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image112.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb111.png\" border=\"0\" alt=\"image\" width=\"244\" height=\"167\" \/><\/a><\/p>\n<pre class=\"brush:sql\">UPDATE ODI_TEMP.ODI_SCEN SET IMPORT_FLAG='DELETED'\nWHERE\nSCEN_INSERT_DATE IS NULL AND\nPROCESSED_DATE IS NULL<\/pre>\n<p>IGNORE AUTOMATED SCEN<\/p>\n<p>This step is to ignore to capture the main scenario through which all the automated action of export and import is carried out.<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image121.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb121.png\" border=\"0\" alt=\"image\" width=\"378\" height=\"197\" \/><\/a><\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image131.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb131.png\" border=\"0\" alt=\"image\" width=\"244\" height=\"157\" \/><\/a><\/p>\n<pre class=\"brush:sql\">UPDATE ODI_TEMP.ODI_SCEN\nSET IMPORT_FLAG='DONT PROCESS'\nWHERE SCEN_NAME='AUTOMATE_ODI_SCEN'<\/pre>\n<p>MARK FOR SUCCESS<\/p>\n<p>This query is used to mark the Import_Flag to Success if the Import is successful<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image141.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb141.png\" border=\"0\" alt=\"image\" width=\"244\" height=\"159\" \/><\/a><\/p>\n<pre class=\"brush:sql\">UPDATE ODI_TEMP.ODI_SCEN\nSET IMPORT_FLAG='SUCCESS'\nWHERE ROW_ID IN\n  (SELECT ROW_ID\n  FROM ODI_TEMP.ODI_SCEN\n  WHERE TRUNC(ODI_SCEN.PROCESSED_DATE)=TRUNC(SYSDATE)\n  AND ROWNUM =1\n AND SCEN_INSERT_DATE IS NOT NULL\n  AND (IMPORT_FLAG IS NULL\n   OR IMPORT_FLAG='FAILURE')\n)<\/pre>\n<p>MARK_SKIP<\/p>\n<p>This query is used to mark the Import_Flag to SKIP if the Import is failed<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image151.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb151.png\" border=\"0\" alt=\"image\" width=\"244\" height=\"184\" \/><\/a><\/p>\n<pre class=\"brush:sql\">UPDATE ODI_TEMP.ODI_SCEN\nSET IMPORT_FLAG='SKIP'\nWHERE ROW_ID IN\n  (SELECT ROW_ID\n  FROM ODI_TEMP.ODI_SCEN\n  WHERE TRUNC(ODI_SCEN.PROCESSED_DATE)=TRUNC(SYSDATE)\n  AND ROWNUM =1\n  AND SCEN_INSERT_DATE IS NOT NULL\n  AND (IMPORT_FLAG IS NULL OR IMPORT_FLAG='FAILURE')\n)<\/pre>\n<p>SKIP_TO_FAILURE<\/p>\n<p>This query update all the skipped scenarios import flag to failure ,reason being that since apart being null i am also reprocessing failed scenarios , if in the above step i use import flag as failure it will keep on processing the same failed record\u00a0 and it goes into an infinite loop .<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image161.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb161.png\" border=\"0\" alt=\"image\" width=\"244\" height=\"182\" \/><\/a><\/p>\n<pre class=\"brush:sql\">UPDATE ODI_TEMP.ODI_SCEN\nSET FLAG='FAILURE'\nWHERE FLAG='SKIP'<\/pre>\n<p>V_REM_SCEN<\/p>\n<p>this query is used to check for the remaining number of records to be processed.<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image171.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb171.png\" border=\"0\" alt=\"image\" width=\"405\" height=\"215\" \/><\/a><\/p>\n<pre class=\"brush:sql\">SELECT COUNT(*)\nFROM ODI_TEMP.ODI_SCEN\nWHERE TRUNC(SYSDATE)  =TRUNC(ODI_SCEN.PROCESSED_DATE)\nAND SCEN_INSERT_DATE IS NOT NULL\nAND (IMPORT_FLAG     IS NULL\nOR IMPORT_FLAG        ='FAILURE')<\/pre>\n<p>V_GET_SCEN<\/p>\n<p>this query is used to retrieve the scenario name and other detail so we can Export and Import scenarios<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image181.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb181.png\" border=\"0\" alt=\"image\" width=\"350\" height=\"204\" \/><\/a><\/p>\n<pre class=\"brush:sql\">SELECT 'SCEN_'||SCEN_NAME||SCEN_VERSION||'.XML'\nFROM ODI_TEMP.ODI_SCEN\nWHERE TRUNC(ODI_SCEN.PROCESSED_DATE)=TRUNC(SYSDATE)\nAND ROW_ID                         IN\n  (SELECT ROW_ID\n  FROM ODI_TEMP.ODI_SCEN\n  WHERE TRUNC(ODI_SCEN.PROCESSED_DATE)=TRUNC(SYSDATE)\n  AND( IMPORT_FLAG                   IS NULL\n  OR IMPORT_FLAG                      ='FAILURE')\n  )<\/pre>\n<p>STARTCMD<\/p>\n<p>ODI Integrator tools can be called from the command or terminal using startcmd.bat or startcmd.sh , in the below step using the jython code and startcmd,\u00a0 i am exporting the scenario .The difference between the UNIX and WINDOWS is just calling the right startcmd.sh or startcmd.bat depending on the environment.<\/p>\n<p>Note : Make sure the odiparams file is updated with source Master and Work repository details and startcmd is calling the right odiparams file, else you will encounter error in this step.<\/p>\n<p>If the agent is based on\u00a0 Unix ,\u00a0 i would recommend to use the Unix drive for temporary storage of Exported scenarios as you may encounter slow performance while using local agent.<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image191.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb191.png\" border=\"0\" alt=\"image\" width=\"489\" height=\"309\" \/><\/a><\/p>\n<p>Unix<\/p>\n<p>&#8212;&#8212;&#8211;<\/p>\n<pre class=\"brush:sql\">import os\nscen='#V_GET_SCEN'\nscen_name=scen[5:-7]\nscen_ver=scen[-7:-4]\nfile_name='\/home\/oracle\/odi_scen_dmp\/#V_GET_SCEN'\nodiscen=\".\/startcmd.sh OdiExportScen -SCEN_NAME=\"+scen_name+\"\n-SCEN_VERSION=\"+scen_ver+\" -FILE_NAME=\"+file_name\nif os.system(odiscen) &lt;&gt; 0:\n    raise odiscen<\/pre>\n<p>Windows<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<pre class=\"brush:sql\">import os\nscen='#V_GET_SCEN'\nscen_name=scen[5:-7]\nscen_ver=scen[-7:-4]\nfile_name='C:\/ODI_SCEN_DMP\/#V_GET_SCEN'\nodiscen=\"startcmd.bat OdiExportScen -SCEN_NAME=\"+scen_name+\"\n-SCEN_VERSION=\"+scen_ver+\" -FILE_NAME=\"+file_name\nif os.system(odiscen) &lt;&gt; 0:\n    raise odiscen<\/pre>\n<p>Steps to create the above Process Flow.<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>Once we have build the Procedure , Variables . Now we are ready to integrate into one smart Solution.<\/p>\n<p><span style=\"color:#ff0000;\">Step 1<\/span><\/p>\n<p>Drag in the ODI_SCEN procedure and apply the Following option as shown below and name it as \u2018<span style=\"color:#ff0000;\">PROCESS_SCEN<\/span>\u2019 . Here we are going to collect the detail of list of Scenarios to be Processed.<br \/>\n<a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image201.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb201.png\" border=\"0\" alt=\"image\" width=\"319\" height=\"140\" \/><\/a><\/p>\n<p><span style=\"color:#ff0000;\">Step 2<\/span><\/p>\n<p>Drag the Variable V_REM_SCEN in refresh Mode.<\/p>\n<p><span style=\"color:#ff0000;\">Step 3<\/span><\/p>\n<p>Evaluate the variable V_REM_SCEN in evaluate mode where &gt; 0 and when true then connect to V_REM_SCEN else End the process.<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image213.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb213.png\" border=\"0\" alt=\"image\" width=\"244\" height=\"167\" \/><\/a><\/p>\n<p>Here we are checking whether we have any new or Failed scenarios to be processed else we exit the Process<\/p>\n<p><span style=\"color:#ff0000;\">Step 4<\/span><\/p>\n<p>Drag the Variable V_GET_SCEN in refresh Mode.<\/p>\n<p><span style=\"color:#ff0000;\">Step 5<\/span><\/p>\n<p>Drag and Drop the Procedure StartCMD .This ODI Procedure will go the required Work Repository and fetch the required Scenario to be imported and call\u00a0 the step name as \u2018 <span style=\"color:#ff0000;\">EXPORT_SCEN<\/span>\u2019<\/p>\n<p><span style=\"color:#ff0000;\">Step 6<\/span><\/p>\n<p>Use the <span style=\"color:#ff0000;\">OdiImportScen<\/span> and point to the File Location Specified in StartCMD and use the<span style=\"color:#ff0000;\"> Insert\/Update<\/span> Mode .<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image221.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb221.png\" border=\"0\" alt=\"image\" width=\"460\" height=\"162\" \/><\/a><\/p>\n<p><span style=\"color:#ff0000;\">Step 7<\/span><\/p>\n<p>Drag in the ODI_SCEN procedure and apply the Following option as shown below and name it SUCCESS. If the Import is successful then ODI will update the ODI_SCEN table with SUCCESS Flag.<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image231.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb231.png\" border=\"0\" alt=\"image\" width=\"353\" height=\"151\" \/><\/a><\/p>\n<p><span style=\"color:#ff0000;\">Step 8<\/span><\/p>\n<p>Drag in the ODI_SCEN procedure and apply the Following option as shown below and name it SKIP . If the OdiImportScen fails due to some reason it will update the table with the Flag Skip ,so that the particular scenario is skipped for this round of process.<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image241.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb241.png\" border=\"0\" alt=\"image\" width=\"340\" height=\"154\" \/><\/a><\/p>\n<p><span style=\"color:#ff0000;\">Step 9<\/span><\/p>\n<p>Drag the Variable V_REM_SCEN in refresh Mode.<\/p>\n<p><span style=\"color:#ff0000;\">Step 10<\/span><\/p>\n<p>Evaluate the variable V_REM_SCEN in evaluate mode where = 0 and when true then connect to SKIP_TO_FAILURE else call V_GET_SCEN<\/p>\n<p><span style=\"color:#ff0000;\">Step 11<\/span><\/p>\n<p>Drag in the ODI_SCEN procedure and apply the Following option as shown below and name it SKIP_TO_FAILURE. Here i am changing the Flag from SKIP to FAILURE so that the failed scenarios can be processed again in future run .<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image251.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb251.png\" border=\"0\" alt=\"image\" width=\"417\" height=\"186\" \/><\/a><\/p>\n<p><span style=\"color:#ff0000;\">Step 12<\/span><\/p>\n<p>Delete the Scenarios exported using <span style=\"color:#ff0000;\">OdiFileDelete<\/span><\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image261.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb261.png\" border=\"0\" alt=\"image\" width=\"471\" height=\"189\" \/><\/a><\/p>\n<p><span style=\"color:#ff0000;\">Step 13<\/span><\/p>\n<p>Finally connect the Variables and Procedure in this way.<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image3.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb6.png\" border=\"0\" alt=\"image\" width=\"513\" height=\"282\" \/><\/a><\/p>\n<p><span style=\"color:#ff0000;\">Note: You might require to use DBLINK to read Work repository table across repositories.<\/span><\/p>\n<p>Lets test the above process on various scenarios.<\/p>\n<p>First import the \u2018 AUTOMATE_ODI_SCEN \u2018<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image271.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb271.png\" border=\"0\" alt=\"image\" width=\"381\" height=\"180\" \/><\/a><\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image281.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb281.png\" border=\"0\" alt=\"image\" width=\"244\" height=\"192\" \/><\/a><\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image291.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb291.png\" border=\"0\" alt=\"image\" width=\"285\" height=\"166\" \/><\/a><\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image301.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb301.png\" border=\"0\" alt=\"image\" width=\"597\" height=\"71\" \/><\/a><\/p>\n<p><span style=\"color:#ff0000;\">Scenario \u2013 Creating a New Scenario in my source repository.<\/span><\/p>\n<p>I\u00a0 am creating a new scenario called SRC_AGE_GROUP and lets see if this comes through<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image312.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb312.png\" border=\"0\" alt=\"image\" width=\"244\" height=\"124\" \/><\/a><\/p>\n<p>and it works<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image321.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb321.png\" border=\"0\" alt=\"image\" width=\"244\" height=\"103\" \/><\/a><\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image331.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb331.png\" border=\"0\" alt=\"image\" width=\"558\" height=\"82\" \/><\/a><\/p>\n<p><span style=\"color:#ff0000;\">Scenario &#8211;\u00a0 Deleting a scenario<\/span><\/p>\n<p>For this example i am deleting the above scenario<\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image341.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb341.png\" border=\"0\" alt=\"image\" width=\"556\" height=\"80\" \/><\/a><\/p>\n<p><span style=\"color:#ff0000;\">Scenario \u2013 Regenerated\u00a0 EMPLOYEES\u00a0 and created a new scenario \u2013 REGIONS 002 <\/span><\/p>\n<p><a href=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image351.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display:inline;border-width:0;\" title=\"image\" src=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb351.png\" border=\"0\" alt=\"image\" width=\"551\" height=\"95\" \/><\/a><\/p>\n<p>Please find the XML required and codes can be modified accordingly .<\/p>\n<p>PACKAGE AUTOMATE_ODI_SCEN<\/p>\n<p>PROCEDURE ODI_SCEN<\/p>\n<p>PROCEDURE STARTCMD<\/p>\n<p>VARIABLE V_REM_SCEN<\/p>\n<p>VARIABLE V_GET_SCEN<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The whole main idea of this logic is to capture any created , regenerated and re process any failed scenarios while importing . Its just a simple Process to do the Export and Import of Scenarios from One Work Repository &hellip; <a href=\"http:\/\/odiexperts.com\/pt-br\/automated-odi-export-import-scenarios\/\">Continue lendo <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,23,3,7],"tags":[53,54,185,99],"coauthors":[],"class_list":["post-1477","post","type-post","status-publish","format-standard","hentry","category-how-to","category-logic","category-odi","category-tips-and-tricks","tag-export","tag-import","tag-odi","tag-scenario"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v29.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Automated ODI Export Import Scenarios - ODIExperts.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/odiexperts.com\/pt-br\/automated-odi-export-import-scenarios\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Automated ODI Export Import Scenarios - ODIExperts.com\" \/>\n<meta property=\"og:description\" content=\"The whole main idea of this logic is to capture any created , regenerated and re process any failed scenarios while importing . Its just a simple Process to do the Export and Import of Scenarios from One Work Repository &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"http:\/\/odiexperts.com\/pt-br\/automated-odi-export-import-scenarios\/\" \/>\n<meta property=\"og:site_name\" content=\"ODIExperts.com\" \/>\n<meta property=\"article:published_time\" content=\"2010-06-22T00:58:00+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb6.png\" \/>\n<meta name=\"author\" content=\"kdevendr\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"kdevendr\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutos\" \/>\n\t<meta name=\"twitter:label3\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data3\" content=\"kdevendr\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/odiexperts.com\\\/automated-odi-export-import-scenarios\\\/#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/odiexperts.com\\\/automated-odi-export-import-scenarios\\\/\"},\"author\":{\"name\":\"kdevendr\",\"@id\":\"http:\\\/\\\/odiexperts.com\\\/#\\\/schema\\\/person\\\/c28a6fe798e1bd14719b3c80293a7a74\"},\"headline\":\"Automated ODI Export Import Scenarios\",\"datePublished\":\"2010-06-22T00:58:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/odiexperts.com\\\/automated-odi-export-import-scenarios\\\/\"},\"wordCount\":1418,\"commentCount\":12,\"image\":{\"@id\":\"http:\\\/\\\/odiexperts.com\\\/automated-odi-export-import-scenarios\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/odiexpertsbkup.files.wordpress.com\\\/2010\\\/06\\\/image_thumb6.png\",\"keywords\":[\"Export\",\"Import\",\"ODI\",\"scenario\"],\"articleSection\":[\"How to\",\"Logic\",\"ODI\",\"Tips and Tricks\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\\\/\\\/odiexperts.com\\\/automated-odi-export-import-scenarios\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/odiexperts.com\\\/automated-odi-export-import-scenarios\\\/\",\"url\":\"http:\\\/\\\/odiexperts.com\\\/automated-odi-export-import-scenarios\\\/\",\"name\":\"Automated ODI Export Import Scenarios - ODIExperts.com\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/odiexperts.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\\\/\\\/odiexperts.com\\\/automated-odi-export-import-scenarios\\\/#primaryimage\"},\"image\":{\"@id\":\"http:\\\/\\\/odiexperts.com\\\/automated-odi-export-import-scenarios\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/odiexpertsbkup.files.wordpress.com\\\/2010\\\/06\\\/image_thumb6.png\",\"datePublished\":\"2010-06-22T00:58:00+00:00\",\"author\":{\"@id\":\"http:\\\/\\\/odiexperts.com\\\/#\\\/schema\\\/person\\\/c28a6fe798e1bd14719b3c80293a7a74\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/odiexperts.com\\\/automated-odi-export-import-scenarios\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"http:\\\/\\\/odiexperts.com\\\/automated-odi-export-import-scenarios\\\/#primaryimage\",\"url\":\"http:\\\/\\\/odiexpertsbkup.files.wordpress.com\\\/2010\\\/06\\\/image_thumb6.png\",\"contentUrl\":\"http:\\\/\\\/odiexpertsbkup.files.wordpress.com\\\/2010\\\/06\\\/image_thumb6.png\"},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/odiexperts.com\\\/#website\",\"url\":\"http:\\\/\\\/odiexperts.com\\\/\",\"name\":\"ODIExperts.com\",\"description\":\"The blog for Oracle Data Integrator ( ODI )\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\\\/\\\/odiexperts.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/odiexperts.com\\\/#\\\/schema\\\/person\\\/c28a6fe798e1bd14719b3c80293a7a74\",\"name\":\"kdevendr\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ab918a4d6c66b2a8295ea35b645ca7acc40ddf0077ae21061123144bf9b563d2?s=96&d=mm&r=g7e1b9f12276a12350d762b15d6918a3c\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ab918a4d6c66b2a8295ea35b645ca7acc40ddf0077ae21061123144bf9b563d2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ab918a4d6c66b2a8295ea35b645ca7acc40ddf0077ae21061123144bf9b563d2?s=96&d=mm&r=g\",\"caption\":\"kdevendr\"},\"url\":\"http:\\\/\\\/odiexperts.com\\\/pt-br\\\/author\\\/kdevendr\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Automated ODI Export Import Scenarios - ODIExperts.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/odiexperts.com\/pt-br\/automated-odi-export-import-scenarios\/","og_locale":"pt_BR","og_type":"article","og_title":"Automated ODI Export Import Scenarios - ODIExperts.com","og_description":"The whole main idea of this logic is to capture any created , regenerated and re process any failed scenarios while importing . Its just a simple Process to do the Export and Import of Scenarios from One Work Repository &hellip; Continue reading &rarr;","og_url":"http:\/\/odiexperts.com\/pt-br\/automated-odi-export-import-scenarios\/","og_site_name":"ODIExperts.com","article_published_time":"2010-06-22T00:58:00+00:00","og_image":[{"url":"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb6.png","type":"","width":"","height":""}],"author":"kdevendr","twitter_misc":{"Escrito por":"kdevendr","Est. tempo de leitura":"10 minutos","Written by":"kdevendr"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/odiexperts.com\/automated-odi-export-import-scenarios\/#article","isPartOf":{"@id":"http:\/\/odiexperts.com\/automated-odi-export-import-scenarios\/"},"author":{"name":"kdevendr","@id":"http:\/\/odiexperts.com\/#\/schema\/person\/c28a6fe798e1bd14719b3c80293a7a74"},"headline":"Automated ODI Export Import Scenarios","datePublished":"2010-06-22T00:58:00+00:00","mainEntityOfPage":{"@id":"http:\/\/odiexperts.com\/automated-odi-export-import-scenarios\/"},"wordCount":1418,"commentCount":12,"image":{"@id":"http:\/\/odiexperts.com\/automated-odi-export-import-scenarios\/#primaryimage"},"thumbnailUrl":"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb6.png","keywords":["Export","Import","ODI","scenario"],"articleSection":["How to","Logic","ODI","Tips and Tricks"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/odiexperts.com\/automated-odi-export-import-scenarios\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/odiexperts.com\/automated-odi-export-import-scenarios\/","url":"http:\/\/odiexperts.com\/automated-odi-export-import-scenarios\/","name":"Automated ODI Export Import Scenarios - ODIExperts.com","isPartOf":{"@id":"http:\/\/odiexperts.com\/#website"},"primaryImageOfPage":{"@id":"http:\/\/odiexperts.com\/automated-odi-export-import-scenarios\/#primaryimage"},"image":{"@id":"http:\/\/odiexperts.com\/automated-odi-export-import-scenarios\/#primaryimage"},"thumbnailUrl":"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb6.png","datePublished":"2010-06-22T00:58:00+00:00","author":{"@id":"http:\/\/odiexperts.com\/#\/schema\/person\/c28a6fe798e1bd14719b3c80293a7a74"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["http:\/\/odiexperts.com\/automated-odi-export-import-scenarios\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"http:\/\/odiexperts.com\/automated-odi-export-import-scenarios\/#primaryimage","url":"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb6.png","contentUrl":"http:\/\/odiexpertsbkup.files.wordpress.com\/2010\/06\/image_thumb6.png"},{"@type":"WebSite","@id":"http:\/\/odiexperts.com\/#website","url":"http:\/\/odiexperts.com\/","name":"ODIExperts.com","description":"O blog sobre Oracle Data Integrator (ODI)","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/odiexperts.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Person","@id":"http:\/\/odiexperts.com\/#\/schema\/person\/c28a6fe798e1bd14719b3c80293a7a74","name":"kdevendr","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/secure.gravatar.com\/avatar\/ab918a4d6c66b2a8295ea35b645ca7acc40ddf0077ae21061123144bf9b563d2?s=96&d=mm&r=g7e1b9f12276a12350d762b15d6918a3c","url":"https:\/\/secure.gravatar.com\/avatar\/ab918a4d6c66b2a8295ea35b645ca7acc40ddf0077ae21061123144bf9b563d2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ab918a4d6c66b2a8295ea35b645ca7acc40ddf0077ae21061123144bf9b563d2?s=96&d=mm&r=g","caption":"kdevendr"},"url":"http:\/\/odiexperts.com\/pt-br\/author\/kdevendr\/"}]}},"_links":{"self":[{"href":"http:\/\/odiexperts.com\/pt-br\/wp-json\/wp\/v2\/posts\/1477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/odiexperts.com\/pt-br\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/odiexperts.com\/pt-br\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/odiexperts.com\/pt-br\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/odiexperts.com\/pt-br\/wp-json\/wp\/v2\/comments?post=1477"}],"version-history":[{"count":0,"href":"http:\/\/odiexperts.com\/pt-br\/wp-json\/wp\/v2\/posts\/1477\/revisions"}],"wp:attachment":[{"href":"http:\/\/odiexperts.com\/pt-br\/wp-json\/wp\/v2\/media?parent=1477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/odiexperts.com\/pt-br\/wp-json\/wp\/v2\/categories?post=1477"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/odiexperts.com\/pt-br\/wp-json\/wp\/v2\/tags?post=1477"},{"taxonomy":"author","embeddable":true,"href":"http:\/\/odiexperts.com\/pt-br\/wp-json\/wp\/v2\/coauthors?post=1477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}