Skip to main content

Process Tracing

Overview

Process Tracing provides detailed visibility into the execution of every process instance. When tracing is enabled, FlowOn BPM captures granular records of each step in the process lifecycle, creating a comprehensive audit trail for debugging, compliance, and analytics.

Each trace record documents what happened, when it happened, and the data context at that moment—giving you complete insight into how your processes execute in production.

Tracing serves multiple purposes across different stakeholders:

  • Process Designers use traces to verify that processes behave as intended
  • Operations Teams use traces to diagnose problems when process instances don't proceed as expected
  • Compliance Officers use traces as audit evidence that required steps were followed
  • Business Analysts use traces to understand process performance and identify optimization opportunities
  • Support Teams use traces to investigate specific cases and answer questions from stakeholders

Trace Record Structure

Each Process Stage Trace record captures the following information:

FieldDescriptionExample
OwnerThe entity that created the trace record (typically System)System
Process StageThe stage in the process where this trace was recorded"Credit Review", "Final Approval"
SubstageThe specific phase within the stage lifecycleEntering, Exiting, Task Completion, Transition
Trace DataContextual data captured at the time of the traceField values, decisions made, errors encountered

Substage Types

Each stage in a process goes through multiple phases during execution. FlowOn BPM traces each of these phases as distinct Substages:

Entering

The Entering substage is traced when a process instance arrives at a stage.

AspectDetails
When CapturedImmediately when the stage is entered, before On Entering automation executes
What It RecordsStage entry timestamp, source stage/transition, initial data state
Use CasesTrack when work arrived, measure queue times, debug automation triggers

Task Completion

The Task Completion substage is traced when assigned work is completed.

AspectDetails
When CapturedWhen task(s) are marked complete and completion criteria are met
What It RecordsCompletion timestamp, who completed the task, task outcome data
Use CasesTrack work completion, measure processing times, identify bottlenecks

Exiting

The Exiting substage is traced when a stage is completed and the process is ready to move on.

AspectDetails
When CapturedAfter On Exiting automation completes, before transition evaluation
What It RecordsExit timestamp, stage duration, outcome data, automation results
Use CasesTrack stage completion, measure total stage time, audit automation execution

Transition

The Transition substage is traced when the process moves from one stage to another.

AspectDetails
When CapturedWhen transition guards are evaluated and a path is selected
What It RecordsWhich transition was taken, guard evaluation results, target stage
Use CasesDebug routing logic, audit decision paths, analyze process flow patterns

Trace Data

The Trace Data field captures comprehensive contextual information at each substage. All trace records include three levels of context:

Common Trace Fields

FieldDescription
@Process.Definition.IdUnique identifier of the process definition
@Process.Definition.NameName of the process
@Process.Definition.VersionVersion number of the process definition
@Process.EntityThe primary entity the process operates on
@Process.Instance.IdUnique identifier of this specific process instance
@Process.Instance.SubjectSubject/title of the process instance
@Process.Instance.StartDateWhen the process instance started
@Process.Instance.DueDateWhen the process instance is due
@Process.Instance.OwnerOwner of the process instance (user or team)
@Process.Stage.Definition.UniqueNameUnique name of the stage definition
@Process.Stage.Instance.IdUnique identifier of this stage instance
@Process.Stage.Instance.OwnerCurrent owner of the stage
@Process.Stage.Instance.SubjectSubject/title of the stage
@Process.Stage.Instance.DueDateWhen the stage is due
@Process.Stage.Instance.TaskReference to the activity/task record

Substage-Specific Fields

Entering Trace Data:

  • Task subject and due date
  • Related entity references
  • Security role assignments
  • Created task/activity output

Task Completion Trace Data:

  • Reference to the completed task/activity
  • Whether all completion criteria have been met

Exiting Trace Data:

  • Final field values after updates
  • Stage duration (by comparing with Entering timestamp)

Transition Trace Data:

  • The name/unique identifier of the target stage

Using Traces

Debugging

Traces help identify issues in process execution:

ProblemHow Traces Help
Process stuck at a stageCheck Entering trace to confirm arrival; look for missing Task Completion
Wrong path takenReview Transition trace to see guard evaluation results
Automation failedExamine Exiting trace data for error details
Unexpected delaysCompare timestamps between Entering and Task Completion

Compliance & Audit

Traces provide a complete audit trail:

  • Who completed each task
  • When each action occurred
  • What decisions were made
  • Why specific paths were taken (guard evaluations)

Analytics

Aggregate trace data to analyze process performance:

MetricDerived From
Average stage durationEntering → Exiting timestamps
Task completion timeEntering → Task Completion timestamps
Most common pathsTransition trace data
Bottleneck stagesStages with longest durations

Enabling Tracing

Tracing is configured at the process level when creating or editing a process:

SettingEffect
Tracing EnabledAll substages traced for every instance
Tracing DisabledNo detailed traces captured (better performance)

Recommendations by Environment

EnvironmentTracing Recommendation
Development✅ Always enabled
Test/UAT✅ Enabled
Production (low volume)✅ Enabled for audit
Production (high volume)⚠️ Consider performance impact
Best Practices
  • Enable tracing during development and testing for full visibility
  • Enable tracing for critical business processes requiring audit trails
  • Consider performance for high-volume processes—tracing adds overhead
  • Review traces regularly to identify optimization opportunities