Click here to Skip to main content
15,902,492 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: GridViewColumn DataTemplate Pin
User 27100918-Feb-08 10:38
User 27100918-Feb-08 10:38 
GeneralRe: GridViewColumn DataTemplate Pin
teejayem18-Feb-08 10:48
teejayem18-Feb-08 10:48 
AnswerRe: GridViewColumn DataTemplate Pin
User 27100918-Feb-08 10:55
User 27100918-Feb-08 10:55 
GeneralWPF RichTextBox Formatted Data Sent to Access Database Pin
Thomas Stockwell13-Feb-08 8:14
professionalThomas Stockwell13-Feb-08 8:14 
GeneralRe: WPF RichTextBox Formatted Data Sent to Access Database Pin
User 27100913-Feb-08 8:30
User 27100913-Feb-08 8:30 
QuestionMinimum Requirements for Silverlight? Pin
fmlove13-Feb-08 2:01
fmlove13-Feb-08 2:01 
AnswerRe: Minimum Requirements for Silverlight? [modified] Pin
Michael Sync13-Feb-08 16:31
Michael Sync13-Feb-08 16:31 
GeneralAccess to live data from an StateMachineWorkflowActivity Pin
CKnig13-Feb-08 1:43
CKnig13-Feb-08 1:43 
Hi,

I'm trying to learn the WF architecture.

What I want to know is: Is there a way to access data stored in the workflow class?
I couldn't find a way to access this - even if I use the StateMachineWorkflowInstance-class
to access the CurrentState it's parents won't reflect the live-data (and of course if the workflow was persisted you cannot access the CurrentState at all).

So how can I get usefull information about the current state?

As an example let's say the worklfow handles a list with order and I want to get a list of all existing order ... the only hack I found was by implementing a event/method in a local service, invoking the event - handle the event and sending the information back via the CallExternalMethod.
So I handle the event using a ManualResetEvent to wait for the reply .... useless to say that this is .... not the way I want to do this in the future for simple data-requests.

And you can't just save the information in an external collection because the persistence-service won't see this stroage (only the data in the workflow).

Yes you can use a database to store the info and access the db - but I don't think this is good design.

Can somebody help?
GeneralRe: Access to live data from an StateMachineWorkflowActivity Pin
CKnig18-Feb-08 0:58
CKnig18-Feb-08 0:58 
GeneralRe: Access to live data from an StateMachineWorkflowActivity Pin
Kevin McFarlane18-Feb-08 11:29
Kevin McFarlane18-Feb-08 11:29 
GeneralRe: Access to live data from an StateMachineWorkflowActivity Pin
CKnig18-Feb-08 18:20
CKnig18-Feb-08 18:20 
GeneralRe: Access to live data from an StateMachineWorkflowActivity Pin
Kevin McFarlane18-Feb-08 21:53
Kevin McFarlane18-Feb-08 21:53 
GeneralWindows Pin
IWannaTalk12-Feb-08 6:30
IWannaTalk12-Feb-08 6:30 
GeneralRe: Windows Pin
User 27100912-Feb-08 7:44
User 27100912-Feb-08 7:44 
GeneralRe: Windows Pin
IWannaTalk12-Feb-08 23:45
IWannaTalk12-Feb-08 23:45 
GeneralRe: Windows Pin
User 27100912-Feb-08 23:47
User 27100912-Feb-08 23:47 
GeneralRe: Windows Pin
IWannaTalk12-Feb-08 23:55
IWannaTalk12-Feb-08 23:55 
GeneralRe: Windows Pin
User 27100913-Feb-08 0:16
User 27100913-Feb-08 0:16 
GeneralRe: Windows Pin
IWannaTalk13-Feb-08 0:17
IWannaTalk13-Feb-08 0:17 
QuestionAnimated button in WPF Pin
Pawel Gielmuda12-Feb-08 2:03
Pawel Gielmuda12-Feb-08 2:03 
GeneralRe: Animated button in WPF Pin
Pawel Gielmuda12-Feb-08 2:03
Pawel Gielmuda12-Feb-08 2:03 
GeneralRe: Animated button in WPF Pin
newc112-Feb-08 3:55
newc112-Feb-08 3:55 
GeneralRe: Animated button in WPF Pin
Pawel Gielmuda12-Feb-08 4:12
Pawel Gielmuda12-Feb-08 4:12 
GeneralTree view Pin
IWannaTalk11-Feb-08 21:23
IWannaTalk11-Feb-08 21:23 
GeneralRe: Tree view Pin
User 27100912-Feb-08 2:31
User 27100912-Feb-08 2:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.