Gatling - Set Request name dynamically

Can I define a rquest name dynamically? I tried that with http(s"/product${prID}"but I am getting an error (variable prID not found):

    val searchByProductIdTask = exec(http(s"/product${prID}")
        .post(appURL + "/api/product/search")
        .headers(jsonHeader)
        .body(StringBody(my_string_body)).asJSON
        .check(status.is(200), responseTimeInMillis.lessThan("${expectedResponseTime}"))
    ).pause(5)

try to remove ‘s’ before “/product${prID}”

在 2018年6月19日星期二 UTC+8下午7:58:57,roman…@gmail.com写道: