thx for the reply cliff and trek ..
i am looking into your example trek .. thx...
in case i have a shell where i registered a teeMerge and teeSplit for 2 pipes and in and out pipe as such :
junction.registerPipe( PipeAwareModuleConstants.SHELL_TO_MODULE_PIPE,Junction.OUTPUT, new TeeSplit() );
junction.registerPipe( PipeAwareModuleConstants.MODULE_TO_SHELL_PIPE,Junction.INPUT,new TeeMerge() );
and i do the relative connection to modules and thats working well.
But i have a module[Z] which have its own teeMerge and teeSplit .. :
junction.registerPipe( PipeAwareModuleConstants.CORE_TO_MODULE_PIPE,Junction.OUTPUT,new TeeSplit() );
junction.registerPipe( PipeAwareModuleConstants.MODULE_TO_CORE_PIPE,Junction.INPUT,new TeeMerge() );
To connect this module[Z] to the shell i am overriding its ACCEPT_INPUT_PIPE and ACCEPT_OUTPUT_PIPE :
var inputPipe:IPipeFitting = note.getBody() as IPipeFitting;
var coreInFitting: TeeMerge = junction.retrievePipe( PipeAwareModuleConstants.MODULE_TO_CORE_PIPE ) as TeeMerge;
coreInFitting.connectInput( inputPipe );
var outputPipe:IPipeFitting = note.getBody() as IPipeFitting;
var coreOutFitting: TeeSplit = junction.retrievePipe( PipeAwareModuleConstants.CORE_TO_MODULE_PIPE ) as TeeSplit;
coreOutFitting.connect( outputPipe );
So far is the latter correct ? ...
when i am sending a message from : shell To module[Z] - message is received.
nevertheless when i send a message from : module[Z] To Shell - No message is received.
same if this module[Z] send a message to its children modules the children receives the message
( module[Z] To a module connected to module[Z] only - message received )
but when the children try to send to module[Z] no message received ...
No errors popup when i debug ..