# How to attach a workflow > **Deferred.** Activiti is wired into the codebase but no workflow is > deployed in this dev DB. See > [Slice 7 (deferred)](../../slices/07-workflow.md) for the same > reasoning. > > The shape of the recipe (when a DB with active flows is available): > > 1. Set `gdsmodule.bCheck = 1` to flag the module as workflow-enabled. > 2. Populate `gdsmoduleflow` with the flow's window configuration. > 3. Set `gdsmodule.sVersionFlowId` and `sVersionFlowCode` to the > Activiti process definition's ID and key. > 4. Deploy the BPMN process definition through the Activiti REST API > or the `xlyFlow` module's deployment endpoint. > 5. Verify rows appear in `act_re_procdef` after deployment. > 6. Test by submitting a record — `act_ru_task` should populate. > > Once a DB with active workflows is available, this page becomes a > proper recipe and Slice 7 becomes a proper slice.