Callilng WorkFlows

I

insreeraj

Hi All,

i have console application which will be running , Here i will be
adding 3 services for 3 workflows, now my asp application will be
calling 1 work flow, in particular event i have to call the 2nd work
flow., i have the code in the event as below,

Invoice aInvoice = (Invoice)xpcInv[0];
Dictionary<string, object> dicParameters = new
Dictionary<string, object>();
dicParameters.Add("OidInvoice", aInvoice.Oid);
WorkflowRuntime workflowRuntime= new
WorkflowRuntime();
{
InvokeWorkflowActivity objInvk = new
InvokeWorkflowActivity();
ManualWorkflowSchedulerService scheduler =
workflowRuntime.GetService<ManualWorkflowSchedulerService>();
WorkflowInstance instance =
workflowRuntime.CreateWorkflow(typeof(WorkflowInvoice),
dicParameters);
if (scheduler != null)
{

scheduler.RunWorkflow(instance.InstanceId);
}
instance.Start();

But this is just going to the second work flow, but its not firing the
events inside.
Can anybody guide me to solve this prblem

Thnx&Rgds,

Sreeraj
 
M

Michael Nemtsev [MVP]

Hello (e-mail address removed),

Which event do u have and as I understand that event (if its only HandleEvent
activity) must be arised outside to be run

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top