Using MLSolutionFactory scriptable objects
-
- UpdatedAug 3, 2023
- 2 minutes to read
- Vancouver
- AI Experiences
MLSolutionFactory scriptable objects enable defining ML functionality. You can use the APIs to compose data-driven functionality, such as subclustering large clusters or clusters with multiple PRBs attached.
You can use scriptable objects in a scripted extension point to modify the Predictive Intelligence REST API method to address unique business use cases.
ServiceNow applications on the NOW platform can call scriptable objects and script includes. External applications can call scripted REST APIs. By default, the Predictive Intelligence REST API - Prediction for multiple solutions (GET) method uses the MLSolutionUtil scripted extension point to take a list of active solution names, run predictions on them given the input, and return results. The MLSolutionUtil extension point enables creating custom implementations for specific usage scenarios, for example, running a second solution prediction only after the condition of a first solution prediction is satisfied.
- Developers customize a MLSolutionUtil scripted extension point
implementation using the MLSolutionFactory scriptable object.
- Listed as global.MLSolutionUtil in the Extension Point [sys_extension_point] table
- See Register a custom script include
- The MLSolutionUtil scripted extension point implementation uses MLSolutionFactory to get the scriptable object, and invokes prediction methods on that object.
- The Predictive Intelligence REST API - Prediction for multiple solutions (GET) method invokes the MLSolutionUtil extension point implementation, depending on the scope of the request.
- Applications call the Predictive Intelligence REST API - Prediction for multiple solutions (GET) end point from a script include form.