How to use the dmn-js-shared/lib/util/ModelUtil.getBusinessObject function in dmn-js-shared

To help you get started, we’ve selected a few dmn-js-shared examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bpmn-io / dmn-js / packages / dmn-js-decision-table / src / features / decision-table-head / components / DecisionTableHead.js View on Github external
render(props) {
    const root = this._sheet.getRoot();

    if (!is(root, 'dmn:DMNElement')) {
      return null;
    }

    const businessObject = getBusinessObject(root);

    const inputs = businessObject.input,
          outputs = businessObject.output;

    return 
      

        {
          this.slotFills({
            type: 'cell',
            context: { cellType: 'before-label-cells' }
          })
        }

        {
          this.slotFill({
github bpmn-io / dmn-js / packages / dmn-js-decision-table / lib / features / decision-table-head / components / DecisionTableHeadComponent.js View on Github external
render(props) {

    const { components } = this.context;

    const root = this._sheet.getRoot();

    if (!is(root, 'dmn:DMNElement')) {
      return null;
    }

    const businessObject = getBusinessObject(root);

    const inputs = businessObject.input,
          outputs = businessObject.output;

    const InputLabelCellComponent = components.getComponent(
      'cell',
      { cellType: 'input-label' }
    );
    const OutputLabelComponent = components.getComponent(
      'cell',
      { cellType: 'output-label' }
    );

    const beforeComponents = components.getComponents(
      'cell',
      { cellType: 'before-label-cells' }