cancel
Showing results for 
Search instead for 
Did you mean: 

Can Activiti creates a Business Process by pure Java code?

star_gms
Champ in-the-making
Champ in-the-making
Hi all,

I'm a newbie to Activiti and I've a questions about it:
Can we create a Business Process by pure Java code (meaning that not use the XML files and the diagrams)?

I've tried to read the API but seem to be it doesn't support any class or method to create a Business Process (Ex: I don't see any class or method that define the SequenceFlow or Gateways).
So if we can't, then how the end users can customize there Business Processes, cause they can't open and change the XML files.

Please help me about my questions, thanks for all and best regards.
2 REPLIES 2

meyerd
Champ on-the-rise
Champ on-the-rise
You could look at Joram's Activiti Kickstart:
http://www.jorambarrez.be/blog/2011/08/31/activiti-kickstart-moved-to-github/
It exposes a nice high-level API which lets you do that.

Alternatively, look at how ProcessDefinitionEntities are assembled in org.activiti.engine.impl.bpmn.parser.BpmnParse

star_gms
Champ in-the-making
Champ in-the-making
Thanks to meyerd, I'll check your information, thanks very much Smiley Very Happy