Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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