Skip to content
This documentation is in construction.

Execution Platform

The Execution Platform enables modules to define and execute Activities and Workflows with full state tracking, automatic retries, and integration with external systems.

  • Activities — Atomic operations that can run independently or as part of a Workflow.
  • Workflows — Orchestrated sequences of Activities, with complete state and history tracking.
  • Extendable by any module
  • Automatic execution tracking and logging
  • Database-backed history of all runs
  • Built-in error handling and retry strategies
  • Optional InputSchema and OutputSchema for each Activity or Workflow
  1. Terminal window
    composer require epsicube/module-execution-platform
  2. Terminal window
    php artisan modules:enable core::execution-platform
  3. Terminal window
    php artisan config:clear

Modules can inject custom Activities and Workflows through Integrations. When the Execution Platform is active, you can extend its registries:

\EpsicubeModules\ExecutionPlatform\Facades\Activities::register(...);
\EpsicubeModules\ExecutionPlatform\Facades\Workflows::register(...);

Example: Register a Custom Activity and Workflow

Section titled “Example: Register a Custom Activity and Workflow”
use EpsicubeModules\ExecutionPlatform\Facades\Activities;
use EpsicubeModules\ExecutionPlatform\Facades\Workflows;
class MailModule extends ServiceProvider implements HasIntegrations, Module
{
public function integrations(): Integrations
{
return Integrations::make()
->forModule('core::execution-platform', function () {
Activities::register(SendMailActivity::make());
Workflows::register(SendMailWorkflow::make());
});
}
}

The Execution Platform provides a flexible orchestration layer that supports both current and planned functionality:

  • Expose all Activities, Tasks, and Workflows via an auto-generated MCP Server

  • Trigger Activities programmatically or via graphical tools like N8N

  • Dispatch Workflows across multiple workers using external engines such as Temporal.io

  • Planned workflow execution drivers:

    • Temporal.io — Distributed orchestration for complex workflows
    • Laravel Workflow — Laravel-native engine
    • Sync driver — Simple synchronous execution for lightweight tasks

This unified approach allows modules to integrate seamlessly, track executions, and scale with both native and external orchestration tools.