This is just a question of curiosity… How does Alfresco internally keep its workflow data? Are workflows saved as content types in the alfresco repository or does activiti have its own seperate tables in the DB?
Activiti persists its data in its own tables. They start with "ACT_". Activiti can run as a standalone workflow engine completely separate from Alfresco.