title: How can I create dynamic rule in apache-flink?
body: <p>I'm using flink with Java and I succeeded in defining a static pattern as follow:</p>
  <pre><code>Pattern&lt;Event, ?&gt; pattern = Pattern.&lt;Event&gt;
              begin(&quot;first&quot;)
              .where(
                      new SimpleCondition&lt;Event&gt;() {
                          @Override
                              public boolean filter(Event event) {
                              return event.getTemperature() &gt; 50;
                           }
                      }).within(Time.seconds(10L));
  </code></pre>
  <p>Is there a way in apache-flink to create patterns in a dynamic way?
  I need to define the pattern according to user's input.</p>
  <p>Thanks</p>