Skip to content
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

Custom switch activity #1240

Closed
Juandavi1 opened this issue Jul 11, 2021 · 2 comments
Closed

Custom switch activity #1240

Juandavi1 opened this issue Jul 11, 2021 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@Juandavi1
Copy link

Hi guys,

im trying to create a custom switch activity but the designer doesn't show the cases :(

Captura de Pantalla 2021-07-10 a la(s) 8 27 30 p  m

Captura de Pantalla 2021-07-10 a la(s) 8 27 40 p  m

@sfmskywalker sfmskywalker added the enhancement New feature or request label Jul 12, 2021
@sfmskywalker sfmskywalker added this to the Elsa 2.1 milestone Jul 12, 2021
@sfmskywalker
Copy link
Member

Hi Juan,

The issue is that the designer's switch-plugin is only looking for Switch activities. This means that if you create a custom activity that uses a different activity name, such as AnswerTree in your case, the plugin won't recognize that it needs to interpret the Cases property.

I will make push a change that fixes is. Your use case is a valid one, since you're simply reusing the Switch UI hint, so it should be made to be supported by the designer for custom activities also.

@sfmskywalker
Copy link
Member

Fixed in 5d74899. Once the prerelease packages are build & pushed, your custom Switch activity should work properly. If not, please feel free to reopen this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants