Overview
You have a JSP page that is external to your Aurea Process (formerly known as CX Process, Savvion and SBM) 2021 R1 server's sbm.war folder and would like to know which APIs you need to use to log into Aurea Process from the JSP page.
Information
Aurea Process provides a public API called the BizSite API that provides a mechanism for you to incorporate features of the BPM Portal within customized applications and to create your own specialized portals. The BizSite API can be used to log into Aurea Process from an external JSP page.
To log into Aurea Process, you will need to get access to the BizSite API within your JSP by including BizSite API Bean using the following code:
<jsp:useBean id="bizSite" class="com.savvion.sbm.bpmportal.bizsite.api.BizSiteBean" scope="session"/>
To set your session with a user's username and password, you will need to do the following:
String username = "ebms";
String passwd = "ebms";
com.savvion.sbm.bpmportal.domain.BMUserBean bmbean = new com.savvion.sbm.bpmportal.domain.BMUserBean(username, passwd, false);
session.setAttribute("username",username); session.setAttribute("password",passwd);
boolean b= bizSite.login(bmbean);
Attached is an example JSP that utilizes the code above to log into Aurea Process from an external JSP.