Comments (6)
For reference this is what that looks like in the current expression engine https://github.com/rapidpro/expressions/blob/master/python/temba_expressions/evaluator.py#L307
from goflow.
Ya, that's one approach is to try to evaluate everything you can then return a new template. I haven't convinced myself that that is always right given that what a variable evaluates to is context dependent. (say based on what function it is being used with)
Need to think through some of the weirder edge cases.
from goflow.
So here's a bold thought - what if interacting with (e.g. messaging) other contacts (besides the contact) within a flow has always been a bit of a hack, and a better solution would be say that you can only trigger new flow sessions for other contacts?
Otherwise I can't think of any mechanism that avoids sending a template back to the container and saying you need to evaluate this... which really is the job of the flow engine.
If you want to message a group from a flow - then start that group in a new flow which sends that message.
from goflow.
That's not a bad idea, fits the everything is a flow model, though with that comes all the baggage of interrupting people in flows which we still (STILL) don't have a good story for. If we could solve that then I could see that being a reasonable strategy. Would have to glance at current usage to see how popular group messaging really is.
from goflow.
We just chatted about this and current preferred solution is to allow messages to be sent to other contacts, but @contact
is still the flow contact and we'd get rid of @step.contact
. This would make it behave similarly to the send_email.
from goflow.
No group messages, only flow starts.
from goflow.
Related Issues (20)
- Limit message attachment length to 2048
- Support formatting of date components as words HOT 4
- Similar implementation of SUM HOT 1
- @count() always return 11 HOT 2
- ContactQL query normalization adds superfulous parentheses
- Re-evaluate groups after ticket opening
- Only set `expires_on` for waiting runs HOT 2
- Expose campaign on `@trigger` HOT 1
- Don't include router fields in PO extraction for subflow, webhook nodes etc HOT 3
- Failing a session should exit all runs
- Switch to https://github.com/Shopify/gomail
- Allow querying datetime values with time accuracy
- Time limits on dial waits
- Record on `msg_created` events whether contact is messageable HOT 1
- Make call available to expressions
- Consider UNICODE confusables when text matching HOT 1
- Combine editor autocompletion files into single JSON file
- Doc generation shouldn't use fuzzy entries from localization files
- Docs shouldn't be in the repo? HOT 5
- Add flow_exited event?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goflow.