All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fivefaces.cloud.workflow.function.Function Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
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