Flow: Stack traces

component_method

  • Returns last trace in a list format.
    • 1st element: call type ( procedure, event, property, block ) or none if empty.
    • 2nd element: caller name i.e. procedure name, event name, or a block name. none if empty.

component_method

  • Returns n (last) filtered traces in a list of list format (inner list is in same format as that of Caller)
    • filters being a text block separated by a comma. Candidates are procedure, event, property, block and any for all types.

Example blocks:

screenshot-20250531-223052

Outputs the following

Label1: ["procedure", "procedure"]
Label2: [["procedure", "procedure"], ["procedure", "procedure2"]]


Flow.aia (95.7 KB)
Flow-1.0.aix (93.7 KB)


Do note that Caller returns last 3rd stack trace, because:

  • last nth trace is the Caller block itself
  • last 2nd trace is procedure2
  • last 3rd trace is the caller of procedure2 i.e. procedure

(CC @Taifun for extension listing)


Thank you
Kumaraswamy B G

2 Likes

Super-D-duper!!!

Thank-you @Kumaraswamy

In my opinion this is a much needed ai2 addition.

I look forward to putting it to use very soon. I have a procedure that I have detected is being called from the UI but is required to be called from the background! This should tell the tale.

Thanks for taking the time to put this together.

-Kind regards,
Randal

1 Like