Below is an example of a simple flow charts for a couple of standard pieces of logic.(yes this rule structure will be in the API I am thinking of creating, and it is used in both a workflow API and also a simple rule engine/expert system.)
The format displayed below is common and is found in quite a few logic building systems, for example windows workflow foundation.
Copy from a single source field to a target field
Copy from two source fields and combine to a target field
I have not shown the exact logic/process of how this rule could be created/stored/implemented.
That can wait till I cover a simple architecture that can be used to create a basic rule engine and then produce a simple code based API that will execute simple rules like the one demonstrated.
One thing I will say, is the logic structure and all you see is meta-type and meta-data driven. the meta-type/data will then be converted into a format that can be later interpreted by the API to process the logic in question.
No comments:
Post a Comment