Getriebe MVP specification
This is the shared contract for the experimental MVP profile. The capability profile determines which requirements apply to a composition. Its current implementation claims are recorded separately in the capability profile. The evidence index tracks verification independently of implementation status.
Normative requirements use stable AREA-NNN IDs in headings. NET, WF,
DATA, RES, STORE, API and CHECK identify domains, independent of
packages. PAT, BPMN and CAP identify concepts and capabilities. Retain an
ID when clarifying the same contract. When replacing or splitting a published
requirement, leave a reference to the successor and retire the old ID. An
unpublished contract may be reorganized before its first publication.
Petri net
NET-001 — Firing
TypeScript firing and token allocation evidence.
The net can be used independently of BPMN and workflow. A firing is enabled only when its inputs are present in the marking. Firing consumes the specified inputs and produces the specified outputs in a single state change. An attempt that cannot fire leaves the marking unchanged.
Workflow control
WF-001 — Embedded execution
An application can execute the workflow through a workflow interface without a server or modeler and without inspecting tokens or Petri-net structures.
WF-002 — Structured model
Each executable process and embedded Sub-Process in the base profile has one explicit None Start Event and at least one explicit End Event. The top-level message extension allows alternative start triggers under WF-017. The root uses None End Events. An embedded Sub-Process can also use Terminate End Events. Activities have at most one incoming and one outgoing Sequence Flow. An End Event has exactly one incoming flow and zero outgoing flows. Duplicate edges between the same source and target, and executable elements unreachable from the start, are outside this profile.
Split and join roles are separate. Nested routing regions have matching join types and do not cross. An XOR alternative may end early. An AND split either has a matching join or every possible path on every parallel branch reaches a supported End Event, including paths through nested choices. Direct edges to a matching join and one-input, one-output gateways are allowed.
WF-003 — Exclusive routing
An XOR split evaluates non-default conditions in order and selects the first true condition. It uses a declared default only when no condition matches. With neither a match nor a default, it reports an execution error for the instance. An error while evaluating a condition is an error, even when a default exists. An XOR join continues each arriving alternative without waiting for others. See BPMN-004 for the order in BPMN XML.
WF-004 — Parallel routing
An AND split activates every outgoing branch. An AND join is enabled when each incoming branch has a token. Firing consumes one from each input, preserves any excess tokens and produces one token on the outgoing flow.
WF-005 — Iteration
A Standard Loop on a User Task or Service Task may test before or after an iteration and may set a maximum. A graph loop has one entry edge and one regular exit edge. Each complete traversal includes a User Task or Service Task, and the body has no End Event. A supported loop has no implicit model-side iteration limit.
WF-006 — Completion
A None End Event finishes its incoming path and preserves the identity of the reached end. Other parallel paths continue. An instance can finish successfully once it has started and all relevant execution paths and open work have finished. An empty marking by itself does not establish completion, and a deadlock with remaining work is not a successful finish.
WF-007 — Human work
Each activation of a User Task creates its own task identity once its required inputs can be fixed. The task identifies its process instance, modeled activity, eligibility constraints, fixed inputs and expected result. A valid result can complete the task at most once. A later activation, including another loop iteration, creates a distinct task.
WF-008 — Service work
A Service Task uses a registered typed handler or connector with the frozen inputs of its attempt. A valid accepted result can advance the process. Handler failure, invalid output, a data conflict or an unknown external outcome cannot advance the process and must be visible. Each attempt has its own identity and at most one attempt is actively tracked for a task execution at a time.
An administrator can explicitly initiate a retry with current inputs, knowing that a previous external call may have taken effect. External calls run outside the data-store transaction. The contract gives no general guarantee of exactly-once external effects, execution timeout, or external cancellation. A technical attempt failure does not by itself establish a BPMN Activity failure or BPMN Error event.
Service Task connectors
A Service Task uses a connector when it declares these attributes in the
Getriebe BPMN namespace
https://tokenjanitor.github.io/getriebe/bpmn/extensions/v1.
| Attribute | Value |
|---|---|
getriebe:connector |
Registered connector ID, such as http-rest |
getriebe:connectorVersion |
Exact connector contract version, such as 1 |
getriebe:connection |
Environment-specific server connection name |
getriebe:connectorConfig |
JSON object of connector settings as strings, escaped as XML attribute text |
<bpmn:serviceTask id="readStock" getriebe:connector="http-rest" getriebe:connectorVersion="1" getriebe:connection="inventory" getriebe:connectorConfig="{"method":"GET","path":"stock"}"> <!-- Native BPMN ioSpecification, dataInputAssociation and dataOutputAssociation --></bpmn:serviceTask>A connector-bound task uses the four connector attributes as its implementation binding. It may reference a local BPMN Operation. Use the standard BPMN port declarations, sets and direct associations for its inputs and outputs. The Modeler reads and writes the implementation binding alongside the native task and BPMN data associations. The deployment stores the exported BPMN and exposes it through the model version’s BPMN endpoint.
The authenticated GET /api/v1/capabilities response includes a
connectors array. Each entry exposes the connector ID, version, label,
named connections, required text settings, any allowed values or patterns,
and accepted port kinds per direction. For an HTTP task, the author defines
port names and types that match the target’s JSON interface. The server
validates a binding against the same description on deployment and before
invocation. The catalog omits base URLs, headers, secret references and
credential values. Connector descriptions and settings are public to
authenticated authors, so keep credentials in server-side connection
configuration.
In a composed Effect server, ServerOptions.serviceConnectors registers
additional ServiceConnector implementations by exact ID and version.
A connector supplies the description, available connection names and an
invoke function. Invocation receives the model binding, the task’s typed
port contract, frozen inputs and the existing Service Task attempt context.
It returns typed process data, a ServiceFault value or a ConnectorFailure. Activation, audit,
result validation, scope fencing and advancement remain part of the shared
Service Task worker. Registered Service Task handlers keep their
getriebe:handler binding. For a connector attempt the history field
handler carries the connector ID.
http-rest version 1 accepts method (GET or POST) and a
static path of nonempty relative segments. A segment contains ASCII
letters, digits, periods, underscores, tildes or hyphens and cannot be
. or ... The connection supplies a fixed HTTP(S) base and optional
authentication header. The connector issues one request per attempt with
a 10-second deadline and a 1 MiB response-body limit. It accepts a
successful status with a JSON object matching the declared output fields,
or an empty body when the task has no outputs. It discards other fields.
If a mapped string or string-list item contains the configured secret
verbatim, the connector rejects the response.
Attempts record service-connector-http, service-connector-transport
or service-connector-response for HTTP statuses, transport failures or
invalid responses. The attempt is failed for HTTP 4xx and read failures.
A POST transport error, 3xx, 5xx or invalid success response is unknown
because the external service may have acted. An unavailable binding or
connection fails before sending a request. The same existing attempt
recovery and explicit retry rules apply. See the HTTP connector guide.
WF-009 — Interrupting User Task deadline
Each successful activation of a timed User Task sets a deadline from the provided UTC clock and the fixed duration. The duration and timestamp use exact integer milliseconds. The timestamp range is 0001-01-01T00:00:00.000Z through 9999-12-31T23:59:59.999Z. An activation with an unrepresentable due time fails before publishing the occurrence. The deadline is bound to the activation and its model version and survives snapshot restore. A later activation receives its own deadline.
The embedded interface exposes the earliest deadline and can try a timer with explicit time, optionally targeting a particular activation. Firing is permitted at or after the deadline. Completion and interruption consume the same waiting activation. Completion takes the regular outgoing path. Interruption takes the Boundary Event’s path. Completion may win after the deadline if the timer has yet to consume that activation. Early, obsolete and repeated timer requests leave the current state unchanged.
See BPMN-012 for the supported attachment, duration literal and graph rules.
WF-010 — Multi-Instance User Task
At activation the workflow captures a nonempty ordered string collection and any shared scalar inputs. Entries must be unique. Each entry resolves through the declared lookup when the model uses one. With a fixed role, the same declared role applies to every entry. A missing, empty or invalid collection fails activation before any member opens.
Parallel mode opens all members together. Sequential mode opens the first member and opens each subsequent member when its predecessor completes successfully. Each member has its own activation identity, zero-based input index and attempt identity. Its inputs contain its local item and the shared values captured for the round.
The workflow profile excludes concurrent modeled writes to those inputs. Completion checks that the current list and shared inputs still match the captured values. A recorded conflict stays with its attempt. Once the original values are available again, a new attempt can use the same member, round and role with previously recorded votes intact.
Every member returns one Boolean. Both acceptance and rejection count as completion. The last completion publishes the full collection in input order and enables the outgoing flow once. Each new round captures its current inputs and gets fresh round and member identities.
The result field belongs exclusively to the activity. It can be read on paths after the activity and is initially unset. A later round in the same data scope replaces the last published list on completion. A new containing Sub-Process execution starts with fresh local fields. Past attempts and their votes remain available in task history.
An enclosing scope interruption withdraws open members and discards the incomplete round. In sequential mode no subsequent member opens. The process sees no publication from the withdrawn round, and task history retains completed attempts and their votes.
The embedded workflow snapshot preserves a pending round and its recorded votes. The host applies the process-data update returned by the last completion before advancing the resulting state. In the server, a commit persists the vote, its audit, and the next open member or the final collection and continuation together. The first committed completion or scope interruption determines the resulting state. After restart the server restores that committed state.
See BPMN-013 for the supported loop settings and role bindings.
WF-011 — Embedded Sub-Process
One incoming token starts a fresh execution of the embedded graph at its None Start Event. The enclosing activity waits while that execution has internal tokens or unfinished work. Each None End Event consumes its own incoming token. When the last path finishes and all its activities are complete, the Sub-Process completes and enables its enclosing outgoing flow once. Nested Sub-Processes apply the same rule at every level.
Sequence Flows stay within their graph. The enclosing flows connect to the Sub-Process activity itself. Each scope independently follows the structure, gateway region and graph-loop rules. Existing task-level Standard Loops, parallel Multi-Instance User Tasks and eligible User Task timers keep their existing semantics inside the scope. A timed task’s interrupting route remains on the same level as the task.
Re-entry through a graph loop starts a different execution with fresh local data and task occurrences. The public process instance ID stays the same. A stored snapshot preserves active execution identity, parent association, local data, unfinished work and the position of each path. Task and service records can associate an occurrence with the containing execution path under the existing authorization rules. A repeated or stale completion cannot advance another execution.
See BPMN-014 and the recovery evidence.
WF-012 — Business Rule Task
Each activation evaluates the single DMN 1.3 decision table stored on the BPMN Business Rule Task. The table uses the Unique hit policy. It has one number input and one string-list output. Direct, typed BPMN associations bind the task’s decimal input and string-list output to visible fields in the same or an enclosing scope.
Each rule has a stable ID, a single interval with fixed decimal bounds and a literal list of strings. One-sided intervals may leave one end unbounded. The complete table covers the decimal domain exactly once. The importer rejects unsupported cells, gaps, overlaps and mismatched bindings. Rule-level diagnostics identify the rule and its BPMN task. Values and bounds use the exact decimal comparison in DATA-002.
A successful activation selects one rule, writes its list in order and enables the outgoing Sequence Flow once. Missing or invalid input fails at the task before continuation. The next activation reads current data. The table belongs to the published BPMN version used by the instance throughout its lifetime.
The Effect server commits the output, control-flow progress and decision event together. The event identifies the BPMN task, table, rule and execution. It carries the enclosing Sub-Process path when a scope exists. The instance supplies the published version ID. Recovery retains the committed event and progress.
The Behavior Checker treats the task as one successful automatic step. Downstream parallel reviews use its existing abstraction over list sizes. Concrete rule selection and output values are covered by the execution tests at their concrete input values. See the BPMN profile and decision-table evidence.
WF-013 — Script Task
An enabled Script Task evaluates its inline source using the evaluator selected by its media type. It reads the declared, typed input ports and returns one value of the declared output type. Direct BPMN Data Associations bind ports to visible process fields. A task requires one output and may have multiple inputs or none.
scriptFormat |
Runtime contract |
|---|---|
application/vnd.getriebe.expression-v1 |
Evaluates a Getriebe v1 expression against the input port names. Validation checks source syntax, referenced names and the expected result type. |
text/javascript |
Evaluates a synchronous function body with the input ports in inputs and a result supplied by return. A runtime enables this capability explicitly. Validation compiles the body and runtime checks the returned value. |
JavaScript receives copies in the HTTP value encoding. Strings and Booleans
are native values, collections are arrays, and long and decimal use
strings. Each activation receives a fresh Node VM context. The configured
time limit covers the call, copying the result and the context’s microtasks.
Approve JavaScript models as executable application code. The MVP assumes
the same authority releases model source and code.
An activation must return the same value when repeated with the same model version and inputs. Use Service Tasks for external calls. The runtime commits the output and continuation together. A restart before commit can repeat the activation with the same model version and restored values. A restart after commit continues from the advanced snapshot.
An evaluation exception, timeout, invalid result including a Promise, or disabled evaluator opens a problem at the Script Task and preserves the previous output and position. The saved problem remains available in the instance detail and administrative problem list.
See BPMN-016 and the typed process values.
WF-014 — Intermediate waits and Sub-Process withdrawal
An Intermediate Timer Catch Event starts a one-shot wait when a token reaches it. The runtime records its occurrence ID and due time, with the containing execution ID when scoped. A successful timer transition consumes that occurrence and enables its outgoing Sequence Flow once.
A Terminate End Event inside an embedded Sub-Process withdraws remaining work in that scope execution and its descendants and enables the regular outgoing flow of the Sub-Process once. An interrupting Boundary Timer attached to a Sub-Process starts on scope activation. When it fires, it makes the same withdrawal and enables its own outgoing flow.
When processing a due intermediate wait or non-interrupting User Task reminder, the runtime checks the active enclosing scope deadlines in the same transition. A due interrupting scope deadline takes precedence over that wait or reminder. Confirmation and escalation compete through the durable scope execution. Confirmation can win after the deadline time if its transaction commits first.
The withdrawal, timer removal, audit and outer continuation commit in one transaction. Work from a withdrawn scope is stale. A Service Task result is accepted only for the active scope and current attempt. A handler that has already started can still affect an external system under the integration’s delivery contract.
See BPMN-017 to BPMN-019 and confirmation evidence.
WF-015 — Call Activity
A Call Activity invokes one executable process from a separate BPMN document
on the same server. The expanded calledElement QName identifies the target
by its Definitions namespace and process ID. The caller declares a BPMN
Import for that namespace with a Location and the BPMN Import Type. Location
records the interchange reference. The server resolves the identity in
its deployed model registry.
Preflight and deployment select the newest startable version of the target and then check its interface. Each direction has one set of required, uniquely named ports. Names, types and required status must match between the Call Activity and the process. Each document assigns its own XML IDs. Direct Data Associations map the call ports to caller fields. Inside the target, the process port IDs are typed fields available to its Data Associations.
Deployment selects and records the target versions in the same transaction as publication. Each deployment creates a distinct caller version and reselects its targets. A published caller always uses its stored bindings, including the stored bindings of each target in a nested call. Archiving a target removes it from direct starts and from new bindings. Existing bindings can still be invoked by new instances of the published caller. The runtime must support the capabilities required by the bound chain.
Every activation creates a fresh execution with a separate data scope.
The target starts with the declared inputs and runs its own task roles and
handler bindings. The public instance ID identifies the outer instance.
Called work exposes its execution and bound model version. Direct starts
require process_start. An authorized start permits the published calls
within that instance.
The caller remains at the Call Activity while the target executes. On normal completion the runtime validates all required outputs, publishes them to the caller and advances its outgoing flow once in the same durable transition. A missing or invalid required output opens a problem at the call and keeps its caller data and outgoing flow unchanged.
An interrupting Boundary Timer on a Call Activity or an enclosing scope withdrawal cancels the active call and its descendant work. Return and withdrawal compete for the same durable occurrence. The committed transition determines the outcome. Task, timer and service replies from a withdrawn occurrence cannot publish data or advance the caller. External handler effects follow WF-008.
See BPMN-020 and Call Activity evidence.
WF-016 — Explicit BPMN Errors in calls
The optional bpmn-error capability adds Error End Events and interrupting
Error Boundary Events attached to a Call Activity in the same scope. Both
events reference a BPMN Error declared in their document through errorRef.
Each referenced Error has an explicit nonempty errorCode. The runtime
matches the code exactly, including case. Each document can use its own
definition ID. A Call Activity may catch distinct codes through separate
Boundary Events, with at most one handler per code.
When an Error End Event fires, search the active enclosing executions from the source outwards, through embedded Sub-Processes and Call Activities. The closest Call Activity with a matching Boundary Event handles the Error. The handler comes from the bound caller version and applies to that specific Call Activity execution. Its entire called execution tree is withdrawn, including pending tasks, timers, service attempts and nested calls. The Boundary Event’s outgoing flow starts once. Unrelated branches in the caller remain eligible to run. The error path keeps the caller’s ordinary data visibility. Only a regular return validates and writes call outputs.
If the search reaches the root without a handler, the root execution ends
with status failed. It has no active work and records one open workflow
problem. A potential mismatch can be deployed. The durable server commits
withdrawal, the error history and the boundary continuation or failed root
in one transition. Regular return, deadline and Error processing compete
for the same execution. Late results cannot advance its withdrawn work.
External side effects follow WF-014.
Syntax and profile checks reject unresolved Error references, missing or blank codes, ambiguous handlers, unsupported placements, catch-all handlers and Error payloads. An Error Event Sub-Process is outside this profile. Technical handler failures and modeled service faults have separate semantics. See BPMN-021 and the BPMN Error evidence.
BPMN Service Operations and declared faults
The service-operation capability lets a Service Task use operationRef
to select an Operation in a local BPMN Interface. The Operation declares one
input Message, an optional output Message, and allowed Errors with explicit
errorCode values. Each Message refers to an ItemDefinition with a flat
XSD payload type. The task declares one InputSet with the input port and one
OutputSet. The OutputSet contains the output port when the Operation has an
output Message. Each port uses its Message’s ItemDefinition. Direct XPath
assignments bind the scalar payload fields to typed process fields.
Preflight validates those bindings and the implementation’s port contract.
A registered handler reports a confirmed domain fault by returning
fault(code). A handler may advertise its faultCodes for preflight.
A returned code outside the bound Operation’s declaration, including one
returned by a Service Task without an Operation, records
undeclared-service-fault on the active Service Task.
For a declared fault, an interrupting Error Boundary Event on the task wins if its explicit code matches exactly. The worker then uses the active call chain and the Error semantics above when no direct handler matches. The instance records one open workflow problem when the Error is unhandled. An accepted fault writes no success output.
An attempt may publish a fault while its activation is current, the scope
is active, and the bound inputs retain their captured versions. The server
commits the terminal faulted attempt, error code and source, and the
effective Error transition in one transaction. A later activation has
its own execution and attempt IDs. A stale attempt cannot advance the
process. A changed input becomes a data conflict. Recovery retains an
accepted fault. An interrupted invocation before commit follows the
technical recovery rules in WF-008.
HTTP fault mapping
The optional http-service-fault capability adds
getriebe:connectorFaultRules to HTTP / REST connector version 1. It
contains a JSON array of objects with status (an integer from 400 through
599), field (a top-level JSON key), equals (an exact string), and
errorCode (a declared Operation code). Rules for one status must compare
different values of the same JSON field. Preflight rejects undeclared codes
and overlapping rules at the Service Task.
A rule requires the configured status and a complete JSON object with an own field exactly equal to the configured string. The response body is used for classification. Unmatched responses, incomplete bodies and transport failures keep their connector diagnostics and unknown-outcome semantics. The connector stores no raw fault body in process data or diagnostics. See the Connectors guide.
WF-017 — Versioned message start
A top-level process can define a None Start Event, one or more Message Start Events, or both. One trigger creates one instance. An embedded scope starts through its None Start Event. Each version has at most one start for each qualified message type.
A message type is the BPMN target namespace and the full Message ID,
such as PurchaseRequestSubmitted.V1. The version is part of the ID.
The Message references a BPMN ItemDefinition. Its structure refers to a
named complex type in a local XSD Import. The flat payload has named fields
of type string, boolean, long or decimal. Each field occurs once or is
optional. A field name, type or requiredness change requires a new
qualified ID. Deployment binds the resolved contract to the model version.
Direct typed BPMN Data Associations and Assignments bind the event output to process fields. A mapping copies a supplied payload field to a process field with the same type. An omitted optional field contributes no assignment. Start and reply are exclusive inbound purposes for each qualified type.
A qualified start type is bound to one process series. For new deliveries the series selects its latest startable version. That version must declare a Start Event for the exact type. An archived version remains available to existing instances and can become active for new deliveries through the usual version selection rules. The registry retains the owning series so reactivation continues to use the same identity.
WF-018 — Send and correlate a reply
A Send Task assembles its typed payload from process fields and selects an adapter registered for the exact outgoing message type and contract. Before the adapter obtains the payload, storage records the dispatch, outgoing message ID, expected reply, correlation value and authorized recipient account. The recipient is selected from the adapter’s mapping of a required string field to an account ID. A correlation value belongs to one exchange for the modeled CorrelationKey. A duplicate dispatch for the same business key is rejected before adapter submission.
A BPMN Conversation groups the outgoing and incoming Message Flows. The CorrelationKey references one CorrelationProperty. A retrieval expression for each Message extracts one required string. The Send Task and the later Message Catch Event belong to the same execution scope and exchange messages with the same external participant.
The Send Task completes once after a verified transport acceptance is stored. A confirmed rejection permits an explicit retry using the same outgoing ID and payload. An uncertain outcome remains open for an administrator to verify against the adapter. The runtime submits queued work and recovers interrupted submissions as uncertain. The transport and the receiving application control any external deduplication.
Once the correlation is stored, the first valid reply from its authorized recipient reserves the exchange. If the catch is already active, the reply advances it and copies mapped fields in the same transaction. Otherwise the server stores the reply as buffered and consumes it when the catch becomes active. A different valid reply to the same exchange is rejected, even if the first reply is still buffered.
WF-019 — Message or timer
The profile supports a non-instantiating exclusive Event-Based Gateway with one Message Catch Event and one fixed-duration Timer Catch Event. It has one incoming flow. The two outgoing flows are unconditional and their targets have no other incoming flows.
The deadline begins when execution reaches the message wait. The first committed effective transition selects one branch for that activation. A buffered reply is available at entry. The timer can win from its due time onward. A message can win after the due time while the timer’s transition remains uncommitted.
After the timer wins, the first valid later reply is recorded as late with its correlation and receipt time. The selected path and any follow-up work stay in place. If the scope ends before receiving a reply, its exchange closes. A buffered receipt becomes cancelled and remains readable. Another delivery for the cancelled exchange is rejected. Receipt state, correlation, winner and workflow changes share the durable transition.
WF-020 — One-shot User Task reminder
A User Task with a non-interrupting Boundary Timer schedules one reminder at activation. The due time is the activation time plus the fixed duration. The activation ID, model version and pending due time survive snapshot restore. Assignment changes and new attempts keep the same schedule. A later visit through Sequence Flow gets a fresh activation and schedule.
At or after the due time, the timer can consume its pending occurrence and start its outgoing path once. The User Task and its current attempt remain active. If task completion commits first, it removes a pending reminder. A reminder path that has started remains part of the containing scope. Ordinary process or scope completion waits for its remaining work. A modeled scope withdrawal removes outstanding work on that path.
The first committed transition determines whether the reminder starts. When the runtime processes a due reminder and an enclosing interrupting scope deadline is also due, the deadline wins. The Effect server commits the new path, timer removal and reminder history together. Replay of an obsolete or consumed occurrence leaves the workflow unchanged. WF-014 defines the scope withdrawal contract.
The Worklist’s dueAt shows the earliest applicable interrupting
deadline. Instance detail records activated reminders with scheduled and
actual firing times. The Behavior Checker explores the optional branch
and both ways of finishing the scope with an untimed control-flow model.
See BPMN-025
and the one-shot Boundary Timer evidence.
Process data
DATA-001 — Scalar values
The MVP uses named fields declared with xsd:string, xsd:boolean,
xsd:long or xsd:decimal. The model version determines field types. JSON
carries strings and booleans as native values, and longs and decimals as
strings interpreted in their declared type. Longs cover the full signed
64-bit range. An absent field is unset. JSON null is rejected.
See XML Schema 1.1 Part 2: Datatypes.
DATA-002 — Numeric operations
Addition, subtraction and multiplication are exact, with bounds and overflow checked. Long division requires an integral result. Decimal division must be exact or explicitly use a supported scale and rounding mode. Division by zero, unrepresentable results and values beyond documented limits are errors. Mixed numeric operations convert long to decimal exactly. Numeric equality compares values, including decimals with different amounts of trailing zeros. Text is never implicitly converted to a number.
DATA-003 — Expressions
The supported expression dialect is pure, deterministic and declared with a versioned language identifier. Deployment checks syntax, types and supported references where possible. Runtime errors include an attempted read of an unset field. Boolean operations short-circuit. Decimal rounding is explicit. Missing required activity inputs prevent work from being offered or invoked until the inputs are available. The exact grammar and resource limits belong to the dialect specification.
DATA-004 — Attempt isolation
A task attempt freezes its inputs and the versions of data sets relevant to its reads or writes. On completion those versions are checked again alongside task status and current authorization. A mismatch rejects the result and prevents progression. For User Tasks the task remains open and claimed, and the assignee may explicitly begin a new attempt with refreshed inputs. The history preserves the earlier inputs and the conflict and distinguishes them from a successful result.
DATA-005 — Collections
The model may declare homogeneous collections of strings or booleans. JSON carries each collection as an array of native values of the declared element type. The order is significant. Collection fields are otherwise subject to the same rules for absence and null as scalars.
DATA-006 — Scoped data
Process fields belong to the process instance. A locally declared field belongs to its containing Sub-Process execution. An activity or expression can use a field declared in its own scope or an enclosing scope. Bindings and their types are determined by the model version. The local data is available from entry until scope completion. Another execution has its own values. Values needed after exit are written explicitly to an enclosing field or recorded in authorized task history.
The Effect server checks revisions of the fields a scoped task attempt reads or writes. Writes to an independent local field do not invalidate other attempts. Attempts that share a field are subject to DATA-004. Multi-Instance publication and protected inputs are governed by WF-010.
Resources and audit
RES-001 — Assignment and eligibility
An open role-pool User Task is visible to users currently eligible through its role, including when another user has claimed it. At most one competing claim succeeds. The assignee or an administrator can release a role-pool task as allowed by the authorization contract.
A User Task can instead be directly assigned to an individual account. The individual is selected for the process instance and need not be its starter. The recipient is resolved from the process data when the task is activated and remains fixed for that task. A later activation resolves its own recipient. An empty, missing or unknown account identifier fails visibly without partly applying the transition that would create the task. A known inactive account can be assigned; the task then waits until its account and any required role permit action. If the model also requires a role, the individual must currently have that role to complete the task. A personal assignment cannot be claimed, released or transferred in this profile. A role membership alone does not make another user eligible for a personally assigned task. Only the current eligible assignee can complete either kind of task, including when that user is an administrator.
RES-002 — Role changes and references
Roles have stable, immutable keys selected at creation. Deployment resolves the modeled role to a server role. A role with no currently eligible user may receive tasks. Deactivation or removal of the assignee’s required role releases affected role-pool assignments consistently and records the cause. For a personal assignment, the assigned identity remains unchanged; the deactivated user, or user without a required role, cannot act. Restoring the account and required role permits action again without reassignment. A role referenced by a user, model version or task history cannot be deleted. A user referenced by process or task history can be deactivated but cannot be deleted.
RES-003 — Task history
Task history records creation, claim, release and completion as applicable, with stable per-task sequence, server time, actor and cause. It preserves the historical names and stable identifiers needed to interpret events and successful results. Task and model-version role references retain their historical meaning. History is readable only within the relevant access scope. Application interfaces do not rewrite successful audit events.
When a deadline or Terminate End Event withdraws a task, the task and its current attempt become
withdrawn. The task offers no further actions. The system event records
the task, activation, triggering event, processing time and the withdrawn
attempt when present. A Boundary Timer event also records its deadline. Earlier assignments and their history
remain available within the historical access scope. Withdrawal does not
accept the attempt’s result.
Persistence
STORE-001 — Atomic changes
The standard server composition applies changes that affect workflow,
resources, users and process data within a shared transaction where they must
agree. Successful task completion makes the accepted result, completion and
workflow progression effective together with its success audit. Claims and
releases commit together with their corresponding audit. Success is returned
only after confirmed commit. The server reports an unknown commit outcome
as HTTP 503 commit-unknown without automatically retrying the mutation.
A subsequent read can show either the committed state or the original state.
The deadline worker uses the same transaction boundary to decide the active occurrence, withdraw the task and current attempt, advance the workflow, write the system event and retire the pending timer. The deadline index is derived from the activation and follows the same transaction. On an unconfirmed commit, the worker first reads the same activation’s durable state. A still-open due activation remains available for retry.
STORE-002 — Adapter capability
SQLite and PostgreSQL both meet the standard composition’s minimum contract. The server uses SQLite by default. Unsupported combinations and unsafe schema versions fail during startup with a useful diagnosis. Isolation and durability claims are specific to the adapter and its configuration. The contract is checked against both databases for the supported configurations.
STORE-003 — Orderly restart
An orderly shutdown stops accepting mutations and finishes or fails accepted operations. After restart, waiting User Tasks and accepted results remain available. A pending follow-on workflow step can continue. An external service attempt with an unsettled outcome is exposed as unknown. The minimum contract covers orderly restarts.
The deadline worker checks stored deadlines on startup and makes another attempt after transient storage failures. Processing time depends on its clock and workload. The deadline contract covers a single server process.
Server
API-001 — Deployment and versions
Each deployment submits one BPMN XML document with exactly one executable process. The server identifies the model by its target namespace and process ID. Successful deployments are versioned, assign a distinct version ID and an increasing per-model version number, and retain the submitted XML, validation results and role bindings. Message deployments also retain the local XSD files and resolved contracts. Deployment failure leaves existing versions and instances unchanged.
API-002 — Start and visibility
A direct start with an explicit version uses that admissible, non-archived version even when a newer one exists. When no version is specified, the newest version with an admissible None Start Event is selected. Archiving prevents new starts on that version and preserves existing instances and history. Instances always refer to the version that started them. Start data uses that version’s schema. Bound calls follow WF-015. Starts through message delivery follow WF-017.
Instance access is limited to administrators, starters, participants who have performed a task action and users currently authorized through an open task. Historical participation grants visibility, while actions are subject to current authorization.
API-003 — Authentication and authorization
The standard server supports username and password login, profile and logout. An initial administrator is created at first initialization. Credentials and roles changed afterwards survive restarts. Protected requests use a server-authenticated actor and check current authorization. Password changes, resets and deactivation invalidate existing sessions of the affected user. Administrative actions preserve at least one active administrator. Modeling permission, administration and operational process access are distinct. The HTTP session binding defines cookie, token and client behavior for the standard HTTP server.
API-004 — Capability report
A structured report states the capabilities and limits effective in the configured runtime. Deployment checks that the concrete model and its required combination of capabilities can be supported. A capability version must not denote different observable semantics across implementations.
API-005 — Message delivery and receipt
POST /api/v1/messages accepts a qualified type, sender-assigned
messageId and JSON payload. The server obtains the sender ID from the
authenticated account. A grant authorizes the exact message type.
A reply additionally requires the recorded recipient. long and
decimal values use exact JSON strings.
The server checks the authenticated sender and grant before returning an existing receipt. It looks for the sender and delivery ID before routing the request. An identical retry returns the original receipt with its current status even after a newer deployment. A different type or content under the same sender and delivery ID is a conflict. JSON member order is immaterial. The receipt contains a fingerprint instead of retaining the full submitted payload after consumption, lateness or cancellation.
GET /api/v1/messages/{receiptId} requires the sending account and its
current grant. A successful read reports one of started, buffered,
consumed, late or cancelled. Receipts and correlation assignments
have no automatic expiry in this profile.
Model checking
CHECK-001 — Structure and behavior
Structural checks and behavioral checks are reported separately. A model with an unsupported or unconfirmed structure cannot be deployed. A demonstrated concrete violation of a required behavior property also prevents deployment. An undecided or omitted behavior check is visible as a warning in the default profile. A potentially spurious counterexample does not demonstrate a concrete violation.
CHECK-002 — Property results
TypeScript behavior checker evidence.
Behavior checks report each property’s outcome, including established, concrete counterexample, undecided or unchecked. Record the assumptions, abstraction, procedure, applicable bounds and checker version. When the model has a bound call chain, the report identifies the target versions considered. A bounded search without a found counterexample establishes a property only when the method justifies that conclusion. Candidate properties include deadlock freedom, possibility of completion, clean completion, reachable activities and an XOR decision without a selected branch. Possibility of completion does not imply universal termination.