The other day I deleted by mistake an OIC process App and did not have a backup. But luckily, I had some already active versions deployed and was able to recover everything.
** I do not know if the next instructions work all the time or for other versions in the future, but work for me now.
- JDeveloper version 12.2.1.4
- OIC 21.4.1
Instructions
1. Configure the “Instance Storage” in OIC. https://docs.oracle.com/en/cloud/paas/integration-cloud/oracle-integration-oci/configure-object-storage.html
2. After that, do an export to the bucket it was created in the previous step.
3. Download the zip file that is on the bucket, and unzipped.
4. Go to the folder ‘Process’, and unzip the file called Process_export.par.
5. Go into that folder and open ‘Process/composite/oracleinternalpcs’ and pick one of the .jar file that you want to use to recover the project.
6. Open the jdeveloper and create a BPM Application and a Project using the empty composite template. (the name does not matter)
7. Click on the Project on the folder structure, so it gets selected for the import.
8. Click on the menu option ‘File->Import…’ and select ’Soa Archive into Soa Project’.
9. Select you .jar file that you choose from before.
10. Some windows with errors message can appear, ignore them.
11. The composite.xml file gets opened. Close the file and save changes. (some other errors again). Close the jdeveloper.
12. Go into the folder structure where the project was. (something like $HOME/jdeveloper/mywork/<app>/<project>)
13. Create a zip file that contains the ‘SOA’ folder and its contents.
14. Finally, change the extension from .zip to .exp.
15. Open OIC and create a new app using the ‘import’ option.
That’s it, enjoy.