ajmalik56/Lightweight-Django-Workflow-Engine ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple Django workflow engine that lets me define and manage state based processes from the admin.

I want to be able to create a workflow, add states, and connect them with manual or automatic transitions. Automatic transitions should run when an object enters a state, and I want priorities and delays to decide which one happens first. I also need conditions that can check things about the object or the user, including custom Python functions with parameters. When a transition happens, it should be able to run callback functions too, either right away or after the state changes.

Please make it easy to attach a workflow to a model object, check its current state, and ask what transitions are available for a given user so I can show the right buttons in a UI. A small example workflow with approval style states would be great, and please include the Django admin setup so the workflow can be configured at runtime. If anything needs current Django guidance, look up the latest docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab