Path briefing

Publishing work for tenant admins

  • Path goal: Run My Work, understand handoffs and exceptions, and know when to escalate.
  • Why this stop: Explains why items appear (or do not) for your team.
  • Do next: If queues are empty, escalate publishing—not individual user error.

Do next: If queues are empty, escalate publishing—not individual user error.

Source: path manifesto (offline-safe)

Stop 3 of 8·Open canonical page

Publishing work for tenant admins

Document information
  • Canonical URL: /docs/12_workflows/20_publishing-work-for-tenant-admins
  • Version: 2026-10-09
  • Tags: operations, tenant-admin, integrations, processflow, webapps, guides

This guide tells tenant admins how to craft integrations, ProcessFlows, and WebApps so Operations My Work shows honest, actionable work. Use the Tenant Admin Console you already have — ProcessFlow editor, integrations, WebApps, DataPool. Do not invent a second task system.

Goals

  1. Employees only see human-valuable work (approvals, actions, exceptions).
  2. Approve/Reject appears only when a pending process human gate is assigned to you.
  3. My Work stays empty until real processes write rows — never seed demo employee tasks.

Checklist

  1. Prepare the request model — On Operations /, use Prepare request model (installs DataPool schema operational_requests). Or call POST /api/v1/operations/request-model.
  2. Connect source systems — Create integrations for CRM / ERP / support (Tenant Admin → Integrations). Test connectors before process wiring.
  3. Publish business ProcessFlows — Set process category to business so operators see runs under /runs.
  4. Write My Work with helpers — Prefer tf.operations.openApproval / openAction / openException / updateProgress / complete (requires sandbox api capability).
  5. Validate — tf.operations.validate(payload) or POST /api/v1/operations/requests/validate before go-live.
  6. Open a process human gate, then the card — In the same step, call tf.operations.createApprovalGate, pass the returned human_request_id to tf.operations.openApproval, set owner_user_id to approver_user_id, set details to the facts the person must read, and return. Pass continuation: {} when this process should run again after the decision. Do not wait for the decision.
  7. Optional WebApp intake — A WebApp may start the process; it should not invent My Work rows itself. The process owns upserts.

Work kinds to publish

KindHelperMust include
Approvaltf.operations.createApprovalGate, then tf.operations.openApprovalidempotency_key, approver_user_id, prompt, then external_id, subject, process_name, human_request_id, owner_user_id
Action requiredtf.operations.openActionexternal_id, required_action
Exceptiontf.operations.openExceptionexternal_id, preferably required_action + execution_id
Progresstf.operations.updateProgressexternal_id plus journey/checks/system_refs
Completetf.operations.completeexternal_id

Enrich employee clarity with why_visible, consequence, and ai_summary.

Approval example

const gate = await tf.operations.createApprovalGate({
  idempotency_key: `credit-approval-${account_id}`,
  approver_user_id: approverUserId,
  prompt: `Approve the credit limit for ${account_name}?`
});
if (gate.status !== "pending") {
  return { success: true, data: { status: gate.status, decision: gate.decision, human_request_id: gate.human_request_id } };
}
await tf.operations.openApproval({
  external_id: `crm-${account_id}`,
  subject: "Approve customer credit limit",
  party: account_name,
  process_name: "Customer credit review",
  human_request_id: gate.human_request_id,
  owner_user_id: approverUserId,
  why_visible: "You are the credit owner for this account.",
  consequence: "Approving records your decision.",
  required_action: "Confirm risk checks and approve or reject.",
  journey_beat: "in_process",
  journey_stage_label: "Credit decision",
  checks: [
    { label: "KYC complete", state: "verified" },
    { label: "Risk score", state: "needs_review" }
  ],
  system_refs: [{ system: "CRM", label: "Account", external_ref: account_id }]
});
return {
  success: true,
  data: { status: "pending_approval", human_request_id: gate.human_request_id, external_id: `crm-${account_id}` },
  message: "Submitted for approval."
};

createApprovalGate returns the only legal human_request_id (phg_<uuid>). openApproval throws when that id is missing or no longer pending. approver_user_id must be an internal tenant user, not the WebApp execution user. If the card write fails, retry with the same idempotency_key and the same external_id.

Integrations

  • Use connectors to read case/order/ticket state before the gate. Approve and Reject record the gate decision. A CRM write is a separate step.
  • Map stable external_id values from the source system so upserts update the same My Work card.
  • Keep employee-facing copy in process fields (required_action, why_visible), not raw connector error payloads.

ProcessFlows

  • Automatic steps: call connectors / DataPool; use updateProgress so the journey strip advances.
  • AI-assisted steps: put a short result in ai_summary; still require a human gate for decisions.
  • Human steps: createApprovalGate then openApproval, or openAction. Set actor_hint: "person" and owner_user_id to the approver. Return before the decision.
  • Failure paths: openException with clear recovery text; store input so Retry works when appropriate.

WebApps

  • Forms and portals start or continue processes; they are not a parallel My Work writer.
  • After a WebApp POST executes a process, that process should open the correct work kind.
  • See WebApps ProcessFlow integration.

Common failures

Symptom in My WorkCauseFix
Approval pill, no Approve buttonsGate missing, not pending, or assigned to someone elsecreateApprovalGate, then openApproval with owner_user_id set to approver_user_id
Empty My Work foreverSchema not installed or no business process writingPrepare request model; publish writers
Card never updatesChanging external_id each runKeep a stable id per case
Process missing from /runsWrong categorySet category: business

Related

Next stop