However, some of our customers wanted the ability to directly use our API’s instead of connectors so that it is possible to log activities from any kind of application like APIs, Azure Functions, Windows Service, etc. As a customer-centric company, we listened to our customers and here we are launching the Nuget Package library which will help you to directly log business activities from your .Net applications.

Ship Any Where Logistics Scenario

Let us look at an example business process from the logistics domain. This example is a simplified version of the actual system but you can see that multiple types of messages flowing through different systems.

What is Business Process

Business Process – A collection of related transactions that serve a business goal for the customer(s). For example, ShipAnyWhere Logistics is a business process that encompasses multiple transactions.

Stage – A milestone within a business transaction that performs a well-defined task. For example, Receiving an order from a customer, Transforming it to a format that the supplier expects and sending the order to the supplier system, are few milestones in the booking transaction.

Properties – A value in the business transaction which is of specific importance in the context of the transaction. For example, BookingId, Price could be a couple of data values that business might be interested in to track in the order stages, They can be searched for if the property is a global property.

The above business process can be represented in the Serverless360 BAM portal as below.

In Serverless360 BAM the logging is happening at a stage level. Below is the list of operations that can be performed on each stage.

Start Activity – Starts a business stage activity

Update Activity – Updates an existing stage activity

Archive Activity – Archives the message and message context of a message

Log Exception Activity – Log if there are any exceptions

Let’s Look at Some Code

For the logistics operation let’s assume we are using Azure Functions as our integration service. For the business transaction Booking Request the code may look something like below.

Now if you are processing message in this azure function you should see the tracked activities like below.

As you can see its pretty straightforward process to use this library in your projects. So if you are a business and in need of tracking your business activities from various components in your organization you can make use of the library. We also open sourced our library in Github. So if you are facing any issues with the library or if you want to contribute to the library you can do that.

Conclusion

I hope this blog post provided a better understanding on the library and its intention. We also have a more detailed documentation in our documentation portal please check out that as well.