Package org.springframework.boot

Examples of org.springframework.boot.CommandLineRunner


    @Bean
    CommandLineRunner init(
            final AnalysingService analysingService,
            final RuntimeService runtimeService) {
        return new CommandLineRunner() {
            @Override
            public void run(String... strings) throws Exception {

                String integrationGatewayProcess = "integrationGatewayProcess";
View Full Code Here


     //  establish that it's detected the processes and that we can deploy one.
    @Bean
    CommandLineRunner basics(
            final PlatformTransactionManager platformTransactionManager,
            final RuntimeService runtimeService) {
        return new CommandLineRunner() {
            @Override
            public void run(String... strings) throws Exception {
                runtimeService.startProcessInstanceByKey("waiter", Collections.singletonMap("customerId", (Object) 243L));
            }
        };
View Full Code Here

@ComponentScan
@EnableAutoConfiguration
public class Application {
    @Bean
    CommandLineRunner seedUsersAndGroups(final IdentityService identityService) {
        return new CommandLineRunner() {
            @Override
            public void run(String... strings) throws Exception {


                // install groups & users
View Full Code Here

        }
    }

    @Bean
    CommandLineRunner seedUsersAndGroups(final IdentityService identityService) {
        return new CommandLineRunner() {
            @Override
            public void run(String... strings) throws Exception {

                // install groups & users
                Group group = identityService.newGroup("user");
View Full Code Here

        SpringApplication.run(Application.class, args);
    }

    @Bean
    CommandLineRunner init(final PhotoService photoService) {
        return new CommandLineRunner() {
            @Override
            public void run(String... strings) throws Exception {
                photoService.launchPhotoProcess("one", "two", "three");
            }
        };
View Full Code Here

@EnableAutoConfiguration
public class Application {

    @Bean
    CommandLineRunner startProcess(final RuntimeService runtimeService, final TaskService taskService) {
        return new CommandLineRunner() {
            @Override
            public void run(String... strings) throws Exception {
                for (int i = 0; i < 10; i++)
                    runtimeService.startProcessInstanceByKey("waiter", Collections.singletonMap("customerId", (Object) i ));
View Full Code Here

TOP

Related Classes of org.springframework.boot.CommandLineRunner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.