What are you looking for?

    Didn't find what you were looking for?

    Extend your Search in Community

    Got any questions?

    We're always happy to help with questions you might have. Contact Us

    Didn't find what you were looking for?

    Extend your Search in Community

    Got any questions?

    We're always happy to help with questions you might have. Contact Us

Maestro Topics

Business Rule Info Object

   MaestroPreviously known as Transact Maestro.  |   Form Builder |  v5.1 & Higher This feature is related to v5.1 and higher.

A Maestro business rule JavaScript requires an info object parameter, passed to it on its invocation, to perform a desired action.

The info parameter is an object describing the event which triggered the rule, or it can be the object returned from a success or failure call in a remote data handler. The value of the info object strongly depends on the rule's implementation. For most rules, the returned info object is undefined.

The info object can be described with the following structure:


info = {
	widgetTypes: {},
	images: [],	
	fonts: [],	
	scripts: [],	
	styleImages: [],
	ruleScripts: {},	
	extraHtml: {},	
	formView: formView
}

A Form Builder can always check the values of the info object in JavaScript by:

  1. Adding debugger; line in the JavaScript code
  2. 
    info object
    debugger;		
    console.log("first name is ");		
    
  3. Building with Options.
  4. Navigating the form's property in the Browser with debugging on.
  5. Viewing values in the debugger (displayed in the screenshot below).

The screenshot below shows the 'info' parameter expanded in the developer tools console. This event has been triggered by Angular code, which is the framework Maestro forms run within.

The screenshot below shows the info object returned from a dynamic data call. The returned data in this particular case is an array of country names and codes, but it could be anything, depending on the dynamic data service it invoked.

Next, learn about business rule data object.

Feedback

Did this topic provide the information you need or leave you wanting to know more? Is there some way we can make this topic better? Let us know how we can improve this documentation.

Contact Us

Community

Our Community is a dynamic, user-driven source of information that provides a home for sharing Journey platform knowledge where you can ask questions and get answers quickly.

Explore Community

Support

Temenos is committed to supporting our customers with Journey platform solutions installed in the cloud or on premise. Learn more about our Customer Care Team, and its policies, procedures, and processes.

Learn More