Renders an interactive Cytoscape.js workflow diagram with animated edge particles that reflect real-time or simulated branch traffic.
WORKFLOWANIMATION — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
Param1 — workflow name; used to load the workflow graph from def_workflow / def_workflows.Param2 — simulation GUID (only used when simulation: true in options).Returns a full Cytoscape.js diagram with all node types styled, plus animated particle effects on edges whose load values are periodically refreshed via RPC.
RpcGetanimationedges(data)Queries event_workflow_{param1}_transit to count recent branch transitions within time_interval seconds and returns edge load values scaled logarithmically to 1–100.
RpcGetsimulationedges(data)Queries event_workflow_hcscore_sim filtered by simulguid (param2) to count transitions per edge pair, returning the same logarithmic load dict format.
get_animated_edges_js()Returns the JavaScript block that implements particle animation along Cytoscape edges, polling RpcGetanimationedges or RpcGetsimulationedges at the configured interval and updating particle counts per edge.
Options read from self._Options JSON:
| Key | Default | Effect |
|---|---|---|
rpc_refresh |
10 |
How often (seconds) to poll for updated edge loads. |
time_interval |
600 |
Look-back window (seconds) for RpcGetanimationedges. |
max_particles |
10 |
Maximum particles per edge at 100% load. |
simulation |
false |
When true, uses RpcGetsimulationedges instead of live data. |
ObjReportEditTree; uses its get_element_json, get_edit_frame, get_cytoscape_js, and node_style* helpers.