Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only

Interact with bean class methods using automation scripts

By Tinnokesh AP posted Sat March 21, 2026 10:59 AM

  
Maximo provides the capability to perform App Bean and Data Bean customizations using automation scripts.
 
How to enable: 
Step 1:
Verify that the system property mxe.script.allowbeanscript is enabled in the System Properties application. If it is not enabled, set the property value to 1. 
Step 2:
Create the automation script as outlined below: 
a. App Bean Customization 
    • Create an automation script using the naming convention APPBEAN.<app>, where <app> corresponds to MAXAPPS.APP.
    • Implement the required logic. Note : Ensure that the function name matches the corresponding method name. 
b. Data Bean Customization 
    • Create an automation script using the naming convention DATABEAN.<custom>, where <custom> can be any preferred name.
    • Implement the required logic. Note : Ensure that the function name matches the corresponding method name.
    • Define the input variables as follows:
Variable 1: 
Name: beanid
Type: IN
Binding Type: LITERAL
Binding Value: Identified entity's Data Source ID
Variable 2: 
Name: beanapp
Type: IN
Binding Type: LITERAL
Binding Value: Identified application name (MAXAPPS.APP)
Step 3:
Enable the option Allow Invoking Script Functions?.
Step 4:
Save the automation script.
Key Benefits :
1. Facilitates interaction with bean class methods from automation scripts.
2. Keeps customization within Maximo, eliminating reliance on external Java classes.
3. Reduces the overhead associated with maintaining external Java classes during system upgrades.
 
Example :
To filter for Emergency work order, when the user navigates to work order application.
Auto Script Name : APPBEAN.WOTRACK 
Code : 
def initializeApp(ctx)
app=ctx.getAppInstance()
resultBean=app.getResultBean()
resultBean.setQBE("worktype","=EM")
 resultBean.reset()
0 comments
24 views

Permalink