Comments (5)
@ColtonMcInroy Yes, documentation should be updated. I thank you. Thanks alot
from flow.
I was incorrect, it was due to a bug with another interconnected component down the chain that I created. Spent some more time looking into it today and figured it out.
from flow.
Just a note that the reason the other component ended up having a bug was because the message id does not seem to get set which is something I depended on assuming that it would always be set and always be unique (created during the newmessage() call) but that doesn't appear to be the case. I am seeing it undefined and even if I create a message then set msg.id = GUID() before sending the message the message id still appears undefined in when examined from the next component.
The component is used to work with BullMQ which holds onto the message while the data gets processed and then sends the message to output once the BullMQ job has completed. I was queuing the messages in an object like so...
messages[$.id] = $;
Because $.id
is actually undefined obviously this causes a problem. So currently what I am doing is checking if $.id
is undefined and setting it to GUID() when it is. This works fine for my case as all I need is a unique identifier and generating it myself is not a problem... but perhaps $.id
being undefined is an actual bug that should be addressed or perhaps it is intended for a different purpose that I cannot tell from the documentation.
With these details, I'll re-open the ticket and leave it up to you to determine if this is a bug... a lack of documentation explaining id reasoning for being undefined or something else.
from flow.
@ColtonMcInroy You should not expect to have msg.id or $.id
because it does not have Unique identifier
from flow.
@Will-create According to the documentation...
The property contains a unique identifier for this message.
flowmessage.id;
// returns String;
If this is no longer correct or some details in regards to this are missing could you update the documentation?
from flow.
Related Issues (20)
- [Security] Stored XSS in platform name HOT 2
- Cannot install on a read only volume HOT 2
- add a sliding panel on flow.html HOT 1
- In a code component how do you "send" data from inside a loop HOT 3
- Designer render not correct after reload HOT 12
- Performance Issue with Large Flows HOT 16
- Exporting as a Component Performance HOT 5
- Message data values HOT 1
- How to use flow library with Angular 16? HOT 1
- Feature: Annotations on canavs. HOT 1
- Code Component Suggestion HOT 2
- Code Multiplexer Component HOT 4
- Function Component HOT 4
- Ques : Is there a way, we can just publish only flow and not designer section, so flow become read only HOT 2
- npm ERR! Missing script: "start" HOT 4
- Docker Persistent storage example HOT 3
- Zooming bug
- can not localization HOT 1
- How would you use servicemode? HOT 3
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 flow.