How to attach a workflow
Deferred — needs a deployment with deployed BPMN. Empirically confirmed against the dev DB:
SELECT COUNT(*) FROM act_re_procdefreturns 0;gdsmoduleflow = 0;gdsmodule WHERE bCheck = 1matches 0 rows. The dispatch path itself is hard-disabled byConstantUtils.bCheckflowCheck = false(see Activiti integration). The recipe below is the code-derived hypothesis — it has not been exercised against a live deployment.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) for the same reasoning.
The shape of the recipe:
- Set
gdsmodule.bCheck = 1to flag the module as workflow-enabled.- Populate
gdsmoduleflowwith the flow's window configuration.- Link the module/button to the process in
gdsmoduleflowusing the fields expected byCheckExamineFlowServiceImpl.gdsmodule.sVersionFlowId/sVersionFlowCodeare edition tags, not the live Activiti binding.- Deploy the BPMN process definition through the Activiti REST API or whichever workflow deployment surface is enabled in the target environment.
- Verify rows appear in
act_re_procdefafter deployment.- Test by submitting a record —
act_ru_taskshould populate.Once a deployment with active workflows is available, this page becomes a proper recipe and Slice 7 becomes a proper slice.