Problem with locale accessing bonita forms by url



I am trying to access to bonita using this url: http://localhost:8080/bonita/loginservice?username=xxx&password=xxx&redi...$entry&process=ID_MY_PROCESS&mode=form&locale=fr

But the language of the form is english. Bonita generates this url on the redirect: http://localhost:8080/bonita/portal/homepage?ui=form&ui=form#form=MY_FORM$entry&process=ID_MY_PROCESS&mode=form&locale=fr

With the same code above, I put the locale (&locale=fr) before # and it works, but I need to use the first url...

It seems that the attribute locale is never used if you put it after #

I am using the community edition.

Any ideas?


2 answers


But in the documentation of 6.3.0 says that you should put the parameter there:

This is the example in the documentation: http://localhost:8080/bonita/?ui=form&autologin=Pool6--1.0#form=Pool6--1.0$entry&process=6972973247608922361&mode=form&locale=fr

I use this: http://localhost:8080/bonita?ui=form&autologin=XXX#form=YYY$entry&process=ZZZ&mode=form&locale=fr

And it doesn't work.

I use this: http://localhost:8080/bonita?ui=form&autologin=XXX&locale=fr#form=YYY$entry&process=ZZZ&mode=form

Everything goes fine.

I think the documentation has a mistake or something like that.


Ola eduardo,

The "#" in the URL is seen as an anchor. Anchor are specific tags in the URL such as "&" , "=" , "?", ....

So you cannot add the locale=fr after the #.

Hopefully it helps. Best regards, LL


Submitted by eduardo.gonzalez_1 on Wed, 09/10/2014 - 10:07

I solved it.

You have to put after ?ui=form the ?locale=fr, whith the ? before the parameter.

This is not explained in the bonita documentation, I think this is not serious. You have three kinds of URLS in the documentation in v6.X and any of them works for 6.3.0.

You can connect to Bonita BPM Portal from other tools using a URL of the form http://host:port/bonita#?..... Other forms of URL are liable to change in future versions. For example, use http://localhost:8081/bonita#?process=myProcessId&locale=fr, and do not use http://localhost:8081/bonita/console/homepage#?process=myProcessId&local...




Submitted by bos2013 on Mon, 09/15/2014 - 13:36

Thanks for your feedback and resolution.

I have contacted the Doc Department to update the online documentation.

Best regards, LL