...
$statusCond = orCondition(), $statusCond = addElement($statusCond, fieldCondition("productStatus", _EQUALS, "OK" ), $statusCond = addElement($statusCond, fieldCondition("productStatus", _EQUALS, "GOOD" ), $filter = orCondition(), $filter = addElement($filter, fieldCondition("productId", _EQUALS, in.productId) ), $filter = addElement($filter, $statusCond), ....