I draw process using modeler after finished saved this file i want add costume property
contains JSON object (form builder).
what i do it’s draw diagram as below :
the below form generated from form builder :
the below JSON object will be saved :
{
“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
}
what i expect it’s like this :
<bpmn2:extensionElements> <camunda:properties> <camunda:property name="form_JSON" value="{ components: [{ input: true, tableView: true, inputType: 'text', inputMask: '', label: 'FirstName', key: 'firstName', placeholder: 'Enteryourfirstname', 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' }, { input: true, tableView: true, inputType: 'text', inputMask: '', label: 'LastName', key: 'lastName', placeholder: 'Enteryourlastname', 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' }, { type: 'select', validate: { required: false }, clearOnHide: true, persistent: true, unique: false, protected: false, multiple: true, template: '<span>{ { item.label } }</span>', authenticate: false, filter: '', refreshOn: '', defaultValue: '', valueProperty: '', dataSrc: 'values', data: { custom: '', resource: '', url: '', json: '', values: [{ label: 'Raindropsonroses', value: 'raindropsOnRoses' }, { label: 'WhiskersonKittens', value: 'whiskersOnKittens' }, { label: 'Brightcopperkettles', value: 'brightCopperKettles' }, { label: 'WarmwoolenMittens', value: 'warmWoolenMittens' }, []] }, placeholder: 'Selectafew', key: 'favoriteThings', label: 'FavoriteThings', tableView: true, input: true }, { input: true, tableView: true, label: 'Message', key: 'message', placeholder: 'Whatdoyouthink?', prefix: '', suffix: '', rows: 3, multiple: false, defaultValue: '', protected: false, persistent: true, validate: { required: false, minLength: '', maxLength: '', pattern: '', custom: '' }, type: 'textarea', conditional: { show: false, when: null, eq: '' } }, { type: 'button', theme: 'primary', disableOnInvalid: true, action: 'submit', block: false, rightIcon: '', leftIcon: '', size: 'md', key: 'submit', tableView: false, label: 'Submit', input: true }], display: 'form' };" /> </camunda:properties> </bpmn2:extensionElements>