Skip to content

Latest commit

 

History

History
49 lines (28 loc) · 1.13 KB

index.rst

File metadata and controls

49 lines (28 loc) · 1.13 KB

Route

Route is important concept of the Databot. With it ,we can duplicate ,join,drop data. and route message to muliti target Node.

`def __init__(self, *args, route_type=object,route_func=None, share=True, join=False):`

args

list of Node or Route.

share

True|False. default value True if keep the orignal data for upflow.

route_type

list of Type for route upflow message to Branch.default value object

route_func

a function handle for route. logic bewteen route_type and route_func work together with and.

join

True|False ,if Return the final message to parent Pipe. default value False

Branch

most Basic route of the databot .it duplicate the parent from the parent pipe.

Return

Route Return is derived from Branch with parameter (share=False,join=True)

Filter

Route Filter is derived from Branch .it will drop out message ,if not match (route_type,route_func) sametime.

Fork

Basic route of databot. it create branch for every pass in (node or route).

Join

Join is derived from Fork with parameter(share=False,join=True) .