private void GetValues_Invoked(object sender, ExternalDataEventArgs e)
        {
            WorkflowInitEventArgs eData = (e as WorkflowInitEventArgs);

            if (eData != null)
            {
                userName            = eData.UserName;
                userTE              = eData.UserTE;
                reclaimType         = eData.ReclaimType;
                reclaimObservations = eData.ReclaimObservations;
            }
        }
Beispiel #2
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     //Creamos una instancia del workflow
     Type type = typeof(IntegrationSample.wfIntegrationAndRouting);
     workflowInstance = workflowRuntime.CreateWorkflow(type);
     workflowInstance.Start();
     
     //Creamos un objeto para pasar los parametros necesarios en la
     //llamada al evento
     WorkflowInitEventArgs eventArgs = new WorkflowInitEventArgs(workflowInstance.InstanceId, txtUser.Text,
         txtTE.Text, cmbType.Text, txtObs.Text);
     
     //Llamada al evento que comunica la aplicacion con el workflow
     if(WorkflowInitialization != null) 
         WorkflowInitialization(null, eventArgs);
 }