LoginAction
Allows the resource to login to TIBCO ActiveMatrix BPM applications. The Login action is part of executeLogin.
Action | LoginAction |
Parameter Notes |
|
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); |
Copyright © Cloud Software Group, Inc. All rights reserved.