bpmn - 如何将表单生成器生成的 JSON 保存在流程用户任务中?
问题描述
我正在创建流程让 usertask 包含从Form Builder创建的表单,如何在流程中保留此 JSON?
它应该在扩展选项卡中创建属性,并且在启动过程时表单应该重新加载 JSON 属性值?
有例子我可以跟进吗?
JSON 生成:
{
components: [
{
input: true,
tableView: true,
inputType: "text",
inputMask: "",
label: "First Name",
key: "firstName",
placeholder: "Enter your first name",
prefix: "",
suffix: "",
multiple: false,
defaultValue: "",
protected: false,
unique: false,
persistent: true,
validate: {
required: false,
minLength: "",
maxLength: "",
pattern: "",
custom: "",
customPrivate: false
},
conditional: {
show: false,
when: null,
eq: ""
},
type: "textfield",
$$hashKey: "object:14",
autofocus: false,
hidden: false,
clearOnHide: true,
spellcheck: true
},
{
input: true,
tableView: true,
inputType: "text",
inputMask: "",
label: "Last Name",
key: "lastName",
placeholder: "Enter your last name",
prefix: "",
suffix: "",
multiple: false,
defaultValue: "",
protected: false,
unique: false,
persistent: true,
validate: {
required: false,
minLength: "",
maxLength: "",
pattern: "",
custom: "",
customPrivate: false
},
conditional: {
show: false,
when: null,
eq: ""
},
type: "textfield",
$$hashKey: "object:15",
autofocus: false,
hidden: false,
clearOnHide: true,
spellcheck: true
},
{
type: "button",
theme: "primary",
disableOnInvalid: true,
action: "submit",
block: false,
rightIcon: "",
leftIcon: "",
size: "md",
key: "submit",
tableView: false,
label: "Submit",
input: true,
$$hashKey: "object:18",
autofocus: false
}],
display: "form",
page: 0
});
解决方案
推荐阅读
- javascript - 如何在 Angular 中使用 HttpClient 从资产中下载文件?
- java - 在 Java EE TimerService 中启动后更改计时器
- asp.net-identity - 在服务器端 Blazor 项目中搭建标识时出错
- batch-file - 如何在打开 cmd.exe 时停止我的批处理文件并推送引用 unc?
- angular - Angular Service Worker 错误地拦截了 http 重定向 (302)
- sql - 如何在 SQL Server 中使用日期范围连接两个表?
- tinybutstrong - 如何使用 TinyButStrong TBS 在 OpenOffice ODG 文档中选择母版幻灯片
- oauth-2.0 - 将现有网站升级到 OAuth2 授权服务器
- .htaccess - 使用相同的子文件夹重定向不同的 url
- javascript - 如何比较两个 BSON 对象