Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
dreamer2057
Level 7

Task - best practices in use

Hello!

I am getting lost with "Tasks" a little.

I tried to explain my question on the image.

I think that my solution is not the best, what do you think, how to get data from TaskNode (I do not mean funny examples of documentation, I'm about actual use)?

Sincerely, Sergey Shoshin, software developer.
0 Kudos
1 Reply
dreamer2057
Level 7

Re: Task - best practices in use

Engeneer's answer:

Define a field on your task node like .Result and whatever data you want to send back is a content node or an Associative Array.
You observe the .result field in the client of that task node.


So, best practice is on the picture. Result field and callback, without messageport.
Sincerely, Sergey Shoshin, software developer.
0 Kudos