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/@dbos-inc+dbos-sdk@4.7.9_bufferutil@4.0.9_pg-native@3.5.2_utf-8-validate@5.0.10/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/@dbos-inc+dbos-sdk@4.7.9_bufferutil@4.0.9_pg-native@3.5.2_utf-8-validate@5.0.10/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[]; }>