BizTalk Mapper Extensions UtilityPack: Math Functoids for BizTalk Server 2020

  • Sandro Pereira
  • May 14, 2020
  • 2 min read

Today, we will address the last suite of functoids that are part of the BizTalk Mapper Extensions UtilityPack project available for BizTalk Server 2020: Math Functoids. And with this blog post, we finally arrive to the end of this project migration.

📝 One-Minute Brief

Introduces the Math Functoids in the BizTalk Mapper Extensions UtilityPack for BizTalk Server 2020, enabling BizTalk maps to perform basic mathematical operations such as negation and rounding during message transformation.

Math Functoids

This library includes a suite of functoids to perform a variety of basic mathematical operations that you can use inside the BizTalk mapper.

This project includes the following Custom Functoids:

  • Negate Number Functoid: Use Negate Functoid to return the input double as its negated form.
    • This functoid requires one input parameter:
      • A number (double or int) to be negated.
    • The output result will be the input value in its negative form. If it’s positive, it will return as negative and vice versa.
    • Examples:
      • Input 1 >>> Output = -1
      • Input -23,09 >>> Output = 23,09
      • Input 0 >>> Output = 0
BizTalk Server Math Functoids: Negate Number Functoid
  • SmartRound Functoid: Use SmartRound to return the rounded double, based on the second parameter input.
    • The functoid takes two mandatory input parameters:
      • Parameter 1: Number to be rounded (double or int).
      • Parameter 2: Number to decimal places.
    • The output of the functoid will be the input number rounded up or down to the specified decimal places.
    • Examples:
      • Input 23 rounded to 2 >>> Output = 23,00
      • Input 24,005900 rounded to 3 >>> Output = 24,006
BizTalk Server Math Functoids: SmartRound Functoid

BizTalk Mapper Extensions Utility Pack

BizTalk Mapper Extensions Utility Pack is a set of libraries that includes several useful functoids to include in a map, extending BizTalk Mapper’s capabilities.

BizTalk Mapper Extensions Utility Pack

Download

You can download the source code and application binaries from GitHub:

Hope you find this helpful! If you liked the content or found it useful and would like to support me in writing more, consider buying (or helping to buy) a Star Wars Lego set for my son. 

Thanks for Buying me a coffe
Author: Sandro Pereira

Sandro Pereira lives in Portugal and works as a consultant at DevScope. In the past years, he has been working on implementing Integration scenarios both on-premises and cloud for various clients, each with different scenarios from a technical point of view, size, and criticality, using Microsoft Azure, Microsoft BizTalk Server and different technologies like AS2, EDI, RosettaNet, SAP, TIBCO etc. He is a regular blogger, international speaker, and technical reviewer of several BizTalk books all focused on Integration. He is also the author of the book “BizTalk Mapping Patterns & Best Practices”. He has been awarded MVP since 2011 for his contributions to the integration community.

Leave a Reply

Your email address will not be published. Required fields are marked *

The Ultimate Cloud
Management Platform for Azure

Supercharge your Azure Cost Saving

Learn More
Turbo360 Widget

Back to Top