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

Workflow Patterns

Hello,
In a workflow application where in the workflow is customizable, i
would like to defer the instantiation of the class till the workflow is
complete. e.g.

class ClassA {
object1 objA;
object2 objB;
object3 obj3;
ClassA( object1 v1, object2 v2, object3 v3)
{
object1 = v1;
...
object3 = v3;
}

}

Any of the above three member variables could be instantiated first and
hence there are nine combinations. The three member variables are being
instantiated in three diferent forms in a wizard like app.

Since I wanted to keep the model seperate from the view, how could I
defer the instantiation of the ClassA but still keep the controller
generic enough so that the order in which the member varibles are
collected is not sequenced. I read that "Collecting Parameter" pattern
supports something similar to this, however I am not too sure since I
couldn't find the right examples. BTW: I am writing this in C# and so
any other alternatives are welcome as well.

Thanks
sd

Nov 17 '05 #1
4 3913
When you put up "workflow patterns, " I got my hopes up you'd be talking
about the workflow patterns described here:
http://is.tm.tue.nl/research/patterns/

As for your problem, you have data that collects over time... so have two
classes. One that simply holds the objects that you are instantiating, and
the other that will be your 'A' object below:

class myParameters
{
public myObjectA A;
public myObjectB B;
public myObjectC C;
}

class myNewObject
{
private myObjectA _A;
private myObjectB _B;
private myObjectC _C;
public myNewObject(myParameters parms)
{
_A = parms.A;
_B = parms.B;
_C = parms.C;
}
// ..... other useful stuff
}

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"danths" <da****@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Hello,
In a workflow application where in the workflow is customizable, i
would like to defer the instantiation of the class till the workflow is
complete. e.g.

class ClassA {
object1 objA;
object2 objB;
object3 obj3;
ClassA( object1 v1, object2 v2, object3 v3)
{
object1 = v1;
...
object3 = v3;
}

}

Any of the above three member variables could be instantiated first and
hence there are nine combinations. The three member variables are being
instantiated in three diferent forms in a wizard like app.

Since I wanted to keep the model seperate from the view, how could I
defer the instantiation of the ClassA but still keep the controller
generic enough so that the order in which the member varibles are
collected is not sequenced. I read that "Collecting Parameter" pattern
supports something similar to this, however I am not too sure since I
couldn't find the right examples. BTW: I am writing this in C# and so
any other alternatives are welcome as well.

Thanks
sd

Nov 17 '05 #2
Thx! for the reply. I was looking at the same link for the past two
days. The solution that you have recommended warrants that I repeat the
code. I have 23 member variables right now, should I be repeating all
the 23 variables in two different classes.

Thanks
danths

Nov 17 '05 #3
"danths" <da****@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Thx! for the reply. I was looking at the same link for the past two
days.
I admit to a little envy that the YAWL folks chose to implement in Java. If
they had picked .Net, I would have really loved to have used it.
The solution that you have recommended warrants that I repeat the
code.
I cannot imagine why.
I have 23 member variables right now, should I be repeating all
the 23 variables in two different classes.


Please explain.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
Nov 17 '05 #4
Wouldn't I have to code all the member variables which are needed in
myNewObject also at myParameters. But your recommendation sparked a
slight modified version of the design i.e. why not make myParameters
also a member variable of myNewObject , that way I would not have to
create teh same member variables in two different classes.

Thanks
sd

Nov 17 '05 #5

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

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: Equis Uno | last post by:
Hi there, I downloaded OWB_9.2.0.2.8_linux.tar.gz from here: http://otn.oracle.com/software/products/warehouse/index.html In the above download I found OWB installation documentation. In...
0
by: Bevertec | last post by:
May 26 2004 Our client is a major bank in Jamaica and they have a contract requirement for a professional with the following skills. This is a 6 months contract. It would be 3 weeks/month in...
0
by: Yatendra Khandelwal | last post by:
hi, I am a newbie to this (exchange server and workflows) and I am trying to create a test workflow app using workflow designer (office developer) and exchange 2003. I have created a workflow...
3
by: ABC | last post by:
My client request a workflow solution. They want the solution provide as: 1. Has a workflow diagram interface presents their roles, work and tasks. 2. Support .NET technologies for developers to...
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...
2
by: sklett | last post by:
I'm not ready to get started with the new generation of MS tools (WPF, WWF, etc) although they do seem to do just what I need ;0) I'm looking for an existing framework (or white paper,...
0
by: RoninZA | last post by:
Hi all, My problem is this... I need to somehow communicate the completion of a workflow back to the calling application. The scenario is as follows: I have a "generic" workflow engine,...
11
by: Grzegorz Staniak | last post by:
Hi, In a couple of weeks I'm starting a medium-size project (using a web framework) involving a workflow implementation. Are you aware of any open source workflow engines/libraries that I could...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.