noflo 0.5.13 spreadsheet example broken? -


i new noflo , looking @ examples in order explore it. spreadsheet example looked interesting couldn't make run. first, takes time , manual debugging identify missing components, not big deal , believe improved in future, error message

return process.component.outports[port].attach(socket);                                           ^ typeerror: undefined not function 

apparently, before isaddressable() undefined. checked so issue don't have noflo 0.4 dependency anywhere. spent time debug seemingly stuck @ it, decided post so.

the question is, correct steps run spreadsheet example?

for reproduction, here have done:

0) install following components

noflo-adapters noflo-core noflo-couchdb noflo-filesystem noflo-groups noflo-objects noflo-packets noflo-strings noflo-tika noflo-xml 

i) edit spreadsheet/parse.fbp, because first error

throw new error("no outport '" + port + "' defined in process " + proc           ^ error: no outport 'error' defined in process read (read() error -> in display()) 

apparently couchdb readdocument component not provide error outport. therefore replaced readdocument readfile.

18c18 < 'tika-app-0.9.jar' -> tika read(readdocument) --- > 'tika-app-0.9.jar' -> tika read(readfile) 

ii) @ point, received following:

if (process.component.outports[port].isaddressable()) {                                        ^ typeerror: undefined not function 

and improvised stunt checking if isaddressable defined @ location of code:

@@ -259,9 +261,11 @@      throw new error("no outport '" + port + "' defined in process " + process.id + " (" + (socket.getid()) + ")");      return;    } -      if (process.component.outports[port].isaddressable()) { +      if (process.component.outports[port].isaddressable && process.component.outports[port].isaddressable()) {      return process.component.outports[port].attach(socket, index);    }    return process.component.outports[port].attach(socket);  }; 

and either way fails. again, question what correct steps run spreadsheet example?

thanks in advance.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -