473,327 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Callilng WorkFlows

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, objectdicParameters = new
Dictionary<string, object>();
dicParameters.Add("OidInvoice", aInvoice.Oid);
WorkflowRuntime workflowRuntime= new
WorkflowRuntime();
{
InvokeWorkflowActivity objInvk = new
InvokeWorkflowActivity();
ManualWorkflowSchedulerService scheduler =
workflowRuntime.GetService<ManualWorkflowScheduler Service>();
WorkflowInstance instance =
workflowRuntime.CreateWorkflow(typeof(WorkflowInvo ice),
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
Jan 2 '08 #1
1 1074
Hello in*******@gmail.com,

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, objectdicParameters = new
Dictionary<string, object>();
dicParameters.Add("OidInvoice", aInvoice.Oid);
WorkflowRuntime workflowRuntime= new
WorkflowRuntime();
{
InvokeWorkflowActivity objInvk = new
InvokeWorkflowActivity();
ManualWorkflowSchedulerService scheduler =
workflowRuntime.GetService<ManualWorkflowScheduler Service>();
WorkflowInstance instance =
workflowRuntime.CreateWorkflow(typeof(WorkflowInvo ice),
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

Jan 2 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: C | last post by:
Hi, Does Microsoft have a product that integrates with Visual Studio .NET that can be used to develop Web based Workflows for Business Process scenarios? Thanks.
0
by: bernadet | last post by:
Hi all, I am deploying a workflow to a sharepoint server. the workflow is implemented in visual studio 2005 and has 2 infopath forms. when adding the workflow to a document library and clicking...
3
by: Jonas Knaus | last post by:
Hi there I am very new to the Workflow Foundation and I am wondering if the WF has built-in scheduling components. I would like to have a workflow that starts every day at 2pm as an example. Is...
3
by: =?Utf-8?B?R3JhaGFt?= | last post by:
I've added 2 tracking services to the wf runtime; one is the standard SqlTrackingService: trackingService = new SqlTrackingService(<trackingConnectionString>); <workflow...
8
by: Dan Pavel | last post by:
Hi, I did not used Mutex before and I need now. I have an application that control some workflows on different machines. I use SNMP for that. The problem is that the thread used for starting an...
1
by: billlucarell | last post by:
I am a beginner with SQL Server and SharePoint. I am trying to migrate the database to other servers that may be running different platforms. I know that the other servers have SharePoint so they...
0
by: sept2008 | last post by:
I made two strong-named libraries, test.dll, versions 1.0.0.0, and 2.0.0.0, from the exact same source. I put them in the GAC area. I would like to know whether I can use both of them at the same...
5
by: vineetbindal | last post by:
How can i make a project in visual studio for workflows. Do i have to download sharepoint or something else?
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.