PersistentAI API Documentation / @persistentai/fireflow-vfs / server / MoveWorkflows
Class: MoveWorkflows
Defined in: packages/fireflow-vfs/src/workflows/move-workflow.ts:56
Move workflows with user confirmation support
Extends
ConfiguredInstance
Constructors
Constructor
new MoveWorkflows(
db,name?):MoveWorkflows
Defined in: packages/fireflow-vfs/src/workflows/move-workflow.ts:57
Parameters
db
name?
string = 'MoveWorkflows'
Returns
MoveWorkflows
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
moveWithConfirmation()
moveWithConfirmation(
workspaceId,branchName,sourcePath,targetPath,userId):Promise<{cancelled?:boolean;commitId?:string;success:boolean; }>
Defined in: packages/fireflow-vfs/src/workflows/move-workflow.ts:76
Move file/folder with user confirmation for conflicts
This workflow implements a plan-execute-commit pattern:
- Create operation plan in a step (deterministic)
- Request confirmations at workflow level (DBOS.recv())
- Execute in a step (deterministic)
- Commit and emit events in a step (atomic)
Parameters
workspaceId
string
branchName
string
sourcePath
string
targetPath
string
userId
string
Returns
Promise<{ cancelled?: boolean; commitId?: string; success: boolean; }>
Result with success status and optional commitId