PersistentAI API Documentation / @persistentai/fireflow-vfs / server / VFSRouterWorkflow
Class: VFSRouterWorkflow
Defined in: packages/fireflow-vfs/src/workflows/router-workflow.ts:54
VFS Router Workflow class
Extends
ConfiguredInstance
Constructors
Constructor
new VFSRouterWorkflow(
db,name?):VFSRouterWorkflow
Defined in: packages/fireflow-vfs/src/workflows/router-workflow.ts:55
Parameters
db
name?
string = 'VFSRouterWorkflow'
Returns
VFSRouterWorkflow
Overrides
ConfiguredInstance.constructor
Properties
name
readonlyname:string
Defined in: node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@dbos-inc/dbos-sdk/dist/src/decorators.d.ts:126
Inherited from
ConfiguredInstance.name
Methods
initialize()
initialize():
Promise<void>
Defined in: node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@dbos-inc/dbos-sdk/dist/src/decorators.d.ts:131
Override this method to perform async initialization between construction and DBOS.launch().
Returns
Promise<void>
Inherited from
ConfiguredInstance.initialize
routeEvent()
routeEvent(
event):Promise<{spawnedFlows:string[]; }>
Defined in: packages/fireflow-vfs/src/workflows/router-workflow.ts:66
Route a VFS event to all matching subscriptions
This is the main entry point called when a VFS event needs to be routed. It finds all matching subscriptions and spawns flow executions for each.
Parameters
event
Returns
Promise<{ spawnedFlows: string[]; }>