[CC-ed to the hackers list since others may be interested in this topic]
Hi Monika,
I guess Taverna will not serialize your type automatically? Maybe a
workaround is that to add a string field indicating that it is a
CQLBuider generated CQL? (I guess that is the only thing you need to
tell the cqlbuider to recover a cql from a string, right?)
Thanks,
Wei
Monika Machunik wrote:
> Hello Stian
>
> I have a question concerning how Taverna saves workflows, more
> particularly, how an activity is serialised to a file. I have created
> new activity for my CQLBuilder plugin, and accomodated my GUI inside.
> It is working well now, the cql query can be reopened and edited
> during creating the workflow, but it does not save its state
> completely while saving the workflow to a file and then reopening it.
>
> Storing the activity is done in the way that CQLConfigurationBean
> stores both String value of the activity (like in StringConstant
> activity) plus an instance of my own SavedQueryWindowState class,
> which should save the state of CQLBuilder window inside (and it does,
> but only until closing the workflow). Inside this class I have many
> fields, some of them are stadard java types, and some of them are type
> of my own classes. And these fields which are type of my own classes
> seem not to be saved to the file when saving the workflow. Where
> should I look for solution?
>
> Maybe the reason is that definitions of my own classes are in
> cql-activity module and are not visible from cql-activity-ui? But then
> why would SavedQueryWindowState be visible (some of its fields are
> recovered after reopening, though)..
>
> Or maybe this is caused by the fact that there are too many nested
> levels of various fields to be saved properly? Then maybe this is just
> a matter of overriding some particular superclass' method?
>
> I would appreciate any advice or suggestions from you :)
>
> Best regards
> Monika
--
Wei Tan, Ph.D.
Computation Institute
the University of Chicago|Argonne National Laboratory
http://www.mcs.anl.gov/~wtan
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
Developers Guide: http://www.mygrid.org.uk/tools/developer-information