Skip to content

Instantly share code, notes, and snippets.

@caponetto
Created September 9, 2020 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caponetto/bab7577355c78641ec1e31c0f1d7667a to your computer and use it in GitHub Desktop.
Save caponetto/bab7577355c78641ec1e31c0f1d7667a to your computer and use it in GitHub Desktop.
Backend sample service: Capability on the editor
package org.appformer.kogito.bridge.client.capability.sample;
import elemental2.promise.Promise;
import org.appformer.kogito.bridge.client.capability.CapabilityResponse;
/**
* Sample capability.
*/
public interface SampleCapability {
/**
* Sample method that returns a greeting with the given name after a given delay.
*
* @param name The person's name.
* @param delay The time in ms for delaying the response.
* @return A greeting after the delay.
*/
Promise<CapabilityResponse<String>> hello(String name, int delay);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment