Interface IlrScenarioSuiteResourcesRenderer
-
public interface IlrScenarioSuiteResourcesRenderer
Represents how data is provided to the scenario provider by the Decision Center user.
Overview
Implement this interface to encode and decode the scenario suite resources. These resources are used to build the IlrScenarioSuiteDescriptor given to the scenario provider. The renderer is linked to the class name of the scenario provider, and is used in Decision Center when choosing the format.
You also have to define, in Decision Center, a configuration parameter that associates the scenario suite resources renderer to its renderer class. The key is
"teamserver." + scenarioProviderClassName + ".renderer"
. For example, ifscenarioProviderClassName
iscom.test.MyProvider
, the key must beteamserver.com.test.MyProvider.renderer
. This value is the fully qualified name of the scenario suite resources renderer.Example
You can find code examples of how to implement
IlrScenarioSuiteResourcesRenderer
in the Custom scenario provider and KPI sample.About the DVS API
Decision Validation Services provides business rule testing and simulation solutions to developers and business users.
You use the DVS API to:
- Run an existing scenario suite (a test suite or simulation).
- Create key performance indicators (KPIs) to display the business outcomes of simulations.
- Customize the scenario providers, which determine how input data is provided to the test & simulation engine for execution.
- Read and write test and simulation data using the default Excel 2003 formats.
-
-
Method Summary
Methods Modifier and Type Method and Description void
decode(ilog.rules.dvs.common.descriptors.IlrScenarioFormatDescriptor formatDescriptor, java.util.Map<java.lang.String,byte[]> resources, javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
Decodes, validates, and stores any new state in the specified resources.void
encodeAsEditor(ilog.rules.dvs.common.descriptors.IlrScenarioFormatDescriptor formatDescriptor, java.util.Map<java.lang.String,byte[]> resources, javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
Renders the current state of the specified resources as an editor.void
encodeAsViewer(ilog.rules.dvs.common.descriptors.IlrScenarioFormatDescriptor formatDescriptor, java.util.Map<java.lang.String,byte[]> resources, javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
Renders the current state of the specified resources as a viewer.
-
-
-
Method Detail
-
decode
void decode(ilog.rules.dvs.common.descriptors.IlrScenarioFormatDescriptor formatDescriptor, java.util.Map<java.lang.String,byte[]> resources, javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
Decodes, validates, and stores any new state in the specified resources.- Throws:
java.lang.IllegalArgumentException
- if a decoded form field is not valid. When this happens, the exception message is displayed in the page.- Parameters:
formatDescriptor
- The scenario file format description.resources
- The resources to be decoded. The run and download archive actions will be available only if this map is not empty.context
- The faces context for the request being processed.component
- The current UI component.
-
encodeAsEditor
void encodeAsEditor(ilog.rules.dvs.common.descriptors.IlrScenarioFormatDescriptor formatDescriptor, java.util.Map<java.lang.String,byte[]> resources, javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
Renders the current state of the specified resources as an editor.- Throws:
java.io.IOException
- if an input/output error occurs.- Parameters:
formatDescriptor
- The scenario file format description.resources
- The resources to be rendered.context
- The faces context for the request being processed.component
- The current UI component.
-
encodeAsViewer
void encodeAsViewer(ilog.rules.dvs.common.descriptors.IlrScenarioFormatDescriptor formatDescriptor, java.util.Map<java.lang.String,byte[]> resources, javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
Renders the current state of the specified resources as a viewer.- Throws:
java.io.IOException
- if an input/output error occurs.- Parameters:
formatDescriptor
- The scenario file format description.resources
- The resources to be rendered.context
- The faces context for the request being processed.component
- The current UI component.
-
-