Skip to main content

Posts

Showing posts with the label BOF

Multi threading–Adding run time tasks

Last year I posted about multi threaded operation using BOF Also uploaded a sample project you could use to test it out or use as a template. Multithreading with Business Operation Framework [AX 2012] One thing I picked up after testing it in a large scale project which required scheduling it on a non default (blank) batch group. This had a few issues: Originally I was using the  batchHeader.addTask(this.newTaskController(recIdSet)); Below are the two issues of using this method like this. 1. There is a known issue to set the controller execution mode to be Synchronous. Whitepaper: https://www.microsoft.com/en-us/download/details.aspx?id=29215 Screenshot of the known issue. This separates it as its own batch job which disappears after it is finished. This is not the desired result when we are adding tasks at runtime. We want to keep them as tasks under the main batch. 2. Another issue is it will set the batch group as the default batch (blank). In my case the blank bat...

BOF and security [AX 2012]

This is the highlight the affect of  [SysEntryPointAttribute( true )] Switching this parameter to true means that you have to define the permission for all the tables that are used. Otherwise you will get a permission error. Leaving it to false (default), will treat the method as an entry point and give access all access to the used tables. Reference: http://msdn.microsoft.com/en-us/library/sysentrypointattribute.new.aspx

Business Operation Framework (BOF) [AX 2012]

The Business Operation Framework (BOF) lets you run services on Microsoft Dynamics AX using the Windows Communication Foundation (WCF) framework. The BOF uses an MVC programming pattern. What is a Model View Controller (MVC) Framework? MVC is a framework methodology that divides an application's implementation into three component roles: models, views, and controllers. Model:  The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller). View: The view manages the display of information. Controller:  The controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate. Features of the Business Operation Framework Allows menu-driven execution or batch execution of services. Calls services in synchronous or asynchronous mode. Automatic...