2 posts / 0 new
Last post
AppCode Configuration
How do I configure AppCode on my instance?
Total votes: 2307

Kindly use the below given steps in order to setup AppCode on your instance.

Note: Before proceeding with the below given steps, Eclipse Luna with Java 1.8 must be installed on the machine.

Step 1: Creating Eclipse project
i. File  new  java project
ii. Enter project name and finish

Step 2:Setting up the project
i. Right click on ProjectName in package explorer  new  folder
ii. Name it as “lib”
iii. Right click on ProjectName in package explorer  new  XML file
iv. Name it as “appcode-deploy.xml”
Copy the below content and paste it in “appcode-deploy.xml”

<?xml version="1.0" encoding="UTF-8"?>
Build script for AppCode
<!-- set global properties for this build -->
<!-- Setup Deployment specific properties -->

<!-- Point to dbsync-sdk -->




<!-- Create the time stamp -->
<!-- add src and target files -->



<!-- Modified by Sambit -->






<targetname="zip"depends="build"description="creates zip files">


<targetname="deploy"depends="zip"description="compile the source ">


v. Apply/Change the below properties values in this xml:
1. Appcode.name = give any name, it will reflect in jar name.
2. Appcode location = “Right click on your project  properties – Resources  location” copy and paste the location given here
3. Environment = is nothing but a name. This is the name you use to connect from DBSync.
4.dbsync.server.url = dbsync application running url.
5. Dbsync.server.username = provide username to connect dbsync.
6. Dbsync.server.password = corresponding password for the username

vi. Download the dbsync-sdk.jar from the below url.
vii. Extract the downloaded zip file.
viii. From your eclipse right click on project  properties Java Build Path  Libraries  add external jars
locate your extracted dbsync-sdk folder and select the jar, click ok.
ix. Now go to app-deploy.xml and change the value of “sdk” property.
copy your dbsync-sdk location and paste the value in “sdk” location.

Step 3: Creating adapter classes
i. Create your functionality classes under the folder src.
ii. To make your classes as adapter class you need to inherit AppCode interface. NOTE: All the methods in the class which extends AppCode will be available in DBSync.
iii. com.appmashups.appcode.AppCodethis is the class to Implements.
iv. Once AppCode interface is implemented then override the necessary methods.

Step 4: Deploy AppCode
i. Start your dbsync application if it’s not running already
ii. Right click on app-deploy.xml  Run as  Ant Build
iii. If build is successful then the appcode is successfully deployed into DBSync. If Build Failed, please follow from Step 1 properly.

Step 5: Adding your adapter into DBSync.
i. Go to DBSync page  choose any project  Connectors  Create new Connector.
Enter any name and choose connector type as “java Connector”
ii. Give classpath as exactly as the environment name you have given in the app-deploy.xml.
iii. Leave other fields as blank and save.
iv. Go to the selected project  choose any process  choose any workflow.
v. QueryBuilder  select Datasource
you will be able to see your connector, choose that.
vi. Click Select object.
Now all the methods which you have created under the adapter class will be shown. Choose any click preview, you will be able to see the result right there.

Total votes: 2073