cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with 5.12 demo

groopk
Champ in-the-making
Champ in-the-making
The Simple Approval Demo example is new in the 5.12 distro, and includes a form type of "user".  When we run a fresh download & install of activiti, we get a console full of errors related to this. Are we missing something or is something missing from the distro?

It also prevents us from accessing the tasklist from the Rest API (i.e http://localhost:8080/activiti-rest/service/tasks?assignee=kermit) - We simply get a 500 error. Apparently an error in one of the deployment forms causes other tasks not to be available:

02:26:26,119 [http-apr-8080-exec-6] ERROR org.activiti.engine.impl.interceptor.CommandContext - Error while closing command context
org.activiti.engine.ActivitiIllegalArgumentException: unknown type 'user' approver
at org.activiti.engine.impl.form.FormTypes.parseFormPropertyType(FormTypes.java:55)
at org.activiti.engine.impl.form.DefaultFormHandler.parseConfiguration(DefaultFormHandler.java:61)
17 REPLIES 17

frederikherema1
Star Contributor
Star Contributor
If you take over the "userType" configuration (not renderer, but the actual type), the REST-webapp wil work independently on the same database. It's perfectly fine to have 2 engines pointing at the same DB, nothing to be uncomfortable about. Offcourse, it's indeed possible to combine both explorer and rest into a single war-file.

non
Champ in-the-making
Champ in-the-making
OK. Thank you.

jbarrez
Star Contributor
Star Contributor
That's why I asked which version you are running on: I assumed we had the error fixed on Activiti 5.12.1. But it seems you are hitting it (altough i did remember I tested it).

We have split up the webapps on purpose: most people want only the rest api or explorer, not the both combined.
You can indeed combine both web applications. But as it is a standard Java webapp, it's basically just creating a standard WAR.

But your point is valid: this stuff should be easier. I'll look into it and see if I can write something down.

non
Champ in-the-making
Champ in-the-making
Thanks.

A short step-by-step guide leading to the combined solution would help a lot.

At the moment I'm not a day-by-day java developer and don't know all concepts by rote. Now I got everything up in eclipse, created a webapp project and added all the dependent libs from the war files and the configuration files to the webapps/WEB-INF folder. (before I tried automatic maven dependency resolution, but failed Smiley Wink)

The app loads perfectly in tomcat now, but complains about "org.activiti.engine.ActivitiException: No router defined" when I try to access "/service"

To be continued…


frederikherema1
Star Contributor
Star Contributor
You should call ann actual REST-service method, rather than the root "/services"…

joshgubler
Champ in-the-making
Champ in-the-making
Hey Joram,

I'm still seeing this issue in 5.13. I've worked around it by undeploying the demo processes.

-Josh

b_schnarr
Champ in-the-making
Champ in-the-making
Is there any progress on this issue? Tried with activiti 5.14 and the REST-Calls still crashes with the demo data. Same deplyoment as described above: both web apps share the same db.
It would be very useful if the user form type could be used in the rest app. Especially for document-approval processes, the user form type is very important.
Therefore, it would be great if you could integrate this form type in the rest web app.

trademak
Star Contributor
Star Contributor
For 5.15 we've added these form types to the REST app as well.

Best regards,