public abstract class SimpleClientApi extends Object implements ClientApi
Each Client API must be associated with exactly one SimpleConnectedSystemTemplate
. A SimpleConnectedSystemTemplate
may have zero or more associated Client APIs.
The TemplateId
annotation defines the friendly name of the SimpleClientAPI when called from the Component Plugin.
Client APIs are re-instantiated per request. Therefore, each call to execute(SimpleClientApiRequest, ExecutionContext)
is on a new instance of the class.
Client APIs are immediately available once deployed. They do not require any additional configuration in Appian.
Constructor and Description |
---|
SimpleClientApi() |
Modifier and Type | Method and Description |
---|---|
ClientApiResponse |
execute(ClientApiRequest request,
ExecutionContext executionContext) |
protected abstract ClientApiResponse |
execute(SimpleClientApiRequest request,
ExecutionContext executionContext)
Defines the behavior of the Client API.
|
protected abstract ClientApiResponse execute(SimpleClientApiRequest request, ExecutionContext executionContext)
request
- A non-null SimpleClientApiRequest
.executionContext
- Contains all of the contextual information needed to execute the Client API including Designer information, Designer locale, and proxy configuration. ExecutionContext
public ClientApiResponse execute(ClientApiRequest request, ExecutionContext executionContext)
Copyright © 2018-present Appian Corporation. All Rights Reserved.