Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Determine Target Links in custom functoid at compile time
- This topic has 2 replies, 1 voice, and was last updated 9 years, 2 months ago by
community-content.
-
AuthorPosts
-
-
June 8, 2006 at 3:50 PM #13842
Hi all
I am building a custom functoid that implements an XSLT Call-Template, and I want to drag the functoid’s output to the node in the target schema within which the call-template should be executed. However, I have observed that when I do this the call-template call is inserted in the correct location, but that the target node definition does not appear in the validate-map xslt (then obviously, neither in the output xml).
The mass-copy functoid illustrates what I need: if you drag mass copy output to a node called, say, <Data>, then in the validate-map xslt you will see that the <xsl:copy-of statements select=\”*\”/> appear within a <Data> node in the output.
Could someone therefore please advise as to how, at compile (or any other!) time, I can evaluate the XPath in the Target Links property that is used by the calling map for this specific instance of the functoid so that I can embed the required node name in the call-template output (of the GetInlineScriptBuffer function)? …or advise if there is a better way of doing it?
I assume this must be do-able as Mass Copy manages it…
Thx in advance
Bob
-
June 9, 2006 at 8:22 AM #13843
Hi Greg
the OutputConnectionType is set to Record; I believe I had it set to All before.
I am actually doing a customised, parameterised implementation of MassCopy, so I need to have a full node-set going out. Note that my implementation is via an XSLT Call-Template.
What should the OutputConnectionType be in this case?
I am also having trouble working out the InputConnectionTypes (I can’t find any docu that actually describes what the enums really mean): my first param is a node in the source schema, so I set the connection type to Record in this case and it seems to be fine (though I would like to know how to evaluate that link’s XPath too); the second param should be a boolean true/false, so I set the type to AllExceptRecord: this is not behaving entirely as I would like … I can enter a constant param with a value of true() or \”true\” and it works ok, and I can drag in a node in the source schema, but I can’t use the output of a logical functoid (even if I set the param’s conn type to FunctoidLogical), which seems a bit wierd… any thoughts on that one?
Sorry for escalating the question, but thx in advance for any help!
Bob
-
-
June 9, 2006 at 7:58 AM #13841
What is the value of your OutputConnectionType?
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.