A method,
system,
computer program product of providing a FiniteStateMachine (FSM) with embedded business rules,
processing data & events, where each state is individually saved to
blockchain ledger, a data
record including a
unique identifier / name, a set of
input field(s) or input data slots, state rules in a rule language, and set of output field names or output data slots, method including: executing of a
Smart Contract by identifying state by id or name, loading corresponding Component State from
blockchain, adding / executing code for
processing the State's behavior, where the code includes rules for the state in the rule language (e.g., but not limited to. Open Policy Agent, Rego, Prolog,
DataLog, RuleML, Drools Rule Language, NRules, and JavaScriptObjectNotation(
JSON), etc.).
System includes processor(s), application program interface (API(s)) for communicating,
blockchain, rule processor, and memory. This enhances transparency, immutability, and secure execution of business rules within FSM architecture.