Referensi Biz-A Workflow Studio
Referensi Biz-A Workflow Studio
Setiap layar, field, pilihan, dan pesan di Workflow Studio — state, transition, guard, role, input, SLA, effect, dan Simulate.
Reference manual · versi 1.0 · 24 November 2026 · PT Integritas Makmur Mandiri
Manual ini menjelaskan setiap layar, field, pilihan, dan pesan di Workflow Studio, bagian dari Biz-A Control Center (admin.biz-a.id). Workflow Studio dipakai implementor untuk menulis alur dokumen (state, transition, role, condition, SLA, effect) sebagai config, tanpa programmer. Ini bukan tutorial: tidak ada langkah-langkah latihan.
Konvensi penulisan
- Label di layar ditulis persis seperti tampil, dalam tanda kutip dan bahasa Inggris: “Initial state”, ”+ Add effect”.
- Istilah teknis tetap English (workflow, state, transition, guard, effect, role, task, SLA, dll.).
kode= nama, key, atau isi JSON yang diketik.
Daftar isi
- Konsep dan istilah
- Alur kerja: draft, save, simulate, publish
- Membuat workflow (Config List)
- Layar Workflow Studio
- Canvas
- Properti workflow
- State
- SLA
- Transition
- Guard
- Role
- Input transition
- Effect
- Simulate
- Sambungan ke domain dan Biz-A Client
- Daftar peringatan
- Daftar pesan
1. Konsep dan istilah
| Istilah | Arti |
|---|---|
| Workflow | Template alur: bagaimana satu jenis record (entity) bergerak dari state ke state. Satu workflow terhubung ke satu entity |
| Workflow key | Kode workflow (huruf besar), mis. PR_APPROVAL. Ditetapkan saat dibuat, tidak bisa diubah |
| Instance | Workflow yang sedang berjalan untuk satu record. Satu record punya satu instance |
| State | Posisi record saat ini (DRAFT, SUBMITTED, APPROVED). Record selalu berada di tepat satu state |
| Initial state | State tempat setiap instance baru dimulai |
| Terminal state | State tanpa jalan keluar. Mencapainya menyelesaikan instance (status COMPLETED) |
| Transition | Perpindahan eksplisit dari satu state ke state lain. Bagi user, satu transition = satu tombol aksi |
| Trigger | Siapa yang menjalankan transition: user (tombol), sistem, timer, atau integrasi luar |
| Guard | Syarat agar transition boleh dijalankan (mis. m.total > 5000000) |
| Role | Kode tanggung jawab (STAFF, OUTLET_MANAGER). Transition hanya tampil untuk user yang memegang role-nya |
| Task | Tugas yang dibuka saat record masuk ke sebuah state, ditugaskan ke role atau user tertentu |
| SLA | Batas waktu tinggal di sebuah state, dengan aksi otomatis bila terlewati |
| Effect | Aksi otomatis setelah transition berhasil: menjalankan CLI script, memanggil HTTP / webhook, atau mengumumkan event |
Prinsip: state hanya berubah lewat transition. Tidak ada transition = tidak ada perubahan state. Transition bersifat all-or-nothing: guard lolos, state berubah, dan riwayat dicatat bersama-sama. Riwayat state hanya bertambah, tidak pernah diubah.
Setiap kali user membuka record, engine melihat state record sekarang, mengambil transition yang keluar dari state itu, mencocokkan role user dengan role setiap transition, mengecek guard, lalu hanya menampilkan tombol yang lolos. Implementor tidak perlu menyembunyikan tombol satu per satu.
Editor tidak pernah membuang isi config. Setiap perubahan hanya menulis field yang Anda ubah. Key yang tidak dikenal editor tetap ada dan tampil di “Other keys”. Peringatan tidak mengubah nilai.
2. Alur kerja: draft, save, simulate, publish
| Tahap | Di mana | Hasil |
|---|---|---|
| Buat / buka draft | Config List → Workflows → ”+” atau “Workflow Studio” | Draft terbuka di Workflow Studio |
| Edit | Workflow Studio | Ditandai ”· unsaved changes” |
| Save | Tombol “Save” | “Saved — revision n.” Draft tersimpan, belum live |
| Simulate | Tombol ”▶ Simulate” | Menjalankan draft seperti engine, per role. Tidak ada yang disimpan |
| Publish | “Raw JSON” → “Publish”, atau Config List → centang → “Publish selected (n)” | Workflow live untuk semua user company ini |
| Pakai | Biz-A Client | Refresh browser |
Aturan penting
- Save sebelum pindah halaman. Pindah halaman dengan perubahan belum disimpan akan ditanya: “Workflow … has unsaved changes. Save them before you go?” → “Save and continue” / “Leave without saving” / “Stay”.
- Publish mengirim draft yang tersimpan, bukan teks yang belum di-save.
- Publish menolak workflow yang punya error (peringatan berawalan “Publish refuses this:”, §16). Peringatan tanpa awalan itu tidak memblokir.
- Simulate dulu, baru publish. Simulate menunjukkan tombol apa yang dilihat setiap role di setiap state.
- Domain dan workflow-nya bisa di-publish bersama: centang keduanya di Config List → “Publish selected (n)”.
- Panel Raw JSON (“Save”, “Diff vs published”, “Publish”, “Discard”) sama dengan Domain Studio; lihat Manual Referensi Biz-A Domain Studio §4.
- Setelah publish, draft lama hanya catatan: “This draft was published as vN and is kept as a record — it cannot be edited. Edits go in the current draft.” → “Edit current draft”.
3. Membuat workflow (Config List)
Segmen “Workflows” → ”+” (“New workflow”). Tombol ini tidak tersedia sebelum ada domain: “Create a domain first — a workflow belongs to a domain Control Center owns.”
| Field | Aturan |
|---|---|
| “Workflow key” | Kode workflow; otomatis huruf besar (UPPER_CASE). Tidak bisa diubah setelah dibuat |
| “Domain” | Domain tempat workflow ini berada |
| “Copy of” | “(blank)” = workflow kosong; atau salinan workflow yang sudah published, dengan key baru |
“Create” membuka Workflow Studio pada draft baru. Workflow kosong langsung menampilkan peringatan untuk name, entityType, dan initialStateCode sampai diisi.
Per baris di segmen Workflows: nama · “vN” atau “not published” · “open draft” · tombol “Open” (Raw JSON) dan “Workflow Studio”. Workflow yang juga dipakai produk ditandai “Shared · Layer n”.
4. Layar Workflow Studio
Bar atas: “Workflow Studio”, nama · “revision n” · ”· unsaved changes”, status / error, lalu tombol “Save”, ”▶ Simulate”, dan “Raw JSON”. Rail kiri hanya berisi ”← Back”.
Tiga panel
| Panel | Isi |
|---|---|
| Kiri | Daftar “States” dan “Transitions” (bisa dibagi dua dengan pemisah). ”+” menambah; per baris “Rename” (state saja) dan “Delete” |
| Tengah | Tombol “Workflow: |
| Kanan | Inspector: field dari yang dipilih (workflow, state, transition, atau effect) |
Keterangan baris di daftar kiri
| Daftar | Judul | Keterangan |
|---|---|---|
| States | <CODE> · <Label> |
“initial”, “terminal”, “task”, ”⚠” (ada peringatan) |
| Transitions | Transition code (atau FROM → TO) |
FROM → TO · Label, trigger bila bukan USER_EVENT, ”⚠” |
Panel detail di bawah canvas
| Yang dipilih | Isi |
|---|---|
| Tidak ada | “Choose the workflow, a state or a transition — here or on the canvas. Drag a state to move it; drag from a dot on its edge to another state to add a transition.” |
| Workflow | Workflow key, “Map: …” (elemen Business Process Map terkait), jumlah state dan transition, domain |
| State | Judul + lencana “terminal”; “Ways out” (transition keluar; “None — reaching this state completes the instance.”), ”+ Transition from ”, “Ways in” (transition masuk) |
| Transition / effect | Judul transition, “Effects”: pilihan tipe + ”+ Add effect”, daftar effect dengan ↑ ↓ ✕ (“No effects.”) |
5. Canvas
| Elemen / gerakan | Fungsi |
|---|---|
| Kotak state | Label (besar) dan code (kecil). Lencana “start” = initial state, “end” = terminal, ”⚠” = ada peringatan |
| Garis berpanah | Transition, dengan Label (atau code) di tengahnya. Beberapa transition antara dua state yang sama digambar melengkung terpisah |
| Klik state / garis | Memilih untuk diedit di inspector |
| Seret state | Memindahkan posisi. Posisi disimpan di config dan tidak dibaca engine |
| Seret dari titik di tepi state ke state lain | Membuat transition baru (From dan To terisi; sisanya diisi di inspector) |
| Seret latar | Menggeser tampilan |
| ”−” / ”+” / “Fit”, atau Ctrl + scroll | Zoom; “Fit” menampilkan seluruh alur |
State yang belum pernah digeser diatur otomatis per kolom menurut jarak dari initial state. Susunan otomatis ini tidak disimpan.
6. Properti workflow
Tombol “Workflow:
| Field | Aturan |
|---|---|
| “Workflow key” | Read-only; ditetapkan saat dibuat |
| “Name” | Nama workflow. Wajib |
| “Entity type” | Entity yang dijalankan workflow ini (mis. purchase_request). Wajib |
| “Initial state” | State awal setiap instance. Wajib; harus salah satu state workflow ini |
| “Description” | Keterangan |
| “Domain (Control Center)” | Read-only; domain pemilik workflow |
7. State
Menambah: ”+” di “States” → dialog “New state code”. Kode otomatis huruf besar; kode kembar ditolak: “A state already exists.”
Mengganti kode: “Rename” → “State code”. Semua rujukan di dalam workflow ini ikut berubah (From / To setiap transition dan Initial state): “Renamed A to B, with every transition and setting that named it.” Rujukan di luar workflow (mis. data record yang sudah berjalan) tidak ikut berubah; tetapkan kode sebelum publish pertama.
Menghapus: hanya bila tidak ada transition yang memakainya: ” is used by …; delete or re-point those transitions first.” Bila bebas: “Delete state ?”
Terminal state ditentukan otomatis: state tanpa transition keluar. Itu benar untuk state akhir; untuk state lain artinya transition keluarnya belum dibuat.
Inspector “State ·
Field
Aturan
“State code”
Read-only; ganti lewat “Rename”
“Label”
Nama state dalam bahasa user (“Diajukan”). Tampil di kolom status record
“Opens a task”
Saat record masuk ke state ini, sebuah task dibuka. Tidak berlaku di terminal state
“Task name”
Wajib bila task aktif
“Assign to”
ROLE atau USER. Wajib bila task aktif
“Role code / user id”
Kode role, atau id user (angka) untuk USER
“SLA (minutes)”
SLA sederhana (§8.1)
“On timeout”
EMIT EVENT atau AUTO TRANSITION (§8.1)
“Timeout: CLI script”
Nama CLI script yang dijalankan EMIT EVENT
“SLA v2”
SLA lengkap (§8.2). Jangan dipakai bersama “SLA (minutes)” / “On timeout”
8. SLA
8.1 SLA sederhana
Field
Arti
“SLA (minutes)”
Timer mulai saat record masuk ke state
“On timeout” → EMIT EVENT
State tidak berubah; engine menjalankan CLI script di “Timeout: CLI script” dengan payload { "instanceId": … }
“On timeout” → AUTO TRANSITION
Engine mengambil transition keluar ber-trigger TIMER_EVENT yang guard-nya lolos. Harus tepat satu; bila tidak ada atau lebih dari satu, timer gagal
Tulis dengan spasi (EMIT EVENT, AUTO TRANSITION). Ejaan dengan garis bawah diberi peringatan dan disimpan dengan ejaan engine.
8.2 SLA v2
JSON di “SLA v2”:
Key
Isi
minutes
Durasi: angka menit, { "minutes": n }, { "days": n } (hari kerja penuh), atau per nilai attribute: { "by": "priority", "values": { "urgent": 30 }, "default": 240 }
businessHours
true = menghitung jam kerja kalender company; false = jam biasa
atRisk
Persen (1–99) ketika record dianggap at risk
wait
true = timer tunggu (bukan target: tidak diukur dan tidak pernah breach); tanpa atRisk
actions
Daftar { "at": <persen 1–100>, "do": "EMIT EVENT" | "AUTO TRANSITION", "event": "<script>" }. at: 100 = batas waktu habis
Contoh: { "minutes": { "days": 2 }, "businessHours": true, "atRisk": 80, "actions": [{ "at": 100, "do": "EMIT EVENT", "event": "notif_overdue" }] }
- Bila durasi diambil dari attribute (
by) dan nilai attribute itu berubah saat record disimpan, batas waktu dihitung ulang dari saat masuk state.
- Waktu masuk, at-risk, dan jatuh tempo ditulis ke attribute entity yang ditunjuk di Domain Studio (“SLA entered at”, “SLA at risk at”, “SLA due at”). Status on track / at risk / overdue dibaca dari waktu-waktu itu.
- Action setelah AUTO TRANSITION tidak pernah berjalan (record sudah keluar state).
9. Transition
Menambah: ”+” di “Transitions” (transition kosong; bila sebuah state sedang dipilih, From terisi state itu), ”+ Transition from ” di panel detail, atau seret dari titik tepi state di canvas. Menghapus: “Delete transition …?”
Inspector “Transition → ·
Field
Aturan
“Transition code”
Kode huruf besar (mis. AJUKAN). Kosong = engine memberi nama FROM_TO_TO_<n>, yang berubah bila urutan transition berubah. Selalu isi
“Label”
Teks tombol aksi (“Ajukan”, “Approve”)
“From”
State asal. Wajib
“To”
State tujuan. Wajib
“Trigger”
§9.1. Default USER_EVENT
“Guard”
DOMAIN_RULE atau BUSINESS_RULE (§10). Kosong = tanpa syarat
“Guard rule / expression”
Rule key (DOMAIN_RULE) atau ekspresi (BUSINESS_RULE)
“Input”
Isian yang diminta dari user saat menjalankan transition (§12)
“Guard message”
Pesan untuk user saat guard memblokir (pengganti ekspresi). Maks panjang terbatas; tanpa guard tidak pernah tampil
“Hide when blocked”
Selama guard memblokir, tombol tidak ditampilkan sama sekali (bukan disabled)
“Roles”
§11
9.1 Trigger
Trigger
Dijalankan oleh
Tampil sebagai tombol
USER_EVENT
User, lewat tombol aksi
Ya
SYSTEM_EVENT
Sistem, mis. CLI script yang meminta transition lanjutan
Tidak
TIMER_EVENT
Timer SLA (AUTO TRANSITION)
Tidak
EXTERNAL_EVENT
Integrasi / API luar
Tidak
10. Guard
Guard
“Guard rule / expression”
Cara dinilai
(not set)
—
Selalu lolos
BUSINESS_RULE
Ekspresi atas m = data record, mis. m.total > 5000000, m.amount > 0 && m.supplier_id
Dinilai dari data record yang tersimpan, maks 1 detik
DOMAIN_RULE
Rule key = nama CLI script (huruf, angka, _, .)
Script itu dijalankan terhadap data live
m.<nama> memakai nama attribute entity (mis. m.total).
- Guard yang gagal membuat tombol disabled dengan petunjuk: “Guard message”, atau bila kosong “Requirement not met:
”. Ekspresi yang salah tulis: “Invalid guard expression syntax.”
- Karena guard membaca record tersimpan, perubahan di form harus di-save dulu sebelum guard melihatnya.
- Dua transition dari state yang sama dengan guard yang saling melengkapi membuat percabangan, mis.
APPROVE (m.total <= 5000000) dan APPROVE_KE_OWNER (m.total > 5000000). Pilih batas sesuai kata-kata customer (“di atas lima juta” = >).
11. Role
Bagian “Roles” di inspector transition: ketik kode di “role code” → “Add role” (atau Enter); ✕ untuk menghapus.
- Kode otomatis huruf besar; kode kembar ditolak: ”
is already there.”
- Tanpa role, transition terbuka untuk semua user: “No roles: open to everyone.”
- Beberapa role = salah satunya cukup.
- Kode role harus sama persis dengan Workflow roles di User Group Biz-A Client (§15.3).
12. Input transition
“Input” meminta isian saat user menekan tombol. Biz-A Client membuka dialog sebelum menjalankan transition; engine memeriksa hasilnya pada record tersimpan.
{ "fields": ["resolution", { "anyOf": ["phone", "email"] }], "comment": "required" }
Key
Isi
fields
Nama attribute record yang wajib diisi. { "anyOf": [a, b] } = minimal salah satu (minimal dua nama)
comment
"required" atau "optional": kotak komentar di dialog
Dialog di Biz-A Client: judul = label transition, field yang diminta, “Komentar” atau “Komentar (opsional)”, petunjuk “Isi salah satu: … atau …”, tombol “Batal” dan “Lanjut”.
Aturan: hanya untuk USER_EVENT; field tidak boleh disebut dua kali; field yang juga dibaca guard membuat tombol tetap disabled sampai disimpan, sehingga dialog tidak pernah terbuka untuk menanyakannya.
13. Effect
Effect dijalankan di latar belakang setelah transition berhasil, berurutan sesuai daftar (↑ ↓). Pilih tipe → ”+ Add effect”; hapus: “Delete this effect?”
Inspector “Effect ”:
Field
Aturan
“Effect”
CLI_SCRIPT, HTTP, WEBHOOK, EMIT_EVENT
“Script / event name”
CLI_SCRIPT: nama script. EMIT_EVENT: nama event. Wajib
“Payload template (JSON)”
Data yang dikirim, sebagai teks JSON. HTTP / WEBHOOK: url, method, data, headers
Effect
Perilaku
Gagal
CLI_SCRIPT
Menjalankan CLI script. Bila script mengembalikan { "executeTransition": "<KODE>" }, engine menjalankan transition itu sebagai SYSTEM_EVENT
Dicoba ulang sampai 3 kali, lalu FAILED
HTTP
Memanggil URL dan menunggu balasan (balasan tidak diproses). url wajib; default method POST, data {}, headers {}
Status ≥ 400 dicoba ulang sampai 3 kali
WEBHOOK
Mengirim ke URL tanpa menunggu balasan
Tidak dicoba ulang; tetap dicatat SUCCESS
EMIT_EVENT
Mengumumkan event ke Biz-A Client, dengan instanceId
—
Contoh HTTP: { "url": "https://api.contoh.id/po", "method": "POST", "data": { "source": "biz-a" } }
Payload template yang bukan JSON valid dibuang diam-diam oleh engine (effect berjalan tanpa payload); karena itu diberi peringatan.
14. Simulate
”▶ Simulate” mengganti layar studio dengan mode simulasi. Draft dijalankan seperti engine, termasuk perubahan yang belum di-save. Tidak ada yang disimpan.
Bar atas: “Workflow: ” · “Mode: SIMULATION” · “Restart” · “End Simulation”.
Panel
Isi
Kiri: “Simulation log”
Catatan bernomor: Enter, Task opened / done, SLA timer started / cancelled, Guard, Action, System event, Event emitted, Completed
Tengah: “Current state”
State, label, status (ACTIVE / COMPLETED), task terbuka (milik siapa: “yours”, “for someone else”, “anyone”)
Tengah: “Key info”
Isi Entity data
Tengah: “Available actions”
Satu tombol per transition USER_EVENT untuk role terpilih. Guard gagal = disabled dengan petunjuk. “No action for role …” bila tidak ada
Tengah: “System events”
Transition SYSTEM / TIMER / EXTERNAL_EVENT (dijalankan sebagai SYSTEM) dan “SLA runs out (n min)” dengan keterangan “On SLA breach: …”
Kanan: “Simulation context”
“Role”, “User”, “Guard evaluation”, “Entity data m (JSON)”, “Effect data”, ringkasan state dan jumlah transition
Simulation context
Field
Arti
“Role”
Role yang sedang diuji (“(no role)”). Pilihan = role yang ada di transition
“User”
User yang sedang diuji (“(any user)”). Pilihan = user yang ditugasi task USER
“Guard evaluation”
Per guard di state ini: “Pass”, “Fail”, atau (BUSINESS_RULE) “From data” = dinilai dari Entity data. Default Pass
“Entity data m (JSON)”
Data record contoh, mis. {"total": 9000000}
“Effect data”
JSON yang digabung ke setiap payload effect
- Untuk menguji condition, isi Entity data lalu pilih “From data”; tanpa itu semua guard dianggap lolos.
- DOMAIN_RULE tidak dijalankan di Simulate; Anda yang menentukan Pass / Fail.
- Bila draft berubah selama simulasi: “The draft changed since this run started. Restart to simulate the new version.”
- Run selesai: “The run is complete:
has no way out.”
15. Sambungan ke domain dan Biz-A Client
Workflow baru berjalan bila empat sambungan ini ada:
Sambungan
Diatur di
Isi
Workflow → entity
Workflow Studio › “Workflow: …” › “Entity type”
Nama entity, mis. purchase_request
Entity → workflow
Domain Studio › Model › entity › “Workflow” dan “State attribute”
Workflow key, dan attribute penampung state (mis. status, UI intent statusBadge)
Tombol aksi di form
Domain Studio › Structures › item workflow-actions
Tanpa props: entity, id record, dan role diisi otomatis dari layar dan user yang login
Siapa memegang role
Biz-A Client › Admin › User Group › “Workflow roles”
Centang role per grup
15.1 Kapan workflow berjalan
- Instance dimulai otomatis saat record baru dari entity itu disimpan. Record yang dibuat sebelum entity disambungkan ke workflow tidak punya instance dan tidak punya tombol aksi.
- Setiap transition menulis state baru (code) ke State attribute record di simpanan yang sama, sehingga list dan form selalu sesuai dengan instance.
- Bila “SLA entered at” / “SLA at risk at” / “SLA due at” diatur di entity, waktu SLA ikut ditulis.
15.2 Tombol aksi di Biz-A Client
- Tombol hanya tampil saat form dibuka dalam mode lihat (
?mode=view, mis. dari klik baris list). Dalam mode ubah tombol disembunyikan, karena transition memuat ulang record dan perubahan yang belum disimpan akan hilang.
- Satu tombol per transition USER_EVENT yang lolos role. Guard gagal = disabled dengan petunjuk saat disorot (atau tidak tampil bila “Hide when blocked”).
- Setelah transition, form kembali ke tempat asalnya atau memuat ulang record.
- Tidak ada tombol (state akhir, tidak ada role yang cocok, atau record tanpa instance) = tidak ada aksi yang tampil.
15.3 Role user
- Bagian “Workflow roles” di User Group menampilkan role dari semua workflow yang sudah published.
- User admin (supervisor) melihat semua tombol; jangan dipakai untuk menguji role.
16. Daftar peringatan
Peringatan muncul di field yang bermasalah, di daftar kiri (”⚠”), dan di canvas. Berawalan “Publish refuses this:” = publish ditolak sampai diperbaiki. Tanpa awalan = publish jalan, tetapi engine tidak melakukan sesuatu yang mungkin Anda harapkan.
16.1 Error (publish ditolak)
Letak
Pesan
Perbaikan
Workflow
” is required (a NOT NULL column).”
Isi Name, Entity type, Initial state
Initial state
”… is not a state of this workflow: an instance would start nowhere.”
Pilih state yang ada
Field teks
“n characters; the column holds m, so publish would fail.”
Persingkat
States
“No terminal state: every state has a way out, so an instance never completes.”
Pastikan ada state akhir
State code
“A state needs a code.” / ”… is used by more than one state.”
—
Task
“A terminal state completes the instance, so its task never opens.”
Matikan “Opens a task”
Task
“An enabled task needs a name.” / ”… needs an assignment (ROLE or USER) …” / ”… needs the role or user it is assigned to.”
Lengkapi task
Assign to
“DYNAMIC is reserved: the engine assigns nobody.” / ”… is not ROLE or USER.”
Pilih ROLE / USER
Role code / user id
“A USER assignment is a user id; … is not a number.”
Isi id user
On timeout
”… is not a timeout action the engine runs (EMIT EVENT or AUTO TRANSITION).”
—
Timeout: CLI script
“EMIT EVENT runs the CLI script named here; without a name nothing runs.”
Isi nama script
On timeout
“AUTO TRANSITION takes a TIMER_EVENT transition out of this state; there is none, so the timer job fails.”
Buat transition TIMER_EVENT
SLA v2
Bentuk tidak valid (“sla is an object: …”, “minutes is a duration …”, “atRisk is a whole percent from 1 to 99.”, dll.)
Perbaiki JSON
SLA v2
“A waiting timer (wait: true) is not a target: it has no at-risk point. …”
Hapus atRisk
SLA v2
“A state with sla uses neither slaDurationMinutes nor timeoutActionType: two timers would run.”
Kosongkan SLA sederhana
SLA v2 actions
“at is the whole percent of the SLA …, 1 to 100 …” / “Only an EMIT EVENT hands a payload to its script.”
—
From / To
”… is required.” / ”… is not a state of this workflow …”
—
Transition code
”… is used by more than one transition; the engine takes whichever it finds first.”
Kode unik
Trigger
”… is not a trigger the engine offers; the transition can never be taken.”
Pilih dari §9.1
Guard
”… is not a guard the engine knows; it would always pass.”
DOMAIN_RULE / BUSINESS_RULE
Guard rule / expression
“A DOMAIN_RULE guard needs the rule key.” / “A BUSINESS_RULE guard needs an expression over m, e.g. m.amount > 0.”
Isi
Guard rule / expression
”…: a rule key names a CLI script, so it uses only letters, digits, _ and . .”
—
Roles
“A role needs a code (a NOT NULL column).”
—
Input
“input is { fields: [names], comment: ‘required’ | ‘optional’ } …” / ”… is not a field …” / “An anyOf group names at least two fields …”
Perbaiki JSON
Input
“A transition is taken by no user, so nobody can give its input.”
Input hanya untuk USER_EVENT
Guard message
“A guard message is text of at most n characters.”
—
Hide when blocked
“hideWhenBlocked is true or false.”
—
Effect
”… is not an effect the engine runs; the effect fails.”
Pilih dari §13
Script / event name
“The script or event name is required (a NOT NULL column).”
—
Payload template
“Not JSON text: the engine drops the template silently, …”
Perbaiki JSON
Payload template
“HTTP / WEBHOOK takes its url … from the payload template; there is no url.”
Isi url
16.2 Peringatan (publish jalan)
Letak
Pesan
Arti
Kode
”…: workflow / state / transition / role codes are written in upper case (the engine matches them that way).”
Tulis huruf besar
On timeout
“The engine spells it “EMIT EVENT”; publish stores that spelling.”
Ejaan disesuaikan
SLA (minutes)
“A timeout action with no SLA: entering the state starts no timer, …”
Isi menit
SLA v2
“A final state has nothing left to do: its SLA would only ever breach.”
Hapus SLA di state akhir
SLA v2
“Without a default, a record whose value is not listed gets no SLA in this state.”
Isi default
SLA v2 actions
“This action comes after the AUTO TRANSITION, … it never runs.”
—
Transition code
“No code: the engine names it …, which changes whenever transitions are reordered.”
Isi kode
Input
“A field is named more than once.” / “input asks for nothing: no fields and no comment.”
—
Input
“The guard reads m.…, which this move asks for: the button stays disabled until it is saved, …”
Jangan minta field yang dibaca guard
Guard message
“A guard message without a guard is never shown.”
—
Hide when blocked
“A move without a guard is never blocked, so it is never hidden.”
—
17. Daftar pesan
Pesan
Di mana
Arti / tindakan
“Saved — revision n.”
Bar atas
Draft tersimpan (belum live)
“This draft was changed in another window or by another user. Your edit is still here: note it, reload the page, and apply it again.”
Save
Catat, muat ulang, terapkan lagi
“Workflow … has unsaved changes. Save them before you go?”
Pindah halaman
“Save and continue” / “Leave without saving” / “Stay”
“A state already exists.”
Tambah / rename state
Pakai kode lain
“Renamed A to B, with every transition and setting that named it.”
Rename state
—
” is used by …; delete or re-point those transitions first.”
Hapus state
Hapus / arahkan ulang transition-nya
“Delete state …?” / “Delete transition …?” / “Delete this effect?”
Hapus
Konfirmasi
” is already there.”
Roles
Role sudah ada
“This state’s ui is …, not an object, so its position was not saved; fix it in the raw JSON panel.”
Canvas
Perbaiki ui di Raw JSON
“Create a domain first — a workflow belongs to a domain Control Center owns.”
Config List
Buat domain dulu
“The draft changed since this run started. Restart to simulate the new version.”
Simulate
“Restart”
“Entity data is not valid JSON (…).” / “Effect data must be a JSON object.”
Simulate
Perbaiki JSON
“No SLA timer is running in …”
Simulate
—
“Action Denied: …”
Simulate
Instance selesai, state berubah, atau guard gagal
“Requirement not met: ”
Tombol disabled
Syarat guard belum terpenuhi
Gejala umum di Biz-A Client
Gejala
Penyebab
Solusi
Form tidak menampilkan tombol aksi
Form dibuka dalam mode ubah
Buka dari list (mode lihat)
Tidak ada tombol untuk record lama
Record dibuat sebelum entity disambungkan ke workflow
Instance hanya dibuat untuk record baru
Tidak ada tombol untuk user tertentu
User tidak memegang role transition, atau kode role berbeda
Cek “Workflow roles” di User Group; kode harus sama persis
Semua tombol tampil saat tes
Login sebagai user admin
Tes dengan user biasa per role
Tombol disabled padahal data sudah diubah
Guard membaca record tersimpan
Save record dulu
Kolom status kosong / tidak berubah
“State attribute” entity belum diatur
Atur di Domain Studio, publish domain
Transition tidak tampil sebagai tombol
Trigger bukan USER_EVENT
Ubah Trigger