com.ibm.js.team.monitoring.custom.service.expensivescenario/src/com/ibm/js/team/monitoring/custom/service/expensivescenario/RegisterScenarioExample.java
public static void serviceWorkflow(ITeamRepository teamRepository, final String scenarioName)
			throws URISyntaxException, Exception {

		// Simple scenario persisted in String
		IExpensiveScenarioService service = new ExpensiveScenarioService(teamRepository, scenarioName);
		String scenarioInstance = service.start();
		//
		// TODO: Your code goes here
		//
		service.stop(scenarioInstance);

		// Example with file persistence
		IPersistedExpensiveScenarioService persistedService = new FilePersitentExpensiveScenarioService(
				new ExpensiveScenarioService(teamRepository, scenarioName));
		persistedService.start();
		//
		// TODO: Your code goes here
		//
		persistedService.stop();
	}
/**
	 * Examples of how to use the services
	 * 
	 * @param teamRepository
	 * @param scenarioName
	 * @throws URISyntaxException
	 * @throws Exception
	 */
Examples of how to use the services

@param teamRepository
@param scenarioName
@throws URISyntaxException
@throws Exception
Examples of how to use the services @param teamRepository @param scenarioName @throws URISyntaxException @throws Exception
public static void serviceWorkflow(ITeamRepository teamRepository, final String scenarioName)
			throws URISyntaxException, Exception {
		IExpensiveScenarioService service = new ExpensiveScenarioService(teamRepository, scenarioName);
		String scenarioInstance = service.start();
		 TODO: Your code goes here
		service.stop(scenarioInstance);
		 Example with file persistence
		IPersistedExpensiveScenarioService persistedService = new FilePersitentExpensiveScenarioService(
				new ExpensiveScenarioService(teamRepository, scenarioName));
		persistedService.start();
		 TODO: Your code goes here
		persistedService.stop();
	}
public static void serviceWorkflow ( ITeamRepository teamRepository , final String scenarioName ) throws URISyntaxException , Exception { IExpensiveScenarioService service = new ExpensiveScenarioService ( teamRepository , scenarioName ) ; String scenarioInstance = service . start ( ) ; service . stop ( scenarioInstance ) ; IPersistedExpensiveScenarioService persistedService = new FilePersitentExpensiveScenarioService ( new ExpensiveScenarioService ( teamRepository , scenarioName ) ) ; persistedService . start ( ) ; persistedService . stop ( ) ; }
Examples of how to use the services
Examples of how to use the services
// Simple scenario persisted in String // // TODO: Your code goes here // // Example with file persistence // // TODO: Your code goes here //