Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Might be worth checking out the Microsoft Rules Engine. It's part of the Microsoft Open Source libraries, which I think come from their employees.
I recently built a timesheet workflow system using Node-Red. I built a set of custom nodes for things like "fetch timesheet" and "lookup approver" and "post new status". Then, we used Node-Red to build the workflow from the nodes and exported the flow's json and saved it to our workflow config table. Then, when a timesheet is submitted, the matching workflow config is looked up (we have over 100 types of timesheets each with their own workflow), and a new Docker image running Node-Red is spun up which runs the workflow, then it shuts down and logs its results.
I have some experience in this area. JSON Logic let’s you serialize rules in JSON and there implementations in multiple languages. Another option would be Remote.Linq which allows you to serialize a LINQ expression tree to JSON.