SimpleOutputHandler outputHandler = null;
String instanceId = null;
ISolutionEngine solutionEngine = PentahoSystem.get( ISolutionEngine.class, session );
solutionEngine.setLoggingLevel( PentahoSystem.loggingLevel );
solutionEngine.init( session );
String baseUrl = ""; //$NON-NLS-1$
HashMap parameterProviderMap = new HashMap();
if ( sessionParameters == null ) {
sessionParameters = new PentahoSessionParameterProvider( session );
}
parameterProviderMap.put( SCOPE_SESSION, sessionParameters );
IPentahoUrlFactory urlFactory = new SimpleUrlFactory( baseUrl );
ArrayList messages = new ArrayList();
IRuntimeContext context = null;
try {
context =
solutionEngine.execute( sessionStartupAction.getActionPath(), "Session startup actions", false, true,
instanceId, false, parameterProviderMap, outputHandler, null, urlFactory, messages ); //$NON-NLS-1$
// if context is null, then we cannot check the status
if ( null == context ) {
return;