solutionEngine.setSession( session ); runtimeContext = solutionEngine.execute( xactionStr, actionSequence, "action sequence test", false, true, instanceId, false, //$NON-NLS-1$
solutionEngine.setSession( session ); IRuntimeContext runtimeContext = solutionEngine.execute( xactionStr, "test1.xaction", "empty action sequence test", false, true, instanceId, //$NON-NLS-1$ //$NON-NLS-2$
public ISolutionEngine getSolutionEngine( String path ) { StandaloneApplicationContext applicationContext = new StandaloneApplicationContext( path, "" ); //$NON-NLS-1$ if ( !PentahoSystem.getInitializedOK() ) { PentahoSystem.init( applicationContext ); assertTrue( "PentahoSystem did not initialize", PentahoSystem.getInitializedOK() ); //$NON-NLS-1$ } IPentahoSession session = new StandaloneSession( "system" ); //$NON-NLS-1$ ISolutionEngine solutionEngine = PentahoSystem.get( ISolutionEngine.class, session ); assertNotNull( "SolutionEngine is null", solutionEngine ); //$NON-NLS-1$ solutionEngine.setLoggingLevel( ILogger.ERROR ); solutionEngine.init( session ); try { solutionEngine.setSession( session ); return solutionEngine; } catch ( Exception e ) { // we should not get here e.printStackTrace(); assertTrue( e.getMessage(), false ); } return null; }