From 0451279fc7a884001316cb3c9ef06c9ba46bc976 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Mendoza=20P=C3=A9rez?= Date: Sat, 28 Jan 2023 13:07:55 +0100 Subject: [PATCH 1/2] fix-172 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Antonio Mendoza Pérez --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5c71fb30..37a911e0 100644 --- a/README.md +++ b/README.md @@ -118,13 +118,21 @@ You can convert it to its string representation in JSON or YAML format by using the static methods `Workflow.toJson` or `Workflow.toYaml` respectively: ```typescript -import { Workflow } from '../src/lib/definitions/workflow'; +import {Specification, workflowBuilder} from "@severlessworkflow/sdk-typescript"; -const workflowAsJson: string = Workflow.toJson(workflow); +const workflow: Specification.Workflow = workflowBuilder() + //... + .build() + +const workflowAsJson: string = Specification.Workflow.toJson(workflow); ``` ```typescript -import { Workflow } from '../src/lib/definitions/workflow'; +import {Specification, workflowBuilder} from "@severlessworkflow/sdk-typescript"; + +const workflow: Specification.Workflow = workflowBuilder() + //... + .build() const workflowAsYaml: string = Workflow.toYaml(workflow); ``` From a5295a27b9d2763eadd7d42552fdfc14746249d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Mendoza=20P=C3=A9rez?= Date: Sat, 28 Jan 2023 13:11:21 +0100 Subject: [PATCH 2/2] fix-172 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Antonio Mendoza Pérez --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 37a911e0..ad10f26b 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ const workflow: Specification.Workflow = workflowBuilder() //... .build() -const workflowAsYaml: string = Workflow.toYaml(workflow); +const workflowAsYaml: string = Specification.Workflow.toYaml(workflow); ```