Name

sn_diagram_builder.DiagramBuilderShapePropertyOverrideService

Description

No description available

Script

var DiagramBuilderShapePropertyOverrideService = Class.create();
DiagramBuilderShapePropertyOverrideService.prototype = {
  initialize: function() {},

  type: 'DiagramBuilderShapePropertyOverrideService'
};

DiagramBuilderShapePropertyOverrideService.getPropertyOverrideByTemplateMapId = function(templateMapId) {
  var shapePropertyOverridesGr = DiagramBuilderShapePropertyOverride.getPropertyOverrideByTemplateMapId(templateMapId);
  var shapePropertyOverrides = [];
  while (shapePropertyOverridesGr.next()) {
      shapePropertyOverrides.push({
  		isAdvanced: shapePropertyOverridesGr.getValue(DiagramBuilderShapePropertyOverride.IS_ADVANCED) === "1",
  		bindingFunction: shapePropertyOverridesGr.getValue(DiagramBuilderShapePropertyOverride.BINDING_FUNCTION),
  		isCustom: shapePropertyOverridesGr.getValue(DiagramBuilderShapePropertyOverride.VALUE_TYPE) === DiagramBuilderShapePropertyOverride.VALUE_TYPE_FUNCTION,
  		customValue: shapePropertyOverridesGr.getValue(DiagramBuilderShapePropertyOverride.CUSTOM_VALUE),
          constantValue: shapePropertyOverridesGr.getValue(DiagramBuilderShapePropertyOverride.CONSTANT_VALUE),
          shapeProperty: shapePropertyOverridesGr.getValue(DiagramBuilderShapePropertyOverride.SHAPE_PROPERTY),
          shapeTemplateMap: shapePropertyOverridesGr.getValue(DiagramBuilderShapePropertyOverride.SHAPE_TEMPLATE_MAP),
  		isDynamic: shapePropertyOverridesGr.getValue(DiagramBuilderShapePropertyOverride.VALUE_TYPE) === DiagramBuilderShapePropertyOverride.VALUE_TYPE_DYNAMIC,
          sourceProperty: shapePropertyOverridesGr.getValue(DiagramBuilderShapePropertyOverride.SOURCE_PROPERTY),
          sysId: shapePropertyOverridesGr.getUniqueValue()
      });
  }
  return shapePropertyOverrides;
};

Sys ID

23de42700f531010e035549796767efb

Offical Documentation

Official Docs: