Name

sn_diagram_builder.DiagramBuilderShapeProperty

Description

No description available

Script

var DiagramBuilderShapeProperty = Class.create();

// table name
DiagramBuilderShapeProperty.TABLE = 'sn_diagram_builder_shape_property';

// table fields
DiagramBuilderShapeProperty.SHAPE_TEMPLATE = 'shape_template';
DiagramBuilderShapeProperty.CONSTANT_VALUE = 'constant_value';
DiagramBuilderShapeProperty.CUSTOM_VALUE = 'custom_value';
DiagramBuilderShapeProperty.SOURCE_PROPERTY = 'source_property';
DiagramBuilderShapeProperty.TARGET_PROPERTY = 'target_property';
DiagramBuilderShapeProperty.IS_ADVANCED = 'is_advanced';
DiagramBuilderShapeProperty.BINDING_FUNCTION = 'binding_function';
DiagramBuilderShapeProperty.VALUE_TYPE = 'value_type';

// allowed value types
DiagramBuilderShapeProperty.VALUE_TYPE_CONSTANT = 'constant';
DiagramBuilderShapeProperty.VALUE_TYPE_FUNCTION = 'function';
DiagramBuilderShapeProperty.VALUE_TYPE_DYNAMIC = 'dynamic';

// initialize script include by extending Crud base
DiagramBuilderShapeProperty.prototype = Object.extendsObject(DiagramBuilderBaseCRUD, {
  initialize: function() {
      this.table = DiagramBuilderShapeProperty.TABLE;
  },
  type: 'DiagramBuilderShapeProperty'
});

DiagramBuilderShapeProperty.getPropertiesByShapeTemplateId = function(shapeTemplateId) {
  var encodedQuery = DiagramBuilderShapeProperty.SHAPE_TEMPLATE + '=' + shapeTemplateId;
  return new DiagramBuilderShapeProperty().getByQuery(encodedQuery);
};

DiagramBuilderShapeProperty.getPropertyById = function(shapePropertyId) {
  return new DiagramBuilderShapeProperty().getById(shapePropertyId);
};

Sys ID

9b02cab80f131010e035549796767ecf

Offical Documentation

Official Docs: