Binding a flow to a form
A flow runs once it is bound to a form: every time the form is submitted, a new request starts with the flow’s published version. This page covers making and changing the binding, and how a request starts.
Before you start
Section titled “Before you start”- The flow must be published; a draft flow cannot be bound (“Akış yayımlanmadan forma bağlanamaz.”, “The flow cannot be bound to a form before it is published.”).
- The form must be published and not archived (“Form arşivlendi; yeni akış bağlanamaz.”, “The form is archived; a new flow cannot be bound.”).
- To bind a flow you need permission to publish flows and permission to edit the form (“Akış bağlamak için Akış yayımlama izni gerekir.”, “Binding a flow requires the Publish flow permission.”).
- The form fields the flow uses (the amount in a condition, a field in the task title, the field the approver is taken from…) must exist in the form’s published version and their type must match. If they do not, the binding is not made and the reasons are listed (“Akış bu forma bağlanamadı: …”, “The flow could not be bound to this form: …”).
Two ways to bind
Section titled “Two ways to bind”From the flow editor
Section titled “From the flow editor”- Open the flow in Workflow management (Turkish menu: Akış Yönetimi).
- In the Form bağı (form binding) section, choose the form in the Bağlı form (bound form) field.
- Click Bu akışı forma bağla (bind this flow to the form). If the form is already bound to this flow, the button reads Zaten bağlı (already bound).
From the form designer
Section titled “From the form designer”- In Form management, open the form with Design.
- Look at the workflow badge at the top: for example Akış: yok (flow: none) or Akış: IZIN-ONAY (v2).
- Click the badge. The Akışı yönet (manage workflow) window opens and shows:
- Aktif akış (active flow): the flow bound right now, or “Bu forma bağlı akış yok: gönderiler onay sürecine girmez.” (“No flow is bound to this form: submissions do not enter an approval process.”)
- Bağlanacak akış (flow to bind): the Akış seçin… (choose a flow…) list shows only published flows. If there are none: “Yayımlanmış akış yok. Önce Akışlar sayfasından bir akış yayımlayın.” (“There is no published flow. First publish a flow from the Workflows page.”)
- Bağ geçmişi (binding history): this form’s earlier bindings and when they were closed.
- Choose the flow and click Forma bağla (bind to form).
A form has only one active flow at a time. If you bind another flow, the old binding closes; requests that have already started continue with the old flow.
Removing the binding
Section titled “Removing the binding”In the Akışı yönet window, click Bağı kaldır (remove binding). You see “Akış bağı kaldırıldı” (“Flow binding removed”). Submissions that arrive after this do not enter an approval process; running requests are not affected. Archiving a flow also closes its bindings on the forms it was bound to.
A new version of the flow
Section titled “A new version of the flow”The binding is made to the flow itself, not to a particular version. When you publish the flow again, new submissions start with the new version; you do not need to make the binding again. If the new version can no longer find a field in the bound form, it appears in the “kontrol edilmesi gerekenler” (items to check) list after publishing.
A similar check is made when the form is published with a new version: if a field the flow reads has moved, the form’s publish window tells you so as a warning.
How a request starts
Section titled “How a request starts”- An employee fills in the bound form from My forms and submits it.
- The submission is saved and the flow starts straight away. The flow’s start step runs; if it is an approval step, tasks are opened.
- A Süreç (process) section appears in the submission details: the status Çalışıyor (running), who the task is waiting with, and the timeline.
Good to know:
- Only submissions by Defthand users start a request. Submissions that come in through a public link do not start a flow.
- A request runs with the flow version that was published when it started.
- Some modules offer their own settings for binding their forms to a flow (for example inspections); in that case the Görevin konusu (subject of the task) card in the task details shows the record the task relates to. See Inspections.