An Office Client Workflow can also be designed and ran in Access 2007 and above. As with Word and Excel, an Access add-in implements IClientActivity.Run()

    public void Run(string workflowPath)
      AutoResetEvent syncEvent = new AutoResetEvent(false);

      var inputs = new Dictionary<String, Object>
          {"ArgTitle",  argTitle},
          {"ArgBody",  argBody},
          {"Handle", System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle}

      Activity wf = (Activity)ActivityXamlServices.Load(workflowPath);

      WorkflowApplication wfApp = new WorkflowApplication(wf, inputs);

      Tracking sampleParticipant = new Tracking 


Last edited Oct 14, 2011 at 3:56 AM by dvana, version 3


No comments yet.