SANJIESAN TOOLS / Workflow data
Put a workflow’s step sequence in an explicit order
A list of workflow steps can look ordered in a JSON editor while its contract never states what defines the sequence. Write the intended progression before choosing the structure. Use a harmless draft workflow, such as review then export, so the example does not execute real publishing, payment or supplier operations.
State the order the task requires
Write a short sequence in ordinary language and identify which transitions matter. RFC 8259 describes arrays as ordered sequences and objects as unordered name-value collections. Keep that distinction visible when choosing a representation. Do not make a consumer depend on the editor’s visual object-member arrangement without an explicit agreed mechanism. A numbered field name is still something the application must interpret deliberately; its appearance alone does not create an execution engine.
Check a small sample without side effects
Prepare a mock sequence whose step names are easy to distinguish and specify the expected read order. Inspect the consumer’s interpretation without connecting it to real actions. Keep an explicit identifier for each step if later references need one; position and identity answer different questions. If steps are rearranged, check references that mention them rather than assuming every position-based association remains valid. A log of names can reveal a sequence problem before any service is attached.
Deliver the sequence with the contract
Keep the chosen representation, expected order and a small sample together. Explain how an empty sequence or an unknown step should enter review rather than guessing a sensible default. Do not label a visual mock run as a completed external workflow. The purpose is a clear data contract that a future implementation can check, while actual service permissions, execution and result confirmation remain separate responsibilities that the ordered list cannot solve by itself.