cancel
Showing results for 
Search instead for 
Did you mean: 

How to embed Activiti Designer in a Java application(using Eclipse/IntelliJ IDEA)?

dinesh_yoko
Champ in-the-making
Champ in-the-making
Hi,
I am evaluating Activiti BPM and I have a requirement where in i need to embed Activiti Designer in a java application using eclipse or IntelliJ IDEA. The final output expected is a java application using which user can create Activiti workflow diagrams like how we create using eclipse plug in. Can this requirement be achieved? This is an urgent requirement. Please reply me ASAP.
8 REPLIES 8

vasile_dirla
Star Contributor
Star Contributor
Hi Dinesh,
The IDE is not important in your case (you can use any IDE you like).
Your application "must be a java application", web based or desktop application?
Anyway.. to answer to your question, Yes, it could be done in booth cases but the approach will be different.

marjani
Champ in-the-making
Champ in-the-making

Hi

I have web base project, can you help me How to embed Activiti Designer?

dinesh_yoko
Champ in-the-making
Champ in-the-making
Hi Vasile Dîrlă,

Thanks for your quick reply. My requirement is to create a desktop application. I have downloaded the activiti designer source code from: https://github.com/Activiti/Activiti-Designer. Please let me know the steps to use the Activiti designer in java desktop application.

Thanks,
Dinesh

vasile_dirla
Star Contributor
Star Contributor
As I know Eclipse is written in JAVA, and this is an example that the Activiti-Designer could be embedded into a java desktop application.

There is no such a step by step demo about how you should do it (it's not a simple task), in fact if you want to reuse this code you should to something similar with the code which is done in eclipse in order to use the plugins.

Maybe you can start investigating the class hierarchy on top of which this designer is created.
https://eclipse.org/graphiti/documentation/gettingStarted.php

I think you'll have to modify the source code a lot in order to adjust it to your app. (but I think it could be a nice challenge)

dinesh_yoko
Champ in-the-making
Champ in-the-making
Thanks Vasile Dîrlă. I try to look at what you have suggested. Also i am facing problem in building the Activiti designer source code(in Eclipse Indigo). I have created a Maven project and imported the source code from the local directory.( Source code downloaded from :  https://github.com/Activiti/Activiti-Designer). But its giving this error: Plugin execution not covered by lifecycle configuration org.eclipse.tycho:tycho-packaging-plugin:0.22.0:build-qualifier-aggregator. Could you please help me in resolving this?

dinesh_yoko
Champ in-the-making
Champ in-the-making
In continuation to the above discussion, I am now able to build the Activiti designer code and associated .jar files have been generated.
Below is the output of build process:
[INFO]
[INFO] ————————————————————————
[INFO] Building Activiti Designer - Root project 5.18.1-SNAPSHOT
[INFO] ————————————————————————
[INFO]
[INFO] — maven-clean-plugin:2.5:clean (default-clean) @ org.activiti.designer.
root —
[INFO]
[INFO] — maven-install-plugin:2.4:install (default-install) @ org.activiti.des
igner.root —
[INFO] Installing D:\Activiti-Designer-master\Activiti-Designer-master\p
om.xml to C:\Users\.m2\repository\org\activiti\designer\org.activiti.de
signer.root\5.18.1-SNAPSHOT\org.activiti.designer.root-5.18.1-SNAPSHOT.pom
[INFO] ————————————————————————
[INFO] Reactor Summary:
[INFO]
[INFO] Activiti Designer - Parent project …………….. SUCCESS [  0.310 s]
[INFO] Activiti Designer - Libs ……………………… SUCCESS [  2.188 s]
[INFO] Activiti Designer - Integration ……………….. SUCCESS [  4.341 s]
[INFO] Activiti Designer - Util ……………………… SUCCESS [  2.623 s]
[INFO] Activiti Designer - Eclipse …………………… SUCCESS [  7.435 s]
[INFO] Activiti Designer - GUI ………………………. SUCCESS [ 11.108 s]
[INFO] Activiti Designer - Help ……………………… SUCCESS [  0.658 s]
[INFO] Activiti Designer - Validate BPMN 2.0 ………….. SUCCESS [  1.399 s]
[INFO] Activiti Designer - Util ……………………… SUCCESS [  1.287 s]
[INFO] Activiti Designer - Kickstart - Eclipse ………… SUCCESS [ 19.311 s]
[INFO] Activiti Designer - Kickstart - Forms ………….. SUCCESS [  3.902 s]
[INFO] Activiti Designer - Kickstart - Process ………… SUCCESS [  4.417 s]
[INFO] Activiti Designer - Feature …………………… SUCCESS [  1.041 s]
[INFO] Activiti Designer - Update site ……………….. SUCCESS [  5.684 s]
[INFO] Activiti Designer - Root project ………………. SUCCESS [  0.181 s]
[INFO] ————————————————————————
[INFO] BUILD SUCCESS
[INFO] ————————————————————————
[INFO] Total time: 01:35 min
[INFO] Finished at: 2016-05-11T17:49:31+05:30
[INFO] Final Memory: 129M/1144M
[INFO] ————————————————————————
I am trying to launch Activiti Designer from a java desktop application. I am going through the activiti source code to find which method launches the Activiti Designer. If you can provide some inputs that would be of great help.
Thanks,
Dinesh

ganeshkumar_rsk
Champ in-the-making
Champ in-the-making
Hi DInesh,

how to add activiti workflow in java project??.

ganeshkumar_rsk
Champ in-the-making
Champ in-the-making
Guys,

Anybody know how to add activiti workflow in java project?

Thanks,
Ganesh