1 / 12

Business operation Framework

Business operation Framework. Presented by Syed Baber Development Lead Mazik Global. Features of BOF.

macon
Download Presentation

Business operation Framework

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Business operation Framework Presented by Syed Baber Development Lead Mazik Global

  2. Features of BOF The Business Operation Framework service is one of the system services exposed by Microsoft Dynamics AX and that adheres to the Windows Communication Foundation (WCF) protocols and standards. Following are the features of BOF: • Allows menu-driven execution or batch execution of services. • Calls services in synchronous or asynchronous mode. • Automatically creates a customizable UI based on the data contract. • Encapsulates code to operate on the appropriate tier (prompting on the client tier, and business logic on the server tier).

  3. How to create a BOF Service • To create a Business Operation Framework service, the following steps must be performed: • Create a data contract class • Identify the parameters passed to the service • Register the class as a Business Operation Framework service • Optionally customize the automatically generated UI for the class

  4. Customizing the UI • Attribute based customizations. Attributes are SysOperationGroupAttribute, SysOperationGroupMemberAttribute, SysOperationDisplayOrderAttribute, SysOperationLabelAttribute etc. • Code based customizations. Using UIBuilder class. For example check CustRecurrenceInvoiceUIBuilder Class.

  5. Validation on Contract Clas • To perform validation on contract class, you need to implement SysOperationValidatable Interface and override the validate method. • For example of this, check CustRecurrenceInvoiceDataContract class.

  6. Modify the service contract at runtime • To modify the contract at runtime, we need to create a controller class extend from SysOperationServiceController class. • Get the contract object by calling the method getDataContractObject from controller class instance and then call the corresponding parm methods of contract class, passing the desired values.

  7. How to call a BOF service A Business Operation Framework service can be called in four ways: • As a menu item. • As a batch process. • Synchronously. • Asynchronously.

  8. To call a Business Operation Framework service from a menu item • Create an Action Menu Item • Set the ObjectType to Class • Set the Object to SysOperationServiceController • Set the Parameters to <ServiceClassName>.<MethodName> • Demo Project.

  9. To call a Business Operation Framework service as a batch operation • Create a job and create the service method in that job. • Demo Project.

  10. To call a Business Operation Framework service synchronously • To run the service synchronously, edit the menu item: • Set the EnumTypeParameter to SysOperationExecutionMode • Set the EnumParameter to Synchronous.

  11. To call a Business Operation Framework service asynchronously • To run the service asynchronously, edit the menu item: • Set the EnumTypeParameter to SysOperationExecutionMode • Set the EnumParameter to Asynchronous

  12. Questions??

More Related