Wei Tan wrote:
> I would like to resend this post in case anybody know the answer.
> Thanks,
> 
> Wei
> 
> Wei Tan wrote:
>> another question is that, the code which defines the activity does not 
>> know the exact name of the activity instance in the workflow 
>> definition file

I think that is deliberate.  As far as I know the enactment of the 
activity is not meant to know anything about its context.  It only knows 
  its configuration and the values on the input ports.

I think you would need to alter the configuration of the activity to 
pass in the information you want.  To be able to do that you probably 
need to alter part of the dispatch stack so that it altered the 
configuration of the activity before it was called.

It does not sound easy to do.

I think the easiest thing is for the API to be changed so that the 
Activity knows the Processor it is in.  I'm not sure what the 
consequences of that would be.  It would prevent an Activity being 
shared by several Processors, which is theoretically possible at the moment.

Alan



------------------------------------------------------------------------------
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

Reply via email to