Launch Bonita process from an external apps Bonita 6.2.1

1
0
-1

Hi.

I want to launch my process from Java app; My process already deployed and running on Jboss 5.1 (Bonita BPM version 6.2.1).

I tried follow this guide: http://documentation.bonitasoft.com/create-process-instance-and-set-vari... , but i dont know how to build the object for the session "APISession apiSession". If someone knows how to do this please share...

1 answer

1
0
-1
This one is the BEST answer!

Hi,

To create a new session in V6, you must use the following code:

LoginAPI loginAPI = TenantAPIAccessor.getLoginAPI();

APISession session = loginAPI.login(username, password);

where username and password are username and password stored in bonita database (walter.bates as username and bpm as password for example).

Hope it can help you

Karim

Notifications