Skip to content

draw.io画图转json问题 #118

@leshphonc

Description

@leshphonc

圆角矩形节点怎么储存变量到session.context,文档上写的不清楚
例子:
PARAM:param_type:param_name1=param_value2
PARAM:param_type:param_name1=param_value2
BOT:XXXXXXX{%param_name1%}XXX{%param_name2%}

这里并没有写出session该怎么写,只给出了一段让我猜破头也猜不出的话:

该节点表示BOT应该执行的回复,同时节点中可以定义参数并对回复进行模板填充。

在这里定义dmkit_param_context_xxxx变量时,dmkit自动将该变量以xxxx为key存入本轮session结果context。下一轮可以定义type=session_context,value=xxxx的变量来读取,也可以直接使用value={%dmkit_param_context_xxxx%}来获取,具体可参考params类型及说明

问题是如何定义dmkit_param_context_xxxx呢??
我试过在圆角矩形节点里写:
1.dmkit_param_context_surname={%surname%}
2.PARAM:session_context:dmkit_param_context_surname={%surname%}
但是编译出的文件里并没有找到此context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions