Skip to main content

Configuration

Publish config/workflowengine.php:

php artisan vendor:publish --tag=workflowengine::config

Keys​

defaults​

'defaults' => [
'logger' => 'storage',
'repository' => 'storage',
],

Present in the published config but not currently read by the engine.

enable_logger​

'enable_logger' => true,

Whether per-node execution logging is written. Turn off to skip the log rows ($execution->logs and timeline() will be empty).

sync_wait_timeout​

'sync_wait_timeout' => env('WORKFLOW_SYNC_WAIT_TIMEOUT', 30),

Seconds. When a sync-mode execution hits a Wait shorter than this, the process sleeps in place and continues, instead of suspending and queueing a delayed resume. Longer waits (and all waits in async mode) always suspend.

Keep this small if sync mode is reachable from an HTTP request — max_execution_time and gateway timeouts will kill the process well before a couple of minutes.

webhook_middleware​

'webhook_middleware' => ['api'],

Middleware applied to the routes registered by the Webhook trigger.

resume_webhook​

'resume_webhook' => [
'path' => 'workflowengine/resume/{token}',
'middleware' => ['api'],
],

A single fixed route (not tied to any one workflow) that resumes an execution suspended on a Wait node in webhook mode. The {token} segment identifies which suspended execution to resume. See Resuming a webhook wait.

Expression delimiters​

Not published by default, but honoured if you add them:

'variable_open' => '{{',
'variable_close' => '}}',

Change the markers the expression engine looks for.