In addition to
wftk
which Lars
found non-useful
back in 2001 or so, there is also
PGFlows,
"an entreprise level generic workflow system written in plpgsql with
users management(A PHP API is also provided)."
PGFlows is listed as in "Planning", presumably meaning that nobody has
written any actual code for it at all. But anyone interested in it
might be even more interested in the much more mature OpenACS Workflow
packages...