cancel
Showing results for 
Search instead for 
Did you mean: 

ProcessEngine configuration help.

fionn
Champ in-the-making
Champ in-the-making
Hi,

I'm trying to setup the mail server for activiti explorer. The documentation seems to be lacking slightly in this area.
But googling around I found out that spring beans need to be setup to configure the mail server in the processEngineConfiguration bean. So I found this bean, commented out, in the activti-custom-context.xml file. If I uncomment it, explorer web app fails to run, it just hangs on Deploying activiti-webapp-explorer2.

Any idea what's wrong? Is there some new way of configuring the processEngine?

Thanks!
9 REPLIES 9

fionn
Champ in-the-making
Champ in-the-making
Figured it out. It turns out that in the newer versions the process engine is setup using the ActivitiEngineConfiguraion.java file in the activiti explorer web app. In here you can set the mail server and any other process engine settings.

jbarrez
Star Contributor
Star Contributor
That is correct

wsalembi
Champ in-the-making
Champ in-the-making
It would be a lot easier if all mail properties were defined in engine.properties (or mail.properties) instead of overriding the processEngineConfiguration bean.

The new java config is cumbersome.
- Developers who want to wire their own configuration java class must package it in org.activiti.rest.conf or org.activiti.engine.conf to be detected by the component scan.
- Why does activity-explorer disable the job executor by default? (engine.activate.jobexecutor=false) If you override it in activiti-custom-context.xml, it is by default set to true.
- The registration of custom form types is a little heavy too. You must override the entire processEngineConfiguration bean to add a new custom type and additionally in explorer you need to customize the activiti-ui-context.xml too. It would be a lot easier if org.activiti.engine.form.AbstractFormType provides a handle method to retrieve the renderer instead.

jbarrez
Star Contributor
Star Contributor
> The new java config is cumbersome.

Thats why we introduced the xml fallback.

> Why does activity-explorer disable the job executor by default? (engine.activate.jobexecutor=false) If you override it in activiti-custom->
>  context.xml, it is by default set to true.

Cause, if you search a bit on this forum, it confused a lot of starters.

> The registration of custom form types is a little heavy too.

I agree. I don't like it either, but it would mean a big refactoring to switch it out now.



filprayer
Champ in-the-making
Champ in-the-making
Hi,

I'm a new member of this forum and I've encountered the same problem, especially in adding a new custom form type.

I tried to follow the steps of this guide (http://www.jorambarrez.be/blog/2013/03/13/creating-a-new-form-property-in-activiti/) but I found out that when I add a new form type in the file "activiti-custom-context.xml" uncommenting it, explorer web app fails to run.

So my questions are: does this problem still exist or it has been fixed? Is it necessary to modify the ActivitiEngineConfiguraion.java file in order to add a new form type?

Thanks!

jbarrez
Star Contributor
Star Contributor
No, it should work as advertised, but i need more than 'explorer web app fails to run.'. Example xml and stacktraces are always helpful.

filprayer
Champ in-the-making
Champ in-the-making
Hi,

with the last version of Activiti (5.19), this problem has been resolved. Sorry if I didn't reply to previous messagges.

Thank you.

Regards,
Filippo.

javaman1
Champ in-the-making
Champ in-the-making
Hi,

Got a question related to activiti-custom-context.xml in activiti-explorer.
I am using mysql for my db properties.
I am running a process with a User Task.

Scenario 1: I use the default activiti-custom-context.xml that came with activiti-explorer, which contains beans that are commented out
1. I populate the form and start the process in the processes tab
2. I go to the Tasks tab and immediately see the task in the Queued tasks under Management

Scenario 2: I uncomment the commented-out beans settings in activiti-custom-context.xml
1. I populate the form and start the process in the processes tab
2. I go to the Tasks tab but the task does not appear in the queue (even logging out and relogging-in doesn't work)
3. After I restarted tomcat, and re-logged in, only then did the task appeared in the queue

What configuration should I change in the default activiti-custom-context.xml to achieve a similar behavior as Scenario 1?

javaman1
Champ in-the-making
Champ in-the-making
P.S.: I am using activiti-5.19.0.2