Bonita Open Solution has many features that are – while not exactly hidden – perhaps not immediately evident. So we’ll feature some tutorials to highlight a few of these. This one will show where to find the different default Web application templates provided in BOS and how to apply them. We’ll also look at how to change a confirmation message presented to an end user.
In a process modeled in Bonita Open Solution, at each manual step that takes an input, BOS automatically creates a Bonita Form with fields based on the defined data variables. These forms are presented in the default Bonita Web application for each step.
Bonita Open Solution version 5.2 includes several process-level Web application templates to choose from. This tutorial addresses how to change the process template for the default Bonita Open Solution Web application. (Just for fun we’ll also look at how to change a confirmation message.)
You can see both of these in this video.
Change the default process template
The built-in, default template in which all Bonita Open Solution Forms are presented is an html file called at the process level. Five built-in process templates are provided. Each contains the div bonita_form, which is filled at runtime.The default process Web application template:
To see the available templates provided in Bonita Open Solution, go to Pool -> Details -> Applications.
The default Process template is “black.” Its resources (CSS and images) are shown in the Figure below:
To see the other template options provided, click on Built-in template.
You can select a different process template from here – select the “white” template
and Preview it.
This is now the default process template that all your Bonita Open Solution forms and messages will be presented in.
Confirmation Messages
The confirmation message is shown whenever a process moves from one end user to the next as a case proceeds. That is, at the end of a sequence of steps performed by one user, a confirmation message is shown before the subsequent (manual) step shows up in the inbox of the next user. (For example, this is what happens when a process case is launched by a user who completes a series of forms.)Change the confirmation message
Here is the default confirmation message, shown in the “white” Web application template:To customize it, go to Process -> Pool -> Forms.
To use variables in a custom confirmation message, use Edit Expression.
Use the Groovy editor to create an expression.
The confirmation message shows in the appropriate field.
It is then presented in the process (with variables as entered by the process Initiator) when this step has completed.