

package org.springframework.cloud.dataflow.server.service;

/**
 * Provides task saving service.
 *
 * @author Daniel Serleg
 */
public interface TaskSaveService {
    /**
     * Saves the task definition. If it is a Composed Task then the task definitions required
     * for a ComposedTaskRunner task are also created.
     *
     * @param name The name of the task.
     * @param dsl The dsl that comprises the task.
     */
    void saveTaskDefinition(String name, String dsl);
}
