PC Review


Reply
Thread Tools Rate Thread

Callilng WorkFlows

 
 
insreeraj@gmail.com
Guest
Posts: n/a
 
      2nd Jan 2008
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
 
Reply With Quote
 
 
 
 
Michael Nemtsev [MVP]
Guest
Posts: n/a
 
      2nd Jan 2008
Hello (E-Mail 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


> 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
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to resume Workflows in .NET 4.0 Tino Donderwinkel Microsoft Dot NET Framework 0 18th Aug 2009 08:05 PM
Workflows & Images Britabroad (Steve Banyard) Microsoft Outlook Form Programming 3 11th Mar 2008 02:44 PM
How to schedule workflows (e.g. start every day at 2pm) Jonas Knaus Microsoft C# .NET 3 22nd Feb 2007 02:26 PM
Imlementing Business Process Workflows in .NET =?Utf-8?B?Qw==?= Microsoft Dot NET 14 28th Sep 2006 06:01 AM
workflows in exchange server 2003 =?Utf-8?B?WWF0ZW5kcmEgS2hhbmRlbHdhbA==?= Microsoft Outlook Discussion 0 9th Mar 2005 03:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:14 PM.