Click here to Skip to main content
11,581,397 members (62,834 online)
Click here to Skip to main content
Add your own
alternative version

Host and Workflow: Two Worlds to Communicate IV

, 3 Oct 2008 CPOL 18.5K 347 15
Part IV: Organisation of the communication classes: Communication manager, wca.exe utility and Wwca.exe windows front-end for wca.exe
host_wf_comm_P4_1.zip
UsingWCAInWF
CommunicationManager
bin
CommunicationManager.csproj.user
obj
Properties
UsingWCAInWF
UsingWCAInWF.suo
bin
obj
Properties
Settings.settings
UsingWCAInWF.csproj.user
WFValveControl.layout
ValveControl
bin
Debug
CommunicationManager.dll
CommunicationManager.pdb
UsingWCAInWF.dll
UsingWCAInWF.pdb
ValveControl.exe
ValveControl.pdb
ValveControl.vshost.exe
ValveControl.vshost.exe.manifest
obj
Properties
Settings.settings
host_wf_comm_P4_2.zip
MultiValve
CommunicationManager
bin
CommunicationManager.csproj.user
obj
Properties
MultiValve
MultiValve.suo
MultiValveControl
bin
obj
Properties
Settings.settings
bin
MultiValve.csproj.user
obj
Properties
Settings.settings
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Reflection;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace UsingWCAInWF
{
    partial class WFValveControl
    {
        #region Designer generated code
        
        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCode]
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
            this.statusValve3 = new jagg.customactivities.StatusValve();
            this.codeActivity3 = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity4 = new System.Workflow.Activities.SetStateActivity();
            this.closeValve1 = new jagg.customactivities.CloseValve();
            this.statusValve1 = new jagg.customactivities.StatusValve();
            this.codeActivity1 = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity3 = new System.Workflow.Activities.SetStateActivity();
            this.exit1 = new jagg.customactivities.Exit();
            this.setStateActivity2 = new System.Workflow.Activities.SetStateActivity();
            this.openValve1 = new jagg.customactivities.OpenValve();
            this.setStateActivity1 = new System.Workflow.Activities.SetStateActivity();
            this.codeInitVariables = new System.Workflow.Activities.CodeActivity();
            this.stateInitializationActivity3 = new System.Workflow.Activities.StateInitializationActivity();
            this.eventDrivenActivity1 = new System.Workflow.Activities.EventDrivenActivity();
            this.stateInitializationActivity2 = new System.Workflow.Activities.StateInitializationActivity();
            this.eventDrivenExitControl = new System.Workflow.Activities.EventDrivenActivity();
            this.eventDrivenOpenValve = new System.Workflow.Activities.EventDrivenActivity();
            this.stateInitializationActivity1 = new System.Workflow.Activities.StateInitializationActivity();
            this.stateExit = new System.Workflow.Activities.StateActivity();
            this.stateOpen = new System.Workflow.Activities.StateActivity();
            this.stateClose = new System.Workflow.Activities.StateActivity();
            this.StateInit = new System.Workflow.Activities.StateActivity();
            // 
            // statusValve3
            // 
            this.statusValve3.Name = "statusValve3";
            activitybind1.Name = "WFValveControl";
            activitybind1.Path = "status";
            activitybind2.Name = "WFValveControl";
            activitybind2.Path = "_wfGuid1";
            this.statusValve3.SetBinding(jagg.customactivities.StatusValve.statusProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.statusValve3.SetBinding(jagg.customactivities.StatusValve.wfGuidProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            // 
            // codeActivity3
            // 
            this.codeActivity3.Name = "codeActivity3";
            this.codeActivity3.ExecuteCode += new System.EventHandler(this.InitializeOpenState);
            // 
            // setStateActivity4
            // 
            this.setStateActivity4.Name = "setStateActivity4";
            this.setStateActivity4.TargetStateName = "stateClose";
            // 
            // closeValve1
            // 
            this.closeValve1.Name = "closeValve1";
            this.closeValve1.Sender = null;
            // 
            // statusValve1
            // 
            this.statusValve1.Name = "statusValve1";
            activitybind3.Name = "WFValveControl";
            activitybind3.Path = "status";
            activitybind4.Name = "WFValveControl";
            activitybind4.Path = "_wfGuid1";
            this.statusValve1.SetBinding(jagg.customactivities.StatusValve.statusProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            this.statusValve1.SetBinding(jagg.customactivities.StatusValve.wfGuidProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            // 
            // codeActivity1
            // 
            this.codeActivity1.Name = "codeActivity1";
            this.codeActivity1.ExecuteCode += new System.EventHandler(this.InitialiseCloseState);
            // 
            // setStateActivity3
            // 
            this.setStateActivity3.Name = "setStateActivity3";
            this.setStateActivity3.TargetStateName = "stateExit";
            // 
            // exit1
            // 
            this.exit1.Name = "exit1";
            this.exit1.Sender = null;
            // 
            // setStateActivity2
            // 
            this.setStateActivity2.Name = "setStateActivity2";
            this.setStateActivity2.TargetStateName = "stateOpen";
            // 
            // openValve1
            // 
            this.openValve1.Name = "openValve1";
            this.openValve1.Sender = null;
            // 
            // setStateActivity1
            // 
            this.setStateActivity1.Name = "setStateActivity1";
            this.setStateActivity1.TargetStateName = "stateClose";
            // 
            // codeInitVariables
            // 
            this.codeInitVariables.Name = "codeInitVariables";
            this.codeInitVariables.ExecuteCode += new System.EventHandler(this.InitVariables);
            // 
            // stateInitializationActivity3
            // 
            this.stateInitializationActivity3.Activities.Add(this.codeActivity3);
            this.stateInitializationActivity3.Activities.Add(this.statusValve3);
            this.stateInitializationActivity3.Name = "stateInitializationActivity3";
            // 
            // eventDrivenActivity1
            // 
            this.eventDrivenActivity1.Activities.Add(this.closeValve1);
            this.eventDrivenActivity1.Activities.Add(this.setStateActivity4);
            this.eventDrivenActivity1.Name = "eventDrivenActivity1";
            // 
            // stateInitializationActivity2
            // 
            this.stateInitializationActivity2.Activities.Add(this.codeActivity1);
            this.stateInitializationActivity2.Activities.Add(this.statusValve1);
            this.stateInitializationActivity2.Name = "stateInitializationActivity2";
            // 
            // eventDrivenExitControl
            // 
            this.eventDrivenExitControl.Activities.Add(this.exit1);
            this.eventDrivenExitControl.Activities.Add(this.setStateActivity3);
            this.eventDrivenExitControl.Name = "eventDrivenExitControl";
            // 
            // eventDrivenOpenValve
            // 
            this.eventDrivenOpenValve.Activities.Add(this.openValve1);
            this.eventDrivenOpenValve.Activities.Add(this.setStateActivity2);
            this.eventDrivenOpenValve.Name = "eventDrivenOpenValve";
            // 
            // stateInitializationActivity1
            // 
            this.stateInitializationActivity1.Activities.Add(this.codeInitVariables);
            this.stateInitializationActivity1.Activities.Add(this.setStateActivity1);
            this.stateInitializationActivity1.Name = "stateInitializationActivity1";
            // 
            // stateExit
            // 
            this.stateExit.Name = "stateExit";
            // 
            // stateOpen
            // 
            this.stateOpen.Activities.Add(this.eventDrivenActivity1);
            this.stateOpen.Activities.Add(this.stateInitializationActivity3);
            this.stateOpen.Name = "stateOpen";
            // 
            // stateClose
            // 
            this.stateClose.Activities.Add(this.eventDrivenOpenValve);
            this.stateClose.Activities.Add(this.eventDrivenExitControl);
            this.stateClose.Activities.Add(this.stateInitializationActivity2);
            this.stateClose.Name = "stateClose";
            // 
            // StateInit
            // 
            this.StateInit.Activities.Add(this.stateInitializationActivity1);
            this.StateInit.Name = "StateInit";
            // 
            // WFValveControl
            // 
            this.Activities.Add(this.StateInit);
            this.Activities.Add(this.stateClose);
            this.Activities.Add(this.stateOpen);
            this.Activities.Add(this.stateExit);
            this.CompletedStateName = "stateExit";
            this.DynamicUpdateCondition = null;
            this.InitialStateName = "StateInit";
            this.Name = "WFValveControl";
            this.CanModifyActivities = false;

        }

        #endregion

        private CodeActivity codeActivity3;
        private CodeActivity codeActivity1;
        private StateActivity stateClose;
        private StateActivity stateExit;
        private StateActivity stateOpen;
        private SetStateActivity setStateActivity1;
        private StateInitializationActivity stateInitializationActivity1;
        private jagg.customactivities.Exit exit1;
        private SetStateActivity setStateActivity2;
        private jagg.customactivities.OpenValve openValve1;
        private EventDrivenActivity eventDrivenExitControl;
        private EventDrivenActivity eventDrivenOpenValve;
        private SetStateActivity setStateActivity4;
        private jagg.customactivities.CloseValve closeValve1;
        private EventDrivenActivity eventDrivenActivity1;
        private jagg.customactivities.StatusValve statusValve3;
        private jagg.customactivities.StatusValve statusValve1;
        private StateInitializationActivity stateInitializationActivity3;
        private StateInitializationActivity stateInitializationActivity2;
        private SetStateActivity setStateActivity3;
        private CodeActivity codeInitVariables;
        private StateActivity StateInit;

























































































    }
}

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.

License

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

Share

About the Author

freedeveloper
Software Developer (Senior) G-SoftSolutions
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 advisor, first in Argentina and from 2003 to 2010, in Germany as External consultant in DWS Luxemburg, 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 freelance in Florida, USA.

You may also be interested in...

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