Skip to content

Main content

Random Workflow Audit Trail Dataset Generator

Walk a supplied workflow graph for an exact event count with monotonic synthetic timestamps, actors, state frequencies, and a separately labeled invalid transition.

Loading tool…

Description

Walk a supplied workflow graph for an exact event count with monotonic synthetic timestamps, actors, state frequencies, and a separately labeled invalid transition.

A workflow or scheduling fixture makes ordering, dependencies, capacity, and timing explicit. Returning both the constructed records and their checks helps consumers distinguish a valid arrangement from a simulated failure case.

Walk a supplied workflow graph for an exact event count with monotonic synthetic timestamps, actors, state frequencies, and a separately labeled invalid transition.

When to use this tool

Use this generator to create reproducible workflow audit trail dataset cases from the supplied model or bank. Inspect the returned evidence before using cases in a test or exercise.

How to use the tool and how it works

  1. Supply states, transitions, initialState, actorIds, count, startMilliseconds, endMilliseconds, includeInvalidControl in the field shapes below. Set seed when you need an explicit replay.
  2. Run the tool and correct any input error. For generated controls, distinguish a successful fixture containing an invalid case from failure to generate the fixture.
  3. Read events, finalState, stateFrequencies, controls. Use the conventions below and keep answer-bearing fields separate when presenting an exercise.

Precompute which states can finish an exact-length walk, reserving a final state with an absent transition when an invalid control is requested. Draw only viable next states, actors and nondecreasing millisecond timestamps, then report destination frequencies and a separately labeled invalid transition.1

Input fieldMeaning and unitsAccepted input
statesStatesRequired. Array of Text; minimum UTF-16 length 1; maximum UTF-16 length 128.; minimum items 1; maximum items 32.
transitionsTransitionsRequired. Array of Object; no unknown keys.; minimum items 0; maximum items 1024.
transitions[].fromFromRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 128.
transitions[].toToRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 128.
initialStateInitial StateRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 128.
actorIdsActor IdsRequired. Array of Text; minimum UTF-16 length 1; maximum UTF-16 length 128.; minimum items 1; maximum items 128.
countRequested count; the mechanics explain whether one draw expands into several returned records.Required. Safe integer; minimum 1; maximum 128.
startMillisecondsStart MillisecondsRequired. Safe integer.
endMillisecondsEnd MillisecondsRequired. Safe integer.
includeInvalidControlInclude Invalid ControlRequired. Boolean.
seedOptional numeric seed; takes precedence over context randomness. Without either, use the fixed tool.io default seed.Optional. Safe integer.
Output fieldInterpretationReturned shape
eventsEventsRequired. Array of Object; no unknown keys.; minimum items 1; maximum items 128.
events[].idLiteral identifier used to match records, independently of their display labels.Required. Text; minimum UTF-16 length 1; maximum UTF-16 length 128.
events[].fromFromRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 128.
events[].toToRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 128.
events[].actorIdActor IdRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 128.
events[].timestampMillisecondsTimestamp MillisecondsRequired. Safe integer.
finalStateFinal StateRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 128.
stateFrequenciesState FrequenciesRequired. Array of Object; no unknown keys.; minimum items 0; maximum items 32.
stateFrequencies[].labelCaller-facing text label; not a globally unique identifier.Required. Text; minimum UTF-16 length 1; maximum UTF-16 length 128.
stateFrequencies[].countRequested count; the mechanics explain whether one draw expands into several returned records.Required. Safe integer.
controlsControlsRequired. Array of Object; no unknown keys.; minimum items 0; maximum items 1.
controls[].fromFromRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 128.
controls[].toToRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 128.
controls[].validTransitionValid TransitionRequired. Boolean.
randomnessReplay metadata: source is seed or context; seed is the normalized 32-bit seed or null for a context source.Required. Object; no unknown keys.
randomness.seedOptional numeric replay seed; normalization and precedence are explained below.Required. Safe integer. or Null.
randomness.sourceSourceRequired. Text; one of "context", "seed".

An explicit safe-integer seed takes precedence over injected context randomness and is normalized to an unsigned 32-bit integer. With no seed and no context source, replay uses the fixed tool.io default seed. A context source must return finite values from zero inclusive to one exclusive; its advancing state must be retained separately. randomness records the source and normalized seed, or null for context. These generators are not cryptographic random sources.

json
{
  "input": {
    "states": [
      "draft",
      "review",
      "done"
    ],
    "transitions": [
      {
        "from": "draft",
        "to": "review"
      },
      {
        "from": "review",
        "to": "done"
      }
    ],
    "initialState": "draft",
    "actorIds": [
      "actor-a",
      "actor-b"
    ],
    "count": 2,
    "startMilliseconds": 1000,
    "endMilliseconds": 2000,
    "includeInvalidControl": true,
    "seed": 42
  },
  "output": {
    "events": [
      {
        "id": "event-1",
        "from": "draft",
        "to": "review",
        "actorId": "actor-a",
        "timestampMilliseconds": 1853
      },
      {
        "id": "event-2",
        "from": "review",
        "to": "done",
        "actorId": "actor-a",
        "timestampMilliseconds": 1930
      }
    ],
    "finalState": "done",
    "stateFrequencies": [
      {
        "label": "review",
        "count": 1
      },
      {
        "label": "done",
        "count": 1
      }
    ],
    "controls": [
      {
        "from": "done",
        "to": "draft",
        "validTransition": false
      }
    ],
    "randomness": {
      "seed": 42,
      "source": "seed"
    }
  }
}

Limitations and assumptions

  • Synthetic timestamps may tie. State frequencies count event destinations rather than an extra initial visit. Infeasible exact lengths or unavailable invalid controls are rejected; no real audit log is collected.
  • A replay requires the same complete input and implementation. Randomized construction does not guarantee uniform coverage of every feasible output; finite samples can repeat unless a distinct-selection rule is explicitly stated.
  • The field tables state structural bounds; cross-field constraints and bounded search or output budgets also apply. Unknown keys are rejected where the object contract disallows them. Input errors are distinct from null fields and deliberate invalid controls in a successful output.

Alternative or Complementary methods

For a supplied example, inspect the returned construction or delegated check directly. To evaluate a consumer, also test cases chosen for its own boundaries; a generated finite corpus does not establish exhaustive coverage.

References

  1. Tool behavior and example: Random Workflow Audit Trail Dataset Generator — tool.io

Similar or alternative tools