Задайте вопросЗадайте вопрос
 

ОтвеченоVisual Studio Workflows: Modifications and Versioning

  • 3 июля 2009 г. 14:04FergusB Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     

    Hi,

    I have a Visual Studio workflow, deployed as a feature and associated with a content type.

    I can't "version" the workflow when I make changes to the code, because this effectively means creating a brand new workflow. This would need a new Workflow Status column, and my workflow acts on InfoPath forms which look up the workflow status from the current Workflow Status column.

    For small code changes, I've simply altered the VS project, rebuilt it and added the modified assembly to the GAC. This seems to work.

    I'm now going to embark on more large scale changes, with changes to the (InfoPath) task edit forms and (possibly) new states in the workflow.

    My theory is that so long as I wait until the currently running instances are complete, I can reinstall the workflow, reset the workflow to "Allow" from "No new instances" and begin using the new workflow. I've done some minimal testing on this and it seems to work. Because no existing workflows (with incompatible settings) are in progress, there shouldn't be any problems.

    Does anyone have any experience using this approach? I am trying to use this approach because I want to keep the workflow history for current instances (though my workflow does write a history as audit log entries).

    Regards,


    Fergus
    • ИзмененоFergusB 6 июля 2009 г. 16:24
    • ИзмененоFergusB 3 июля 2009 г. 15:40
    •  

Ответы

Все ответы