请求输入(Input)
fun <T> requestInput(interruptId: String = Uuid.random(), message: String? = null, payload: Any? = null, responseSchema: Schema? = null): T
Asks the user for input like NodeBody.requestInput, and sends payload as JSON through the same mapper as typed ports, so a record or POJO reaches the client in its JSON form.
Throws
if Jackson cannot write payload.
Asks the user for input with request and sends its payload as JSON, like the other requestInput overload. For example, build the request with RequestInput.builder to set only a message.
Throws
if Jackson cannot write the payload of request.