Skip to content
Discussion options

You must be logged in to vote

@glopesdev may be able to give you a more complete answer to this. My take: you should try to avoid injecting workflow logic in the compiler/expression tree. Aim to have configuration simply be part of the workflow; that is what bonsai is good at. If you fight it, it will push back :P.

I usually use one of two patterns to get at what you are trying to do:

A sort of builder pattern:

or, if you can afford to push all your business logic to the device operator, simply have some sort of record-like definition of the devices, and use that as the property instead:

Not to say you cant complicate this further, but I would approach it on a case-by-case basis.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@NiekLouwerse
Comment options

@bruno-f-cruz
Comment options

@NiekLouwerse
Comment options

@bruno-f-cruz
Comment options

Answer selected by NiekLouwerse
@NiekLouwerse
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants