473,382 Members | 1,717 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,382 software developers and data experts.

State Machine Workflow

3
Hi all,

I have an application that hosts a state machine workflow runtime.

Once the workflow starts running, I want it to send a message to the hosting application each time it finishes a task (but still doesn't complete running).
The application will catch that message, just as it catches the events defined on the workflow runtime (as "WorkflowCompleted" or "WorkflowTerminated"), and will let the WF continue running.

Is there a way to do that?

Thanks.
Nov 25 '08 #1
4 1857
Plater
7,872 Expert 4TB
You could create a custom event and fire it when you finish a task.
Then the application can attach a handler to it and listen for that event
Nov 25 '08 #2
oritne
3
I thought about this solution too, but I had some problems with it:

In order to add a new event to the WorkflowRuntime class I had to inherit it. Then I added a new event handler in the application. The problem occured when I wanted to raise the event on the workflow itself. I didn't know how to get the current WorkflowRuntime instance. I tried to send it as a parameter from the application, but had some problems with it, so I preferred to ask if anyone knows about an easier way to do that.

If there isn't any built-in solution, I'll continue to try this one.

Thanks!

Orit.
Nov 25 '08 #3
Plater
7,872 Expert 4TB
I am unfamiliar with these object? What is the full name of the object(s) you are using?
i.e. if your are using a socket, System.Net.Sockets.Socket
Nov 25 '08 #4
oritne
3
System.Workflow.Runtime.WorkflowRuntime.
Nov 26 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Paolo Losi | last post by:
Hi all, I'm pretty new to the python language so please excuse me if this is FAQ... I'm very glad to be part of the list! :-) I'm looking into a way to implement a generic workflow framework...
1
by: shank | last post by:
I've got 2 problems. Problem #1: I have 2 buttons on a form. If user clicks on ButtonA, the form gets submitted to PageA. If user clicks on ButtonB, the form gets submitted to PageB. One forum...
4
by: Shawnk | last post by:
This post is intended to verify that true value semantics DO NOT EXIST for the Enum class (relative to boolean operations). If this is true then (thus and therefore) you can not design state...
3
by: Pete | last post by:
Please can anyone recommend products that will take a state machine diagram and generate code for C#? Its for a comms protocol. thanks in advance Pete.
4
by: nyhetsgrupper | last post by:
I have a C++ application which I am porting to C#. This application is controlling a transport belt. This transport belt is moving bins foreward and backward. I have a state machine controlling...
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...
1
by: =?Utf-8?B?Um9iZXJ0IFNsYW5leQ==?= | last post by:
Is there a way to annotate the state transition in the designer for VS2005/8. I have tried setting the description property for both the EventDriveActivity and SetStateActivity shapes but nothing...
3
by: =?Utf-8?B?Um9iZXJ0IFNsYW5leQ==?= | last post by:
I have a state transition trigger by a Delay Activity. If I include the default SQL persistence service, this state transition is fired twice. Any suggestions ?
1
by: =?Utf-8?B?bGludXgyazg=?= | last post by:
Hi, I'm testing Web Approval Starter Kit with Visual Studio 2005 over Windows XP SP2, .NET Framework 3.0 & 3.5 versions installed. When try to complete an activity, the following error...
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.