Class DependentEnumsUtilities

  • All Implemented Interfaces:
    org.kie.workbench.common.widgets.decoratedgrid.client.widget.DropDownDataValueMapProvider<DependentEnumsUtilities.Context>

    public class DependentEnumsUtilities
    extends Object
    implements org.kie.workbench.common.widgets.decoratedgrid.client.widget.DropDownDataValueMapProvider<DependentEnumsUtilities.Context>
    A utility class to get the values of all Constraints\Actions in the scope of a Template Key to drive dependent enumerations. A value is in scope if it is on a Constraint or Action on the same Pattern of the base column.
    • Constructor Detail

      • DependentEnumsUtilities

        public DependentEnumsUtilities​(org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52 model,
                                       org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracle oracle)
    • Method Detail

      • getCurrentValueMap

        public Map<String,​String> getCurrentValueMap​(DependentEnumsUtilities.Context context)
        Create a map of Field Values keyed on Field Names used by SuggestionCompletionEngine.getEnums(String, String, Map) to drive dependent enumerations.
        Specified by:
        getCurrentValueMap in interface org.kie.workbench.common.widgets.decoratedgrid.client.widget.DropDownDataValueMapProvider<DependentEnumsUtilities.Context>
        Parameters:
        context - The Context of the cell being edited containing physical coordinate in the data-space.