cancel
Showing results for 
Search instead for 
Did you mean: 

Can we use activiti-explorer over spring boot activiti engine?

sujeeshsvalath
Champ on-the-rise
Champ on-the-rise
I like the Spring boot version of Activiti since it is seems to be more developer friendly for me as a Spring application developer.
But when using activiti-rest what I really miss is the features of activiti-explorer. Now I have to make a choice between following two options for activiti- development:
1. Traditional activiti-rest.war and activit-explorer.war deployments under tomcat. Package bars and libs and deploy them under libs.
2. Spring boot- my favorite.

If I choose option1, I miss Spring support. For custom end points I have to deploy my war running over activiti-rest.war and activit-explorer.war deployments.Also I can make use of activiti-explorer.
But If I choose option2 (boot support), I have no choice for making use of activiti-explorer. But my boss is asking for interface like activiti-explorer where he can see the diagram of each instance and see where it is now diagrammatically.

My query is whether it is possible to run the activiti-exploreo over spring-boot-activiti-integrated environemnt. Is there any plugin available in Spring OR can we tweak configurations inside activit-explorer to read process instances from spring-boot-embedded activiti-engine? Please share some info.
14 REPLIES 14

faizal-manan
Champ in-the-making
Champ in-the-making
has you set your processEngineName to 'default'?

sujeeshsvalath
Champ on-the-rise
Champ on-the-rise
Hi Faizil,
getName
String getName()
The name as specified in 'process-engine-name' in the activiti.cfg.xml configuration file. The default name for a process engine is 'default

But I dont see this file in rest/explorer project!!

faizal-manan
Champ in-the-making
Champ in-the-making
I'm referring to origin stacktrace.
<code>
caused by: java.lang.NullPointerException
at org.activiti.explorer.navigation.TaskNavigator.<init>(TaskNavigator.java:51)
at org.activiti.explorer.navigation.NavigatorManager.afterPropertiesSet(NavigatorManager.java:61)
</code>

this error cause by
<code>
public TaskNavigator() {
    this.taskService = ProcessEngines.getDefaultProcessEngine().getTaskService();
  }
</code>
which it refer to
<code>
  public static ProcessEngine getDefaultProcessEngine() {
    return getProcessEngine(NAME_DEFAULT);
  }
</code>

that's mean something wrong with your processEngineConfiguration.

Referring to <a href="http://activiti.org/userguide/index.html#_configuration">http://activiti.org/userguide/index.html#_configuration</a>
<i>activiti.cfg.xml is not Spring style of building a process engine</i>
You'll not find activiti.cfg.xml anywhere in spring-boot

sujeeshsvalath
Champ on-the-rise
Champ on-the-rise
I am able to deploy it at last. But facing issues with url mappings. Trying to resolve the same now.

sujeeshsvalath
Champ on-the-rise
Champ on-the-rise