-
Notifications
You must be signed in to change notification settings - Fork 30
[vrotsc,vrotsc-annotations] (#869) Add Workflow Canvas Item for Switch Component #910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: akantchev
|
@akantchev thanks a ton for helping out! I still haven't had time to fully review, I will try to check it later this week and hopefully test it. |
|
Btw if we decide to use string values for comparator we need to export those values as a type. I've tried using enum for a previous extension (resume and restart behaviour - https://github.com/vmware/build-tools-for-vmware-aria/pull/851/files) and the enum is not properly resolved. this way we are free to use human readable strings but at the same time we will still have a form of autocompletion: And then we can map these strings to number with a simple switch that can even be wrapped in a private function for extracting the value |
…ted wrongly removed exception optional parameter for the user interaction component Signed-off-by: akantchev
|
Hi @VenelinBakalov I've updated the PR so it supports now all comparators that are supported by vRO. |
|
Sorry for the delay, I will try to reprioritise this soon. |
docs/versions/latest/Components/Archetypes/typescript/Components/Workflows.md
Outdated
Show resolved
Hide resolved
docs/versions/latest/Components/Archetypes/typescript/Components/Workflows.md
Show resolved
Hide resolved
typescript/vrotsc/e2e/cases/node_modules/@types/vrotsc-annotations/index.d.ts
Outdated
Show resolved
Hide resolved
docs/versions/latest/Components/Archetypes/typescript/Components/Workflows.md
Show resolved
Hide resolved
...src/compiler/transformer/fileTransformers/workflow/decorators/switchItemDecoratorStrategy.ts
Outdated
Show resolved
Hide resolved
...src/compiler/transformer/fileTransformers/workflow/decorators/switchItemDecoratorStrategy.ts
Outdated
Show resolved
Hide resolved
...src/compiler/transformer/fileTransformers/workflow/decorators/switchItemDecoratorStrategy.ts
Outdated
Show resolved
Hide resolved
...src/compiler/transformer/fileTransformers/workflow/decorators/switchItemDecoratorStrategy.ts
Show resolved
Hide resolved
...src/compiler/transformer/fileTransformers/workflow/decorators/switchItemDecoratorStrategy.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: akantchev
… documentation, enhanced integration tests\nSigned-off-by: akantchev



Implementation of Switch Canvas Item
Description
Add implementation of switch canvas item supported in vRO so that it will be generated whenever there is a corresponding annotations in the typescript implementation of a vRO workflow is found.
Checklist
Fixed #XXX -orClosed #XXX -prefix to auto-close the issueExample Workflow
Testing
End to end tests were included
Release Notes
Add support for switch schema element in vRO workflow that is similar to @DecisionItem.
Related issues and PRs
Related issue:
#869