implement and/or pattern in flow dsl