Entryfactory Table usage

entryFactory.table how to pass values in magic.json.

Provide some context so we can help you.

ExclusiveTableProps.js

import entryFactory from 'bpmn-js-properties-panel/lib/factory/EntryFactory';

import {
is
        } from 'bpmn-js/lib/util/ModelUtil';


export default function (group, element) {

    if (is(element, 'bpmn:ExclusiveGateway')) {
        group.entries.push(entryFactory.table({
            id: 'exclusivetableprop',
            label: 'Rule Configuration',
            modelProperties: [ 'key', 'value' ]
        }));
    }
}

Magic.json

{
    "name": "Magic",
    "prefix": "property",
    "uri": "http://magic",
    "xml": {
        "tagAlias": "lowerCase"
    },
    "associations": [],
    "types": [
        {
            "name": "BewitchedStartEvent",
            "extends": [
                "bpmn:BaseElement"
            ],
            "properties": [
                {
                    "name": "parenttask",
                    "isAttr": true,
                    "type": "String"
                },
                {
                    "name": "oeprop",
                    "isAttr": true,
                    "type": "String"
                },
                {
                    "name": "restfulprop",
                    "isAttr": true,
                    "type": "String"
                },
                {
                    "name": "functionprop",
                    "isAttr": true,
                    "type": "String"
                },
                {
                    "name": "claimprop",
                    "isAttr": true,
                    "type": "Integer"
                },
                {
                    "name": "dueprop",
                    "isAttr": true,
                    "type": "Integer"
                },
                {
                    "name": "usergroupprop",
                    "isAttr": true,
                    "type": "String"
                }
            ]
        }    ]
}

How to add values in properties .

First of all please make sure to format you code examples so they are readable. (I’ve done that for you.)

So you have created a model extension and you want to be able to edit these properties in the properties panel. Is that right?

yes, I need a table in my custom property panel

You’ll have to extend the properties panel then. This is not trivial but possible. Have you had a look at how the properties panel works?