I was debugging data-flow in a workflow and found adding an HTML tool-tip to port nodes to be useful to show connections (and when the connected object is a port, the port’s data in their roles) to be useful.
In the screenshot above, the tooltip shows 3 connections:
- The setup (attribute resource) is a direct connection to an attribute resource programmatically added by a custom EmplaceWorklet operation. The resource is in the port’s default role type (declared to be problem setup for this port).
- The remaining two connections are from ports named out but with different parent tasks (Overset Mesh and Device Geometry). Because these connections are ports, each contains nested lists of roles (problem setup and device geometry) with objects in those roles beneath them.
@Bob_Obara mentioned that it would also be nice to see the types of port-data accepted (though that may not be useful for some workflows where any type of data is allowed).
Are there other things of interest we should be adding to tooltips in the task editor? It is relatively simple. It might be nice for agents to provide some information about why they are in their current state, for instance.