# How to attach a workflow > **Deferred.** Activiti is wired into the codebase, but a deployment > that doesn't run an approval flow leaves the workflow tables empty, > so end-to-end verification of this recipe needs a deployment that > *does*. See [Slice 7 (deferred)](../../slices/07-workflow.md) for the > same reasoning. > > The shape of the recipe: > > 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 whichever workflow deployment surface is enabled in the target > environment. > 5. Verify rows appear in `act_re_procdef` after deployment. > 6. Test by submitting a record — `act_ru_task` should populate. > > Once a deployment with active workflows is available, this page > becomes a proper recipe and Slice 7 becomes a proper slice.