如何在流程用户任务中保存从Form Builder生成的JSON?

时间:2018-07-15 22:13:14

标签: bpmn camunda camunda-modeler

我正在创建流程,使用户任务包含从 Form Builder 创建的表单,如何在此流程中保留此JSON?

应该在扩展选项卡中创建属性,并且在启动过程时应重新加载JSON属性值?

有例子可以跟进吗?

Process Diagram

Form Created

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

}         );

0 个答案:

没有答案