1 17 package org.apache.servicemix.beanflow; 18 19 import java.util.logging.Logger ; 20 21 public class CountWorkflow extends Workflow<String > { 22 23 private static Logger log = Logger.getLogger(CountWorkflow.class.getName()); 24 25 public static int count = 0; 26 27 public CountWorkflow() { 28 super("startStep"); 29 } 30 public String startStep() { 31 count += 1; 32 log.info("Workflow: Validation"); 33 return "persistenceStep"; 35 } 36 public String persistenceStep() { 37 count += 1; 38 log.info("Workflow: Persistence"); 39 return "transferStep"; 41 } 42 public String transferStep() { 43 count += 1; 44 log.info("Workflow: Transfer"); 45 return "stop"; 47 } 48 } | Popular Tags |