Skip to main content

Overview

Jinba Flow automatically tracks versions of your workflows and maintains a complete execution history. This allows you to view past changes, restore previous versions, and analyze workflow execution patterns.

Workflow Versions

What are Versions?

Every time you make significant changes to a workflow, Jinba Flow creates a new version:
  • Automatic Versioning: Versions are created automatically when you publish, restore, or accept copilot changes
  • Version History: All versions are preserved, allowing you to see the evolution of your workflow
  • Version Labels: Versions are labeled to indicate their purpose (PUBLISH, RESTORE, COPILOT_CHANGE_ACCEPTION)

Version Types

Published Version

The version that is currently published and accessible via API or MCP:
  • Stable Reference: This version remains unchanged even if you edit the workflow
  • API Access: External systems use this version
  • MCP Tools: AI assistants use this version when invoking the workflow

Current/Editable Version

The version you’re currently editing:
  • Active Development: This is your working version
  • Unpublished Changes: May have changes not yet published
  • Preview Mode: You can preview other versions while keeping this as your working version

Previous Versions

All other versions in the workflow’s history:
  • Historical Record: Complete history of all workflow changes
  • Restoration: Can be restored to become the current editable version
  • Comparison: Can be compared with current version

Viewing Version History

Accessing Versions

  1. Open your workflow in the Flow Editor
  2. Navigate to the Versions panel (usually in the right sidebar)
  3. View the list of all workflow versions

Version Information

Each version shows:
  • Creation Date: When the version was created
  • Label: Version type (PUBLISH, RESTORE, COPILOT_CHANGE_ACCEPTION)
  • Status: Whether it’s published, current, or previous
  • Steps: The workflow steps at that point in time

Previewing Versions

You can preview any version without making it your current version:
  1. Click on a version in the versions list
  2. The workflow editor shows that version’s steps
  3. You can see how the workflow looked at that point
  4. Click the current version again to exit preview mode
Note: Previewing a version doesn’t change your current editable version. You can preview and compare without affecting your work.

Restoring Versions

When to Restore

You might want to restore a previous version if:
  • Recent Changes Caused Issues: Recent edits broke the workflow
  • Revert to Stable Version: Go back to a known working version
  • Undo Accidental Changes: Recover from unintended modifications

How to Restore

  1. Open the Versions panel
  2. Find the version you want to restore
  3. Click the Restore button (or similar action)
  4. Confirm the restoration
  5. The selected version becomes your current editable version
Important Notes:
  • Restoring creates a new version with label “RESTORE”
  • Your current editable version is preserved in history
  • The restored version becomes your working version
  • You can restore again if needed

Version Labels

Versions are automatically labeled based on how they were created:

PUBLISH

Created when you publish a workflow:
  • Purpose: Marks the version that was published
  • Stability: This version remains stable for API/MCP access
  • Updates: New publishes create new PUBLISH versions

RESTORE

Created when you restore a previous version:
  • Purpose: Marks a version that was restored from history
  • Recovery: Indicates you went back to a previous state
  • History: Preserves the restoration action in history

COPILOT_CHANGE_ACCEPTION

Created when you accept changes suggested by the Copilot:
  • Purpose: Marks versions created through AI assistance
  • Collaboration: Tracks AI-assisted workflow improvements
  • Learning: Helps identify patterns in AI suggestions

Execution History

What is Execution History?

Execution history tracks all workflow runs:
  • Complete Record: Every workflow execution is recorded
  • Version Tracking: Each run is linked to the version that was executed
  • Performance Data: Execution times and results are tracked
  • Error Logging: Failed executions include error details

Viewing Execution History

  1. Navigate to your workflow
  2. Open the Runs or History tab
  3. View a chronological list of all executions

Execution Information

Each execution shows:
  • Execution Date: When the workflow was run
  • Status: Success, failure, or in progress
  • Version: Which workflow version was executed
  • Execution Time: How long the workflow took
  • Inputs: Arguments passed to the workflow
  • Outputs: Results from the execution
  • Errors: Any errors that occurred (if failed)

Filtering Execution History

You can filter execution history by:
  • Status: Show only successful, failed, or running executions
  • Date Range: Filter by when executions occurred
  • Version: View executions of a specific version
  • Source: Filter by how the workflow was triggered (manual, API, scheduled, etc.)

Using History for Debugging

Version Comparison

Compare different versions to understand changes:
  1. Preview a previous version
  2. Compare with your current version
  3. Identify what changed between versions
  4. Understand the impact of modifications

Execution Analysis

Use execution history to:
  • Identify Patterns: Find recurring issues or successes
  • Performance Tracking: See which versions performed better
  • Error Analysis: Review failed executions to identify problems
  • Usage Patterns: Understand how the workflow is being used

Debugging Workflow

  1. Find Problematic Version: Identify when issues started
  2. Compare Versions: See what changed between working and broken versions
  3. Review Executions: Check execution history for that version
  4. Restore if Needed: Restore a working version if current version has issues

Best Practices

  1. Regular Publishing: Publish stable versions regularly to create checkpoints
  2. Meaningful Changes: Make significant changes before creating new versions
  3. Version Review: Periodically review version history to understand evolution
  4. Execution Monitoring: Regularly check execution history for issues
  5. Restore Strategically: Use restoration when needed, but understand it creates new versions
  6. Document Changes: Use workflow descriptions or notepads to document major changes

Version Management

Version Lifecycle

  1. Creation: Version created automatically on significant actions
  2. Development: Current editable version is where you work
  3. Publishing: Publishing creates a stable PUBLISH version
  4. History: All versions are preserved in history
  5. Restoration: Previous versions can be restored

Version Limits

  • Storage: All versions are stored indefinitely
  • Access: You can access any version in history
  • Performance: Large version histories may take longer to load