parseConstraint( factPattern, pattern.getConstraint(), boundParams, dmo );
for (BehaviorDescr behavior : pattern.getBehaviors()) {
if ( behavior.getText().equals("window") ) {
CEPWindow window = new CEPWindow();
window.setOperator( "over window:" + behavior.getSubType() );
window.setParameter("org.kie.guvnor.guided.server.util.BRDRLPersistence.operatorParameterGenerator",
"org.drools.workbench.models.commons.backend.rule.CEPWindowOperatorParameterDRLBuilder");
List<String> params = behavior.getParameters();
if (params != null) {
int i = 1;
for (String param : params) {
window.setParameter("" + i++, param);
}
}
factPattern.setWindow(window);
}
}