Environment Library API

Last post 03-04-2008, 7:53 PM by DavidL. 1 replies.
Sort Posts: Previous Next
  •  03-04-2008, 12:53 PM 22285

    Environment Library API

    Hi All,

    I've got a process developed and wondered if I could write some custom code (in a windows or console app) to re-create the Environment Settings in the Workspace on the new environment.  I can't find any class reference or guidance.  I've got this far ...

    // get the environment fields

    EnvironmentFieldCollection fields = envManager.CurrentEnvironment.EnvironmentFields;

    // add a field 

    fields.Add(...);

    // save the updates 

    bool success = envManager.CurrentEnvironment.SaveUpdate();

     

    I'm stuck around what types of fields to add and the classes they use.  I cant use EnvironmentField as its an abstract class.

    Any ideas?

    Thanks

    Dave

  •  03-04-2008, 7:53 PM 22296 in reply to 22285

    Re: Environment Library API

    How about using a deployment package to move your environment settings to another server?  Open a workflow project in Visual Studio, right-click on the project and choose "Create Deploy Package".  The deployment package will reside under your project's obj\debug\deployment folder.  Here's a link to a KB article:

    http://kb.k2workflow.com/articles/kb000188.aspx


    The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.
View as RSS news feed in XML