Blog Stats
  • Posts - 15
  • Articles - 0
  • Comments - 2
  • Trackbacks - 6

 

Tuesday, September 13, 2005

Calling orchestrations programmatically

Sometimes we need to decide runtime which orchestrations to call or just want to avoid using that extra shape of call orchestration

We can use xlang in expression shape e.g.

To call Distribution.WorkFlow_Orchestration xlang is

call Distribution.WorkFlow_Orchestration (DistributionContext, out DistributionContext);

To start Distribution.WorkFlow_Orchestration xlang is

exec Distribution.WorkFlow_Orchestration (DistributionContext, out DistributionContext);

where DistributionContext is name of input message and out DistributionContext is out message; in this case they are same

 

Vishy

 

 

Copyright © Vishal H