Browse DevX
Sign up for e-mail newsletters from DevX


Codelessly Orchestrate your Business Processes with Microsoft BizTalk 2004 : Page 4

When business process and rules can be described to a runtime engine instead of programmed in code, a lot of problems get solved. Take this hands-on introductory lesson to Microsoft's BizTalk and learn how to abstract your apps with enterprise class.




Building the Right Environment to Support AI, Machine Learning and Deep Learning

Your BizTalk solution needs to be added to the BizTalk deployment database and to the Global Assembly Cache. You do this using the BizTalk Deployment wizard, which is in the BizTalk Start menu folder. The BizTalk runtime reads your compiled logic from these locations. When the deployment wizard starts, skip the welcome screen to the Deployment Task screen and select 'Deploy BizTalk Assembly to Database.' On the next screen accept the default settings and click Next. The next screen asks you to identify the BizTalk assembly file, so browse to the schemas project that you created earlier and find ShareTraderSchema.dll. Make sure that 'Install Assembly to the GAC on this Computer' is checked. Click Next twice to finish the wizard.

Run the wizard a second time, performing exactly the same steps to install ShareTraderWorkflow.DLL. Running the Orchestration
Running the application isn't quite as easy as it sounds! The concept is that you are configuring a running service on the computer, and as such you follow two steps: enlisting, which means you are informing BizTalk that you will be using this service frequently, and starting, which is the actual process of running it!

To run your application you use the BizTalk Administration console, which is found in the BizTalk Start menu folder. On the BizTalk Server 2004 (local) node, open hosts and select BizTalkServerApplication. If the server (your computer) in the right pane isn't running, right click it and select Start. Select the Orchestrations folder. You should see the ShareTraderWorkflow.Orchestration_1 on the right-hand side. Right-click it and then select Enlist. Accept all the defaults on the wizard.

Now select the Send Ports folder. You should see the two workflow send ports on the right. Right-click each and select Enlist, and then again right-click each and select Start. Go back to the Orchestrations folder. Now you can select the ShareTraderWorkFlow orchestration and select Start Processing.

Your first BizTalk application is now running. To test it, simply create an instance document of the RequestTradeSchema, fill it in with some meaningful data and copy it to the In folder. Depending on the value of the field, the BizTalk engine will pass it either to the broker's folder or the system folder. This may seem like a lot of work for a very simple task, but you have touched on most of the main points of BizTalk in building this application. The documentation that comes with the server will help you build on this example to do real world, enterprise systems. For example you can replace the file system used in this example with Web services calls to do multiple transforms.

As an exercise, see if you can build a Web service that returns the acceptance or denial from the broker, and pass the request denied back to the user or the accepted trade on to the system. The schema and mapping have already been set up for you. Have fun!

Laurence Moroney is a freelance enterprise architect who specializes in designing and implementing service-oriented applications and environments using .NET, J2EE, or (preferably) both. He has authored books on .NET and Web services security, and more than 30 professional articles. A former Wall Street architect, and security analyst, he also dabbles in journalism, reporting for professional sports. You can find his blog at http://www.philotic.com/blog.
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date