com.fivefaces.cloud.workflow.function.Function Maven / Gradle / Ivy
package com.fivefaces.cloud.workflow.function;
import org.json.JSONObject;
import org.springframework.boot.web.client.RestTemplateBuilder;
public abstract class Function {
protected final RestTemplateBuilder restTemplateBuilder;
protected Function(RestTemplateBuilder restTemplateBuilder) {
this.restTemplateBuilder = restTemplateBuilder;
}
public abstract void setup(JSONObject jsonParameters);
public abstract JSONObject process(JSONObject jsonParameters) throws Exception;
public abstract void cleanup(JSONObject jsonParameters);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy