Master Data Services - Defining Multiple Custom Workflows in Config

已答复 Master Data Services - Defining Multiple Custom Workflows in Config

  • 2012年8月15日 18:01
     
      コードあり

    In the documentation provided here: http://technet.microsoft.com/en-us/library/hh270298

    It states that "You can include multiple <setting> tags if you have created multiple workflow handlers for different kinds of workflows."

    It appears that whenever I do what the documentation states in my config it only loads the last entry.  

    Here's my configuration files contents:

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        <configSections>
            <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
                <section name="Microsoft.MasterDataServices.Workflow.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
            </sectionGroup>
        </configSections>
        <applicationSettings>
            <Microsoft.MasterDataServices.Workflow.Properties.Settings>
    			<setting name="ConnectionString" serializeAs="String">
    				<value>Server=.;Database=MasterDataServices;Integrated Security=True</value>
    			</setting>		  
    			<setting name="WorkflowTypeExtenders" serializeAs="String">          
    				<value>EMAILJOHN=MDSWorkflowTestLib.EmailJohn, TestMDS</value>			
    			</setting>	
    			<setting name="WorkflowTypeExtenders" serializeAs="String">          
    				<value>TEST=MDSWorkflowTestLib.WorkflowTester, TestMDS</value>			
    			</setting>		  
            </Microsoft.MasterDataServices.Workflow.Properties.Settings>
        </applicationSettings>
    </configuration>

    Am I misinterpreting something here?  Any help would be appreciated.

    Thanks, Ben

すべての返信

  • 2012年8月17日 13:53
     
     回答済み コードあり

    I figured it out.  Maybe that documentation is incorrect.  I found the following on a technet article

    "If you have created multiple workflow handlers for different kinds of workflows, they should be “;” separated in the <value> tag."

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        <configSections>
            <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
                <section name="Microsoft.MasterDataServices.Workflow.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
            </sectionGroup>
        </configSections>
        <applicationSettings>
            <Microsoft.MasterDataServices.Workflow.Properties.Settings>
    			<setting name="ConnectionString" serializeAs="String">
    				<value>Server=.;Database=MasterDataServices;Integrated Security=True</value>
    			</setting>		  
    			<setting name="WorkflowTypeExtenders" serializeAs="String">          
    				<value>TEST=MDSWorkflowTestLib.WorkflowTester, TestMDS;EMAILJOHN=MDSWorkflowTestLib.EmailJohn, TestMDS</value>			
    			</setting>		  
            </Microsoft.MasterDataServices.Workflow.Properties.Settings>
        </applicationSettings>
    </configuration>