= Run a process in Bonita Studio
:description: You can run a process from Bonita Studio. Bonita Studio includes a test environment with all the components required to execute a process.

You can run a process from Bonita Studio. Bonita Studio includes a test environment with all the components required to execute a process.

When you run a process from Bonita Studio it runs on the local Bonita server. The server includes an Java application server (Tomcat), two databases (h2), Bonita Engine and Bonita Portal. Running a process from Bonita Studio is intended for testing during process development.

Before you can run a process, you must xref:configuring-a-process.adoc[configure the process]
and xref:organization-management-in-bonita-bpm-studio.adoc[configure the organization].

To run a process, you can :

* Right click on the process diagram on the project explorer, and select the process to run from the *run* menu.
* Open the process diagram and select the pool, then click *_Run_* in the Cool bar. The process in the selected pool runs. Only one pool can be run at a time.

If you are using one of the subscription editions, you can select the environment in which to run the process. The
process must be configured for the environment in which it runs.

There are two modes in which you can run a process, standalone and portal:

* Standalone mode uses templates to contain the form application, These templates are editable in Studio. When you run a process from the Studio, it runs in standalone mode.
* Portal mode uses a different container. When you run a process from the Portal, it runs in portal mode.
This means that if you include a script in the templates, which are the standalone container, the script cannot be called by the process when it runs in portal mode.

To include a script in a process so it can be used in portal mode, there are the following options:

* In the form, add an HTML widget that contains ``.
* In the Portal, use a xref:managing-look-feel.adoc[custom Look & Feel] that includes the JavaScript files between the ```tags of``BonitaForm.html`.
This makes the script available for all forms in all processes launched from the Portal.

To include a script in a process so it can be used in standalone mode:

* In Studio, define a custom look & feel for the Application and include the script in one of the template HTML files. The script is then available for all steps in the process.

After a process is xref:processes.adoc[deployed and initialized] in Bonita Portal, it is run by xref:cases.adoc[starting a case].
