draw.io画图转json问题
- Dominant language
- C++
- Stars
- 321
- Forks
- 114
- PR merge metrics
- No merged PRs in 30d
Description
圆角矩形节点怎么储存变量到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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the params-type documentation and the draw.io rounded-rectangle example described in the issue; trace how dmkit_param_context_xxxx is expected to be defined and read through session.context. Done means the documentation gives an exact node example and the generated JSON contains the resulting context value.
Written by the indexing model from the issue text.
Assessment
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100