@node-ts/bus-workflow
Advanced tools
Comparing version 0.2.2 to 0.2.3
{ | ||
"name": "@node-ts/bus-workflow", | ||
"description": "A workflow engine for orchestrating logic flows in distributed applications.", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"license": "MIT", | ||
@@ -24,3 +24,3 @@ "main": "./dist/index.js", | ||
"devDependencies": { | ||
"@node-ts/bus-core": "^0.2.1", | ||
"@node-ts/bus-core": "^0.2.2", | ||
"@node-ts/code-standards": "^0.0.10", | ||
@@ -59,3 +59,3 @@ "@node-ts/logger-core": "^0.0.17", | ||
], | ||
"gitHead": "d89967a0a88deeccd51784e18aadf879685540f9" | ||
"gitHead": "bacefae4e4f09c32a6337f6072910121a282ed21" | ||
} |
@@ -20,8 +20,7 @@ import { Workflow } from '../workflow' | ||
@StartedBy<TestCommand, TestWorkflowData, 'handleTestCommand'>(TestCommand) | ||
async handleTestCommand (command: TestCommand): Promise<TestWorkflowData> { | ||
async handleTestCommand (command: TestCommand): Promise<Partial<TestWorkflowData>> { | ||
await this.bus.send(new RunTask(command.property1!)) | ||
return Object.assign( | ||
new TestWorkflowData(), | ||
{ property1: command.property1! } | ||
) | ||
return { | ||
property1: command.property1 | ||
} | ||
} | ||
@@ -28,0 +27,0 @@ |
132956
118
2161