Im working with a workflow solution. In this workflow i have an Argument that keep specific data in order inside the workflow.
To host my solution I use WorkflowApplication instance that I call _workflowApplication.
If I take _workflowApplication.WorkflowDefinition as MyActivity I get the activity.
In this activity I have my argument that I need outside the workflow now but to get that argument I need to have an ActivityContext to send in.
Is it possible to get this context or do someone knows another good way to get out that kind of data from the workflow?
Edit1:
The WF is hosted in Azure and is using Persistance against an SQL Azure Server.
What you are looking for is something called Tracking.
You can read more about it here.
If you want to get your hands directly into the code I advise you to download these samples, more specifically in the WF_WCF_Samples\WF\Basic\Tracking folder there are a handful of examples. I guess some of them are exactly what you want to do.
It really is a pretty simple concept once you get how it works.