Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Argument of ValueProvider is only Replaced if I put it on the WizardForm
 

Argument of ValueProvider is only Replaced if I put it on the WizardForm

Is there anybody who has experience with this. There is another thread (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2961738&SiteID=1) that is about the same issue.

This is myrecipe :


<?xml version="1.0" encoding="utf-8" ?>
<Recipe Name="NewItemMap" Recurrent="true" xmlns="http://schemas.microsoft.com/pag/gax-core" xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="Common\CommonTypeAliases.xml"
xpointer="xmlns(gax=http://schemas.microsoft.com/pag/gax-core) xpointer(/gax:Types)" />
<Caption>Create BizTalk map</Caption>
<Description>Create BizTalk map</Description>
<HostData>
<Icon Guid="FAE04EC1-301F-11d3-BF4B-00C04F79EFBC" ID="4542" />
<CommandBar Menu="LGBProject" />
</HostData>
<Arguments>
<Argument Name="CurrentItem" Type="EnvDTE.ProjectItem, EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<ValueProvider Type="CurrentItemProvider" />
</Argument>
<Argument Name="FinalMapName">
<ValueProvider Type="Evaluator" Expression="$(SourceSchema)_To_$(DestinationSchema).btm">
<MonitorArgument Name="SourceSchema" />
<MonitorArgument Name="DestinationSchema" />
</ValueProvider>
</Argument>
<Argument Name="SourceRootName">
<ValueProvider Type="Logica.Guidance.BizTalk.ValueProviders.MapSourceValueProvider, Logica.Guidance.BizTalk" >
<MonitorArgument Name="SourceSchema" />
</ValueProvider>
</Argument>
<Argument Name="DestinationRootName">
<ValueProvider Type="Logica.Guidance.BizTalk.ValueProviders.MapDestinationValueProvider, Logica.Guidance.BizTalk" >
<MonitorArgument Name="DestinationSchema" />
</ValueProvider>
</Argument>
<Argument Name="BizTalkNameSpace">
<ValueProvider Type="GlobalValueProvider" Key="BizTalkNameSpace"/>
</Argument>
<Argument Name="SourceSchema">
<Converter Type="Logica.Guidance.BizTalk.Converters.SchemaConverter, Logica.Guidance.BizTalk" />
</Argument>
<Argument Name="DestinationSchema">
<Converter Type="Logica.Guidance.BizTalk.Converters.SchemaConverter, Logica.Guidance.BizTalk" />
</Argument>
</Arguments>
<GatheringServiceData>
<Wizard xmlns="http://schemas.microsoft.com/pag/gax-wizards" SchemaVersion="1.0">
<Pages>
<Page>
<Title>Map properties</Title>
<Fields>
<Field Label="Select Source Schema" ValueName="SourceSchema" />
<Field Label="Select Destination Schema" ValueName="DestinationSchema" />

</Fields>
</Page>
<Page>
<Title>Resulting Rootnode properties in map</Title>
<Fields>
<Field Label="Source Root" ValueName="SourceRootName" ReadOnly="true" />
<Field Label="Destination Root" ValueName="DestinationRootName" ReadOnly="true" />
</Fields>
</Page>
</Pages>
</Wizard>
</GatheringServiceData>
<Actions>
<!--
<Action Name="SetMapRootNodes" Type="Logica.Guidance.BizTalk.Actions.SetMapRootNodes, Logica.Guidance.BizTalk">
<Input Name="CurrentMapItem" RecipeArgument="CurrentItem" />
<Input Name="Source" RecipeArgument="SourceSchema" />
<Input Name="Destination" RecipeArgument="DestinationSchema" />
</Action>
-->
<Action Name="RenameMap" Type="Logica.Guidance.BizTalk.Actions.RenameMap, Logica.Guidance.BizTalk">
<Input Name="CurrentMapItem" RecipeArgument="CurrentItem" />
<Input Name="NewMapName" RecipeArgument="FinalMapName" />
</Action>
</Actions>
</Recipe>

As you can see I have added a second page that is readonly. If i leave this page away, the replacement in my template is not done and if I add the page the replacement is done ??

This is my Template :

<mapsource Name="BizTalk Map" BizTalkServerMapperTool_Version="2.0" Version="2" XRange="100" YRange="420" OptimizeValueMapping="yes">
$SourceRootName$
$DestinationRootName$
<Pages />
</mapsource>

Does anybody know what's going on ? And how can I leave the second page of the Wizard away and still have the replacement done ?

Well0549  Wednesday, March 26, 2008 10:37 AM

Hi Well,

yes that's a know issue, those arguments that are not included in the gathering service will not replaced when the template is unfolded. I'll try to find out some workaround for this issue.

jose.

Jose Escrich  Thursday, March 27, 2008 8:32 PM

Hi Well,

yes that's a know issue, those arguments that are not included in the gathering service will not replaced when the template is unfolded. I'll try to find out some workaround for this issue.

jose.

Jose Escrich  Thursday, March 27, 2008 8:32 PM

You can use google to search for other answers

Custom Search

More Threads

• about gudance automation toolkit
• Wizard size and colors
• Slow Wizard Input using MonitorArgument
• Project reference problem
• Guidance Automation and TFS
• how to run multiple class file with Main() method on each of them independently in a project?
• GAT fails to install, claims GAX is missing
• Nested Solution Folder Parent?
• GAX/GAT for VS 2005-2008 default templates removed
• System.TypeLoadException when starting a new project of type "Web Service Software Factory (WCF)"