Giter VIP home page Giter VIP logo

thierry-sinassamy / dataobjectexception.dynamics365.plugin Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.56 MB

Dynamics 365 - Code Architecture for Plugin using IServiceContainer, IServiceProvider and Rule Patterns related to the pipelines of Dynamics 365 (Plugin Execution Context)

C# 100.00%
dynamics-365 csharp oop-principles dependency-injection aggregation-pipleline repository-pattern gof-patterns cqrs-pattern command-pattern dispatcher

dataobjectexception.dynamics365.plugin's Introduction

dataobjectexception.dynamics365.plugin : aggregation and pipelines in D365

Context and problem

In a CRM pipeline, all business rules are encapsulated in the same process, executing all business rules whareas we do not need to do this way.
The CRM Plugin pipeline should implement a strategy by separting the executing of the business rules from their execution rule. So, a rule validation would clarify when the business rule has to be executed.

Solution

Regarding the problem, implementing design patterns regarding the CRM pipeline would be helpful.
Using Rule Pattern, Factory Pattern, Singleton Pattern, Dependency Injection help to separate the execution rules in CRM pipeline related to an entity from the rules of validation related to the same entity as well.
Moreover, all rules of validation could be aggregated regarding one process related to one entity, trigerring the business rule if needed.

Dynamics365CodeArchitectureAndConcept

Issues and considerations

Some challenges of implementing this separation include :

-- Lifecycle of the objects : avoid stackoverflow, memory handling,...
-- Complexity : initialization of plugins will increase if we increase the number of entities,...
-- Performance : do not increase the initial performance of the plugins, not made for bulk operations,...

When to use this pattern

Use this pattern to:
-- isolate the execution (process) from the execution rules or validation rules
-- to tag the execution rules with the messagename (i.e. Creation,...), with the pipeline stage (i.e PreOperation,...)

This pattern may not be suitable:
-- for small projects, for lesser degree of complexity

dataobjectexception.dynamics365.plugin's People

Contributors

thierry-sinassamy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.