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

com.redhat.parodos.examples.JdbcWorkFlowConfiguration Maven / Gradle / Ivy

There is a newer version: 1.0.20
Show newest version
package com.redhat.parodos.examples;

import com.redhat.parodos.tasks.jdbc.JdbcWorkFlowTask;
import com.redhat.parodos.workflow.annotation.Infrastructure;
import com.redhat.parodos.workflows.workflow.SequentialFlow;
import com.redhat.parodos.workflows.workflow.WorkFlow;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
@Profile("jdbc")
public class JdbcWorkFlowConfiguration {

	@Bean
	JdbcWorkFlowTask jdbcTask() {
		return new JdbcWorkFlowTask();
	}

	@Bean
	@Infrastructure
	WorkFlow jdbcWorkFlow(JdbcWorkFlowTask jdbcTask) {
		return SequentialFlow.Builder.aNewSequentialFlow().named("jdbcWorkFlow").execute(jdbcTask).build();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy