index > Windows Workflow Foundation > Nested workflows and parameters

Nested workflows and parameters

I have a workflow imbedded in a "invokeWorkflowActivity" in Workflow Foundation, VS2005.

My problem is that when I pass a variable as parameter to the nested workflow, I would like that workflow to manipulate the variable as pass it back to the calling (or parent) workflow. I passed an output variable to the inner workflow, it executed its operation on the output, but the return to the calling workflow shows that the variable is unchanged, obviously this is not a reference.

Do I use a "handleExternalEvent" in this case? How do I do this?

Thanks

Chris

Chris Jenkins
Chris, InvokeWorkflowActvity, creates and starts a workflow asynchronously. So therefore values passed to the child workflow cant be sent by reference. And yes we may need a mechanism involving "HandleExternalEvent" to get the paramerters back from the child workflow, take a look at this post for a proposed solution.


Khalid Aggag - MSFT
Khalid Aggag - MSFT
reply 2

You can use google to search for other answers

 

More Articles

• How do I: WF - WS ?
• transactions and ExternalDataExchangeService
• xoml activities
• Workflow Serialization
• OnExecuting....
• Using functions in objects passed to workflow
• Beta 2 and Windows Server 2003 R2
• Persistence Store Changes on Beta 2.2?
• In July CTP, using StateMachineWorkflowInstance to obtain Current...
• who knows how to get the reference to workflowruntime in the cust...
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• WorkFlow Instance Does not Initialize
• waitHandle.WaitOne();
• asp.net session object
• StateMachine: Having state without IEven
• Go Live?
• PersistenceService - Transaction Timeout
• Add Graphic User Interface to custom Act
• Problem with Lab6 - Exercise 2
• parameter of instanceid.......
• SqlPersistanceService: instanceOwnership
• considerations when designing a new cust
• Can't start VS 2005 after installing Win
• Presistance and workflow runtime
• Multiple service cant be attached with R
• Workflow & Business Logic and Data A

Hot Articles

• XAML Activiation Limitations
• How to duplicate the behavior of StateIn
• Query for pending Activities with access
• Hosting the workflow designer outside of
• Custom/Preconfigured StateActivity
• accessing child activity parameters on P
• Transactional persistence of multiple wo
• SQL Persistence Service sample working s
• sub flow, dynamic flow , and flow inject
• Installation Issue
• Multiple WebServiceOutputActivities
• Trouble with WF HOL Lab 3
• How do i record what i do????
• Restarting persistent worklow throws a m
• Download Windows Workflow Foundation Bet

Recommend Articles

• SQLPersistence not persisting Properties
• SqlWorkflowPersistenceService: Exception
• event cannot be delivered
• IfElse CodeCondition with ActivityBind
• Owner ID in SqlPersistence
• Editable Composites?
• Problem with a Custom WF in a Designer R
• Workflow terminating with invoked event
• Query for pending Activities with access
• Converting SqlServer related workflow se
• Dependency Properties
• Possible to make working WWF runtime on
• Application architecture
• How to iterate over the states in a WWF
• Workflow terminated by runtime - error d