LoginAction

Allows the resource to login to TIBCO ActiveMatrix BPM applications. The Login action is part of executeLogin.

Action LoginAction
Parameter Notes
  • getUser  contains the user name of the user to log in to the BPM application.
  • getPassword  contains the password of the user to log in to the BPM application.
  • isUserInfo  can be set to true or false. If set to false, then the LoginResult only returns true or false, depending on whether the log in has been successful or not. If set to true, the ArrayList of the OrgModelEntityID is returned as well as true/false.
Return LoginResult
Example
LoginAction loginAction = new LoginAction(view.getUserName(), view.getPassword(), view.isUserInfo());
BPMWebClientService.getInstance().executeLogin(loginAction, new AsyncCallback<LoginResult>()
{
@Override
public void onFailure(Throwable caught)
{
view.onLoginFailure(caught);
}
@Override
public void onSuccess(LoginResult result)
{
BPMWebClientService.getInstance().execute(new CreateOrUpdateUser(view.getUserName()),
new AsyncCallback<CreateOrUpdateUserResult>()
{
@Override
public void onFailure(Throwable caught)
Window.alert(caught.getMessage());
}
@Override
public void onSuccess(CreateOrUpdateUserResult result)
{
//
}
});
view.onLoginSuccess(result);

Required System Action

None.