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

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

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

import com.redhat.parodos.tasks.rest.RestWorkFlowTask;
import com.redhat.parodos.workflow.annotation.Infrastructure;
import com.redhat.parodos.workflows.workflow.SequentialFlow;
import com.redhat.parodos.workflows.workflow.WorkFlow;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
@Profile("rest")
public class RestWorkFlowConfiguration {

	@Bean
	RestWorkFlowTask restTask() {
		return new RestWorkFlowTask();
	}

	@Bean
	@Infrastructure
	WorkFlow restWorkFlow(@Qualifier("restTask") RestWorkFlowTask restTask) {
		return SequentialFlow.Builder.aNewSequentialFlow().named("restWorkFlow").execute(restTask).build();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy