cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging Activiti Flow

sathizk7
Champ in-the-making
Champ in-the-making
Hi I am new to Activiti i wanted to understand the flow, can some one help me to figure out the starting point to begin my code walk through

Thanks
Sathish A
4 REPLIES 4

vasile_dirla
Star Contributor
Star Contributor
What exactly you want to do?
Debugging when Activiti is starting up, when a new process instance is starting, or what exactly?

Did you have a look at this documentation? http://www.activiti.org/userguide/

sathizk7
Champ in-the-making
Champ in-the-making
Hi I need to understand the startup and my next step is to understand the flow of new process

vasile_dirla
Star Contributor
Star Contributor
1. Since a process engine will be started you could try adding a breakpoint here:
ProcessEngineConfigurationImpl.java
<java>
public ProcessEngine buildProcessEngine() {
    init();
    return new ProcessEngineImpl(this);
  }
</java>
and starting from this breakpoint you'll see which is the caller method and where will go next..

2. about your next step, did you read this chapter? 4.3.2. Starting a process instance ?
here you'll find how a process instance could be created and then you'll know where you could put breakpoints.
I think you could put some breakpoints into sevices and then when your client application will try to do something for sure the execution will stop in one of these breakpoints. then you could start investigating the stacktrace and you could start running the code step by step.
TaskServiceImpl, RuntimeServiceImpl, RepositoryServiceImpl.

3. A good idea could be to start investigating the JUnit tests (from these tests you'll learn how Activiti is expecting to work)

Enjoy.

sathizk7
Champ in-the-making
Champ in-the-making
Thank you so much Vasile, that was very useful. Let me start debugging it.
Thanks again and have a great evening

Thanks