How to get to process string table from client API?

  • 27 February 2008
  • 3 replies
  • 0 views

Badge +4

I am trying to access the string table for a particular process I have deployed in my (dev/staging/prod) environment. I need to pull a particular value out of there for client purposes. How do I get to it from here?


 Thanks


3 replies

Badge +8
Just want to clarify, you want to access StringTable data from something like an ASP.net application?
Badge +4
Yes, that's exactly what I'm doing.
Badge +11

Here is an example.  I think the identity this runs under must have admin rights (but I didn't verify that).  


 


      SourceCode.Workflow.Management.WorkflowManagementServer server = new SourceCode.Workflow.Management.WorkflowManagementServer("blackpearl", 5555);
        server.Open();


        SourceCode.Workflow.Management.StringTable st = server.GetStringTable("Production");


        foreach (SourceCode.Workflow.Management.StringTableEntry ste in st)
            Response.Write(ste.Name + " " + ste.Value);


        server.Connection.Close();

Reply