Hi,
provenance events contain _strings_ of the famous form
t2:list//testNamespace?test44/false/2
or
t2:ref//testNamespace?test37
(they are strings because they come across inside XML documents)
I need to use the ReferenceService to resolve them. However, all the
resolve*() methods in the ReferenceService expect an input T2Reference.
Is there a way generate a T2Reference from the string formats above?
Also, my workflow execution driver calls this method at the end of a
workflow execution, which is a method in a *ResultListener*
implementation, to show me the results:
public void resultTokenProduced(WorkflowDataToken dataToken,
String portname) {
if (dataToken.getIndex().length==0) {
T2Reference reference = dataToken.getData();
System.out.println("Output reference = " + reference);
...
here <reference> is printed as one of the strings above.
I also have a context that provides me with a reference service.
However, When I try to dereference it using:
ReferenceService referenceService = context.getReferenceService();
referenceService.renderIdentifier(reference, Object.class, context);
or
referenceService.renderIdentifier(reference, String.class, context);
or
referenceService.renderIdentifier(reference, byte[].class, context);
I get an exception:
net.sf.taverna.t2.reference.DaoException: Key
t2:list//testNamespace?test44/false/2 not found in store
and I am not sure why the data has not been registered during execution?
thanks for the help,
-Paolo
------------------------------------------------------------------------------
_______________________________________________
taverna-hackers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/taverna-hackers
Developers Guide: http://www.mygrid.org.uk/usermanual1.7/dev_guide.html
FAQ: http://www.mygrid.org.uk/wiki/Mygrid/TavernaFaq