EnglishWorkflow ManagementTemplate LibraryWorkflow Templates

Workflow Templates

The platform catalog (public.workflow_templates) is 36 templates. Each row matches a WORKFLOW_SUBJECTS type that a domain service autoSubmits and that writes back on workflow.approved / rejected / completed. Ghost subjects, advisory (log-only) CRM/quality flows, and mis-bound names are not in the library.

Instantiating copies the template into a company workflow definition. Existing tenant definitions are not deleted when the catalog is pruned.

Workflow Management — template gallery grouped by domain
Workflow Management — template gallery grouped by domain

How to instantiate a template

Go to Workflow → Workflows and click New from Template.

Step 2 — Pick a template

The card is the document type the engine will submit (subject_type).

Step 3 — Adjust

Change approver roles and thresholds in the Builder. Step conditions, forms, and step actions need the matching approval.* flags (they default off). createFromTemplate returns requiredFlags.

Step 4 — Test and activate

Activate fails with FEATURE_DISABLED until those flags are on.

⚠️

A template whose subject_type is not in the registry cannot be instantiated. Catalog rows are also rejected if they target a log-only subject (inbox would not move the record).


Catalog (GA)

CodeentityTypeAfter approve
invoice_approvalinvoicesend()
bill_approvalbillapprove()
credit_note_approvalcredit_noteissue / GL (after inbox)
expense_approvalexpenseapprove()
purchase_order_approvalpurchase_orderapproval gate
purchase_requisition_approvalpurchase_requisitionrequisition approved
rfq_approvalrfqdraft → sent
vendor_onboarding_approvalvendor_onboardingisApproved
grn_approvalgrnconfirmGrn
quote_approvalquotation→ sent
sales_order_approvalsales_orderapprove()
logistics_delivery_order_dispatchdelivery_ordership() after inbox
sales_commission_approvalcommission_runapproveRun
contract_approvalcontractactivate
asset_disposal_approvalasset_disposaldispose
asset_transfer_authorizationasset_transfertransfer approve
leave_approvalleave_requestapproveLeave
job_requisition_approvaljob_requisitionapprove requisition
timesheet_approvaltimesheetapprove timesheet
payroll_run_approvalpayroll_runapprove run
payroll_adjustmentpayroll_adjustment_requestapprove adjustment
kb_article_publicationkb_articlepublish
knowledge_doc_publicationknowledge_docpublish document
employee_request_approvalemployee_requestrequest completed
legal_review_approvallegal_reviewdecideReview
service_order_approvalservice_orderapprove()
stock_request_approvalstock_requestapprove request
field_service_requisition_approvalfield_service_requisitionapprove requisition
sm_project_kickoff_approvalsm_projectpending_approval → planning
field_service_tool_requisition_approvalfield_service_tool_requisitionapprove tool requisition
work_order_approvalwork_orderrelease
return_authorizationreturn_orderapprove return
stocktaking_variance_approvalstocktaking_sessionpost variance / counted
quality_ncr_approvalquality_ncrpending_approval → open
sm_contract_approvalsm_contractdraft → active
service_contract_approvalservice_contractdraft → active

Lead / deal / shipment / BOM and similar stay in the subject registry (custom workflows) but have no gallery card: finishing inbox does not change those records. NCR does have a gallery card after 1600.


Choosing between a template and a policy

If you want to…Use
Decide whether approval is needed from a numberPolicy
Decide who approvesWorkflow template
Combine bothPolicy gate + workflow chain