Auto import XML files in Sparx Enterprise Architect repository - enterprise-architect

I would like to auto import XML files that contains information about changed packages, diagrams, elements, and so on to my repository on a MySQL server.
There is a functionality in the EA, located in "Import/Export" -> "Import package from XMI file". Is there any way to trigger that function from a script or from a program to automate that?

Yes, check the operation ImportPackageXMI in the Project Interface. You can use that operation from an add-in, external program or EA script.

Related

Katalon external library

I'm trying to use my own code for Katalon as a library.
My own code has imports like this
from com.test.page import Page
from selenium.webdriver.common.keys import Keys
import robot.utils.asserts as asserts
This file is totally executable on its own when I'm using IDE, but when I tried to import it to Katalon, I got exception message like this
ImportError: No module named test
In order to use external references, you should go to the IDE and select
Project -> Settings -> External Libraries
On the window add your jar file.
Remember that you also need to check if the .classpath file is updated accordingly if you use git (it's on the .gitignore list, so needs to be updated manually)
Do you put your .jar in Drivers folder inside your project?
Write import com.test.page.Page instead of yours
The best place to keep all jar files is to create a folder in Katalon folder structure and store all jar files in it. When you commit Katalon project into a source repositories like Github and SVN, don't forget to commit jar files as well so that the references given in the code will no throw an error.
Try this:
put additional jars in lib directory like "C:\Users[ME].katalon\8.2.0\Katalon_Studio_Engine_Windows_64-8.2.0\configuration\resources\lib\jsch-0.1.54.jar".
restart katalon then in your script, use import com.jcraft.jsch.*;

How to import ATG CRS module in eclipse and customize

I am new to ATG and i installed ATG CRS 11.2 using CIM and it is installed properly and i am able to access the site but i want to import the CRS module in eclipse and customize the existing code for my learning purpose.
I tried the ways given on net, install atg plugin and trying to import but it is not importing.
Please explain the steps to do same.
Thanks
The Oracle A-Team have an article Building Oracle ATG Commerce With Maven. They have created a sample github project which uses CRS 11.2 as the basis for the project. You should be able to import this as a Maven project within Eclipse.
Create a new Java Project in Eclipse
Using windows browser, go to the location where your Java Project is created.
Open the Java Project folder, you will find .classpath and .project files there.
Now, go to your ATG_ROOT folder, and find the folder CommerceReferenceStore/Store
Copy-paste your .project and .classpath files here.
Edit the .project file and replace the project name by CommerceReferenceStore.Store.
CRS also has some other (nested) modules. Do the same for the nested modules you want to import in eclipse.
Re-open eclipse, Go to File -> Import -> Other -> Existing Projects into your workspace.
Browse to your ATG_ROOT directory and select the Store folder
Check on "Search for Nested Projects"
It will populate a list of all the projects, which you can now import.
For customizing CRS, it is not recommended to modify the existing CRS
code. You can create a new module, and layer it on top of CRS to
customize it. For more details on creating a new module above CRS, and
doing an assemble-deploy via CIM, you can follow this article provided
below. It has 3 small parts which can get your task done!
Here is the article:
http://learnoracleatg.blogspot.in/2016/12/create-and-deploy-new-atg-module-on-local-from-scratch-part-1.html

IBM Worklight - How to import Worklight code into Eclipse?

I am looking for information on how to import existing Worklight code into a Worklight-enabled Eclipse environment.
In addition to importing a project, it seems that it is also possible to import an app and an adapter. What subcomponents would an app and an adapter have to consist of to make them importable and re-usable? Are there any examples of such importable components on the web?
I am aware of this discussion on the IBM support page but am looking for more detail.
The below will export and import both apps and adapters belonging to the same project.
Export
- In Eclipse, right-click a project and choose Export... choose to export the project as a zip file.
Import
- In Eclipse, right-click the Project Explorer view and choose Import... choose to import an existing project (your zip file).
An app is contained in the appName folder within the apps folder. And adapter is contained in the adapterName folder within the adapters folder.
There are no mechanisms to export and import the CODE of an adapter or application. You will need to copy-paste the files/folders manually and likely change many references in your files as many locations have different values based on the project name you've used.
Such an approach is highly not recommend by Worklight.
Starting Worklight 6.1, the training modules also contain a portion about how to import projects.

Where can I find the oracle10g database related files to my netbeans project?

I have made a College Management System project in Java using Netbeans 6.9.1 and Oracle10g. where can I find the database files related to my project so that i can export those files to another system?
If by "database files" you mean your tables, procedures and other data, then they are contained in Oracle's data files.
You'll have to export the data and then import them on another system.

Automate eap to xmi export in Enterprise Architect

Is there a way to automate the export (conversion) from *.eap to *.xmi in Enterprise Architect? Ideally something like
ea -eap file.eap -xmi file.xmi
We want to use automated Continuous Integration and clicking through GUI dialogs is not an option. For complex reasons we do not want to check in the xmi in our VCS after the eap file was modified.
The FAQ for XMI export at http://www.sparxsystems.com/enterprise_architect_user_guide/8.0/projects_and_teams/exporttoxmi.html sadly does not describe an automated way.
See How to automate the generation of HTML output in Enterprise Architect