n = reader.read( buffer );
}
String xactionStr = str.toString();
solutionEngine.setSession( session );
IRuntimeContext runtimeContext =
solutionEngine
.execute(
xactionStr,
"SetGlobalOutputTest.xaction", "empty action sequence test", false, true, instanceId, false,
parameterProviderMap, null, null, urlFactory, messages ); //$NON-NLS-1$ //$NON-NLS-2$
assertNotNull( "RuntimeContext is null", runtimeContext );
assertEquals( "Action sequence execution failed", runtimeContext.getStatus(),
IRuntimeContext.RUNTIME_STATUS_SUCCESS );
IParameterProvider provider = PentahoSystem.getGlobalParameters();
String parameter = provider.getStringParameter( "GLOBAL_TEST", null ); //$NON-NLS-1$
assertNotNull( parameter );
assertEquals( "This is a test", parameter ); //$NON-NLS-1$