函数节点(Nodes)
Creates FunctionNodes from Java with a type per port. Jackson reads each input into its declared type and writes each output as JSON, so records and POJOs work as ports, and a port typed this way infers no schema; Object.class leaves a port untyped, a Content or Event port passes values unchanged, and a String port reads a message as its text, passes null through, rejects any other non-text value, and infers a string schema. To run a node on each item of a list, wrap it with FunctionNode.parallelOf.
Numbers, booleans, enums, and text inside a record follow the coercion rules of Kotlin ports: a value of the JSON type, the same literal quoted, or a whole number into an integer. The exceptions keep Jackson's readers: a char reads a number as a code point, an enum name is trimmed, and BigInteger, BigDecimal, the Atomic* types and primitive arrays stay lenient. A primitive field rejects an explicit null. An enum that Jackson writes as its ordinal, or a boolean it writes as 1 or 0, such as under a numeric @JsonFormat shape, reads back from that number.
函数
喜欢 builder 适用于各种通用端口类型的类(classes): List<String>.
喜欢 builder 适用于各种输入类型的通用解决方案(即具有通用性的解决方案)。
喜欢 builder 使用 `with classes` 可以获得通用的输出类型(即适用于多种情况的输出格式)。
返回一个 FunctionNode.Builder “哪个节点会将输入数据读取为……” inputType 然后进行写入操作(即将数据写入到目标文件或存储系统中)。 outputType 输出结果为 JSON 格式,用于设置相关属性。 的 不接受任何输入参数;其功能是通过自身的逻辑或数据来实现的。 dispatcher正如……中所提到的那样 的.
喜欢 的 适用于各种通用端口类型的类(classes): List<String>.
喜欢 的 适用于各种输入类型的通用解决方案(即具有通用性的解决方案)。
喜欢 的 使用 `with classes` 可以获得通用的输出类型(即适用于多种情况的输出格式)。
返回一个名为……的节点。 名称 那个可以运行的程序/系统…… `body` 在每次读取输入数据时…… inputType 并将自己的内容写入其中。 outputType 将结果输出为 JSON 格式。 `body` 在某个线程上运行 dispatcher默认情况下, Dispatchers.IO 不受线程数量限制的影响;详见…… NodeBody:
向用户请求输入信息。 请求 然后以 JSON 格式发送其数据内容,与其他方式相同。 requestInput **重载(Overload)**。例如,可以使用以下方式构建请求: RequestInput.builder 仅用于设置一条消息。
向用户请求输入(例如:用户名、密码等)。 NodeBody.requestInput然后发送(数据)。 payload 数据通过相同的映射器以 JSON 格式传输;因此,记录或 POJO 对象会以 JSON 格式到达客户端。