Click here to Skip to main content
12,701,314 members (37,384 online)
Click here to Skip to main content


23 bookmarked

Host and Workflow: Two Worlds to Communicate. Part V

, 4 Oct 2008 CPOL
Part V: Intercommunications with a Workflow instance using Correlation parameter
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Workflow.Runtime;
using System.Workflow.Activities;

namespace CommunicationManager
    public class MailCommunicationManager
        private static MailCommunication mailCom = null;
        private WorkflowRuntime runtime = null;

        public MailCommunicationManager(WorkflowRuntime wfRuntime)
            runtime = wfRuntime;
            if (mailCom == null)
                mailCom = new MailCommunication();
        public void RegisterCommunicationService()
            //Declare a ExternalDataExchangeService class
            ExternalDataExchangeService dataservice = new ExternalDataExchangeService();
            //Add to workflow runtime
            //Add to the ExternalDataService

        public void RaiseSendEmailToWorkflow(Guid instanceId, string typo, string email)
            //Raise the events
            mailCom.RaiseSendEmailToWorkflow(instanceId, typo, email);

        public MailCommunication MailCom
            get { return mailCom; }


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer (Senior) Avalon Development
United States United States
Jose A. Garcia Guirado, Electronic Engineer, graduated in Havana/Cuba 1982, MCTS, MCSD.NET, MCAD.NET, MCSE. Worked in the Institute for Cybernetics and Mathematics of Academy of Science of Cuba for 8 years; since 1995 working as free software architect, developer and adviser, first in Argentina and from 2003 to 2010, in Germany as External consultant in DWS Luxembourg, AIXTRON AG and Shell Deutschland GmbH and from 2010 to 2012 in in Mexico in Twenty Century Fox, and Mexico Stock Exchange (BMV). Actually as freelancer in Florida, USA.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170118.1 | Last Updated 4 Oct 2008
Article Copyright 2008 by freedeveloper
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid