|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.customware.gwt.dispatch.client.AbstractDispatchAsync com.tibco.bpm.web.client.services.utils.BPMWebClientService
public class BPMWebClientService
The BPMWebClientService to call in order to execute any Openspace Action.
To call the location of your AMX BPM server should first be set by calling setServiceLocation
Actions can then be executed by calling getInstance
to obtain a reference to the service and then the execute
can be called with the appropriate action.
Example code for calling an Action is shown below:
BPMWebClientService.getInstance().execute(new GetToDoList(USER_ID, 0, 100, null, null),
new AsyncCallback<GetToDoListResult>()
{
public void onFailure(Throwable e)
{
}
public void onSuccess(GetToDoListResult result)
{
}
});
©2011 Cloud Software Group, Inc.
Method Summary | ||
---|---|---|
|
execute(A action,
com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
Execute the specified Action. |
|
|
executeLogin(A action,
com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
Execute the specified Action. |
|
com.google.gwt.event.shared.EventBus |
getEventBus()
|
|
static BPMWebClientService |
getInstance()
Return the instance of the BPMWebClientService to use in subsequent calls to execute |
|
void |
setEventBus(com.google.gwt.event.shared.EventBus eventBus)
|
|
static void |
setServiceLocation(java.lang.String serviceLocation)
Call this method to set the URL for your AMX BPM server. |
Methods inherited from class net.customware.gwt.dispatch.client.AbstractDispatchAsync |
---|
onFailure, onSuccess |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setServiceLocation(java.lang.String serviceLocation)
This method should be called once before attempting to call execute
serviceLocation
- Location of the AMX BPM server (i.e. "http://localhost:8080/bpm")public static BPMWebClientService getInstance()
execute
public <A extends net.customware.gwt.dispatch.shared.Action<R>,R extends net.customware.gwt.dispatch.shared.Result> void execute(A action, com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
action
- Instance of the Action to be called.callback
- AsyncCallback
to handle the onSuccess or onFailure result of the Action.
The specified action is executed by the dispatcher servlet.
The callback function has either onSuccess or onFailure called depending on the outcome of the call.
onSuccess will be called with the appropriate Result type for the action contain the results of the call.
onFailure will be called with an exception giving details of the failure.
public <A extends net.customware.gwt.dispatch.shared.Action<R>,R extends net.customware.gwt.dispatch.shared.Result> void executeLogin(A action, com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
action
- Instance of the Action to be called.callback
- AsyncCallback
to handle the onSuccess or onFailure result of the Action.
The specified action is executed by the dispatcher servlet.
The callback function has either onSuccess or onFailure called depending on the outcome of the call.
onSuccess will be called with the appropriate Result type for the action contain the results of the call.
onFailure will be called with an exception giving details of the failure.
public com.google.gwt.event.shared.EventBus getEventBus()
public void setEventBus(com.google.gwt.event.shared.EventBus eventBus)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |