Comments (4)
So another approach would be the JSONSchema approach of using $ref
as a marker that the resource should be loaded from a URL:
"assets": [
{ "$ref": "https://rpd.io/as/flows/7123..." },
{ "type": "flow", "uuid": "7114...", "name": "..."},
]
Not sure this is better, just different..
from goflow.
Downside of this is you don't know UUID or type or anything ahead of time.
from goflow.
Something else to consider - maybe runs (and contacts?) can be assets sometimes. For example in the trigger flow action case - the caller will need to start a flow with a parent run which belongs to a different contact. It may make sense to model this as an asset because:
- It's immutable for the new flow session
- The engine shouldn't be sending it back in the session and the caller shouldn't be trying to sync it.
The way it might works is:
- The trigger flow action will return a
trigger_flow
(?) event which contains the UUID of the parent run. - Caller will grab the output of that run (either immediately from the session output or RapidPro could do it later by loading
FlowRun.output
) - Caller starts a new flow session with:
- That parent as an asset
- A start_flow event which specifies the parent by UUID
from goflow.
Ya, I think that sounds right to me, that if a run is not part of a session then it is an asset. So I guess it is that runs belong to the session where they were started, otherwise are assets.
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.