The application that I am making would be deployed on internet. I need to provide a public form based page with various fields which shall get opened to all on internet. people will fill this form and then the back end team will use the same form to starts validating the data filled by users.
When user submits data the form shall just display a success message. I have build the whole process diagram and testing with temporary forms right now from within bonita studio
How can I make this form as home page and accessible by everyone on internet?
Secondly, the form has multiple file upload browse buttons. The back end team will view the uploaded documents and images and verify the data filled in form. How can I allow the validator to view the uploaded image?
On top of my head, the easiest way to accomplish that would be to add a custom filter to the Bonita webapp. This filter would match on the URL of your application and login to Bonita automatically using a technical user.
Here is a snippet of code to log in Bonita programmatically:
final Map map = new HashMap();
APITypeManager.setAPITypeAndParams(ApiAccessType.LOCAL, map);
try {
final LoginAPI loginAPI = TenantAPIAccessor.getLoginAPI();
// log in to the tenant to create a session
final APISession apiSession = loginAPI.login(userName, userPassword);
// set the session in the TomcatSession
// logger.info("Connection success with[" + userName + "]");
final HttpSession httpSession = httpRequest.getSession();
final User user = new User(userName, Locale.ENGLISH.getDisplayName());
final PermissionsBuilder permissionsBuilder = PermissionsBuilderAccessor.createPermissionBuilder(apiSession);
final Set<String> permissions = permissionsBuilder.getPermissions();
SessionUtil.sessionLogin(user, apiSession, permissions, httpSession);
chain.doFilter(httpRequest, servletResponse);
return;
I thought there was a way to login to a living application page by putting the username and password in the url. for example. localhost:8080/bonita/apps/appname/registration?username=anonymous&password=bpm
But when I tested this option it did not work. Is there a way to turn this feature on?
I did find a way to login automatically. Hopefully the way I am doing it does not cause any errors with the process running.
I found that if I used the url below it works to automatically login and go directly to the application page. When I tested this before and it didnt work I was using a slightly different url which was for login.jsp
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.