I have an already existing application in Silverlight 4.0 with WCF services. Now what I want is a workflow to be integrated along with the above application. The workflow will be a simple approval workflow i.e sequential workflow. Can any one suggest some links or a solution?
-
Are you able to provide a more specific question? You should try to find a "how do I build a workflow" tutorial.– Kirk BroadhurstCommented Nov 23, 2011 at 6:01
-
I can build workflow but to integrate it with the existing project so that i don't need to change much in wcf service is my main aim.– Karan ShahCommented Nov 23, 2011 at 6:05
-
Karan, I don't think you question is answerable as it stands. You really need to update it with a more thorough description of what you are trying to achieve.– Dan McGrathCommented Nov 23, 2011 at 20:55
-
2What did you try, so far? Did you try any solution that you didn't find good for your case?– avpadernoCommented Nov 25, 2011 at 14:54
1 Answer
A workflow is simply applying a state to your application's data.
And the type of workflow you described (simple, sequential) is a really good fit with the async model that WCF requires.
When a user submits a request for a resource, they have to wait until their supervisor (and so on up the chain) approves the request. In the meantime, the user is free to go about other work or simply wait for the resource request to be approved. Polling or notification mechanisms of some sort are required for the user and the approvers. The user needs notification for when the resource is available, and the approvers need notification that they have work (grant | deny approval) to do.
One possibility for those mechanisms is to add a polling routine to your View-Models. Another option would be to look at push type notifications. However, there's nothing within Silverlight or WCF that makes creating a workflow inherently more difficult than with any other framework.