business operation framework n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Business operation Framework PowerPoint Presentation
Download Presentation
Business operation Framework

Loading in 2 Seconds...

play fullscreen
1 / 12

Business operation Framework - PowerPoint PPT Presentation


  • 287 Views
  • Uploaded on

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

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Business operation Framework' - macon


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
business operation framework

Business operation Framework

Presented by Syed Baber

Development Lead

Mazik Global

features of bof
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).
how to create a bof service
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
customizing the ui
Customizing the UI
  • Attribute based customizations.

Attributes are SysOperationGroupAttribute, SysOperationGroupMemberAttribute, SysOperationDisplayOrderAttribute, SysOperationLabelAttribute etc.

  • Code based customizations.

Using UIBuilder class. For example check CustRecurrenceInvoiceUIBuilder Class.

validation on contract clas
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.
modify the service contract at runtime
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.
how to call a bof service
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.
to call a business operation framework service from a menu item
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.
to call a business operation framework service as a batch operation
To call a Business Operation Framework service as a batch operation
  • Create a job and create the service method in that job.
  • Demo Project.
to call a business operation framework service synchronously
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.
to call a business operation framework service asynchronously
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