Skip to content

BpsLogicBuilder/LogicBuilder.DataContracts

Repository files navigation

LogicBuilder.DataContracts

Build Status CodeQL Quality Gate Status NuGet

A .NET Standard 2.0 library that defines data transfer objects (DTOs) for real-time deployment of business rules during development from the Logic Builder Client to Web API endpoints.

Purpose

This library provides the contract definitions used for communication between the Logic Builder design-time client and runtime Web API services. It enables developers to deploy and manage business rules dynamically without recompiling the target application.

Data Contracts

ModuleData

Represents a deployable module containing compiled business rules and associated resources.

  • RulesStream - Binary stream of compiled rules
  • ResourcesStream - Binary stream of module resources
  • ModuleName - Identifier for the module
  • Application - Target application name
  • UserData - Custom metadata
  • UploadedBy - User who deployed the module
  • UploadedTime - Deployment timestamp

DeleteRulesData

Represents a request to delete specific rule files from the target application.

  • Files - Array of file paths to delete
  • Application - Target application name
  • UserData - Custom metadata
  • DeletedBy - User who initiated the deletion
  • DeleteTime - Deletion timestamp

DeleteAllRulesData ⚠️ Obsolete

Note: This class is obsolete. To delete all rules, select the top node in the treeview, which will select all nodes and use the DeleteRulesData class for each instance.

VariableMetaData ⚠️ Obsolete

Note: This class is obsolete. It was used for standard forms which have been removed since LogicBuilder v2.0.0.

Installation

dotnet add package LogicBuilder.DataContracts

Usage

These DTOs are serialized as JSON when transmitted between the Logic Builder client and your Web API. Implement endpoints in your API that accept these contracts to enable dynamic rule deployment.

Target Framework

  • .NET Standard 2.0 (compatible with .NET Framework 4.6.1+ and .NET Core 2.0+)

Links

License

MIT License - Copyright © BPS 2017

About

LogicBuilder.DataContracts defines the objects used to for real-time deployment of the rules during development - from the Logic Builder Client to the Web-API.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages