String name = ViewEnum.PRIOR_EVENT_VIEW.getName();
ViewFactory factory = statementContext.getViewResolutionService().create(namespace, name);
viewFactories.add(factory);
ViewFactoryContext context = new ViewFactoryContext(statementContext, streamNumber, viewFactories.size() + 1, namespace, name);
factory.setViewParameters(context, Arrays.asList((ExprNode) new ExprConstantNodeImpl(unboundStream)));
}
catch (ViewProcessingException ex)
{
String text = "Exception creating prior event view factory";
throw new EPException(text, ex);