|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISolutionEngine
The Solution Engine handles loading and launching execution of solutions and action sequences. There is one solution engine per request, which can launch one or more action sequences.
Field Summary | |
---|---|
static String |
RUNTIME_SOLUTION_NAME
|
Fields inherited from interface org.pentaho.platform.api.engine.ILogger |
---|
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN |
Method Summary | |
---|---|
IRuntimeContext |
execute(IRuntimeContext runtime,
String solutionName,
String sequencePath,
String sequenceName,
String processId,
boolean async,
boolean instanceEnds,
Map parameterProviderMap,
IOutputHandler outputHandler)
Executes the action sequence specified |
IRuntimeContext |
execute(String actionSequenceXML,
String sequenceName,
String processId,
boolean async,
boolean instanceEnds,
String instanceId,
boolean persisted,
Map parameterProviderMap,
IOutputHandler outputHandler,
IActionCompleteListener pListener,
IPentahoUrlFactory urlFactory,
List messages)
Executes the in memory action sequence specified |
IRuntimeContext |
execute(String solutionName,
String actionPath,
String actionName,
String processId,
boolean async,
boolean instanceEnds,
String instanceId,
boolean persisted,
Map parameterProviderMap,
IOutputHandler outputHandler,
IActionCompleteListener listener,
IPentahoUrlFactory urlFactory,
List messages)
Executes the action sequence specified in the manner described in the parameters |
IRuntimeContext |
getExecutionContext()
|
int |
getStatus()
|
void |
init(IPentahoSession session)
Initialize the SolutionEngine. |
void |
setCreateFeedbackParameterCallback(ICreateFeedbackParameterCallback callback)
|
void |
setForcePrompt(boolean forcePrompt)
Sets if the promp page should be forced |
void |
setlistener(IActionCompleteListener listener)
Sets the action complete listener which will be called when the action is complete |
void |
setlistener(IExecutionListener execListener)
|
void |
setParameterProvider(String name,
IParameterProvider parameterProvider)
Sets the source for input parameters. |
void |
setParameterXsl(String xsl)
Sets the xsl file to be used to generate the parameter page for the current component. |
void |
setSession(IPentahoSession session)
Sets the session in the solution engine |
Methods inherited from interface org.pentaho.platform.api.engine.ILogger |
---|
debug, debug, error, error, fatal, fatal, getLoggingLevel, info, info, setLoggingLevel, trace, trace, warn, warn |
Field Detail |
---|
static final String RUNTIME_SOLUTION_NAME
Method Detail |
---|
void setParameterProvider(String name, IParameterProvider parameterProvider)
name
- name to give to this providerparameterProvider
- instance of a providerorg.pentaho.platform.api.engine.services.IParameterProvider
void setCreateFeedbackParameterCallback(ICreateFeedbackParameterCallback callback)
IRuntimeContext execute(String solutionName, String actionPath, String actionName, String processId, boolean async, boolean instanceEnds, String instanceId, boolean persisted, Map parameterProviderMap, IOutputHandler outputHandler, IActionCompleteListener listener, IPentahoUrlFactory urlFactory, List messages)
solutionName
- the name at the root level of the solution pathactionPath
- the path relative to the solutionName that will lead to the
requested actionactionName
- name of the action sequence documentprocessId
- id for the given action sequence documentasync
- synchronous(false) or asynchronous(true) execution (not
currently used)instanceId
- id to be handed to the runtime repositorypersisted
- if true, store runtime data, otherwise do notparameterProviderMap
- group of ParameterProviders, sources for inout parametersoutputHandler
- handler used to query for addition parameterslistener
- object notified on completion of action sequencesurlFactory
- factory for building urlsmessages
- list into which debug, info, warning, and errors messages will
be added
IRuntimeContext
IRuntimeContext execute(IRuntimeContext runtime, String solutionName, String sequencePath, String sequenceName, String processId, boolean async, boolean instanceEnds, Map parameterProviderMap, IOutputHandler outputHandler)
runtime
- The runtime context for the executionsolutionName
- Name of the solutionsequencePath
- path to the solutionsequenceName
- name of the action sequenceprocessId
- id for the given process, typically a GUID or unique id for this executionasync
- true if the execution should be asynchronous.instanceEnds
- currently true indicating that the process ends with this executionparameterProviderMap
- Map of parameter providers to use for the executionoutputHandler
- The output handler for dealing with user feedback
IRuntimeContext
,
IParameterProvider
,
IActionSequence
IRuntimeContext execute(String actionSequenceXML, String sequenceName, String processId, boolean async, boolean instanceEnds, String instanceId, boolean persisted, Map parameterProviderMap, IOutputHandler outputHandler, IActionCompleteListener pListener, IPentahoUrlFactory urlFactory, List messages)
actionSequenceXML
- the in memory action sequence stringsequenceName
- name of the action sequenceprocessId
- id for the given process, typically a GUID or unique id for this executionasync
- true if the execution should be asynchronous.instanceEnds
- currently true indicating that the process ends with this executionparameterProviderMap
- Map of parameter providers to use for the executionoutputHandler
- The output handler for dealing with user feedback
IRuntimeContext
,
IParameterProvider
,
IActionSequence
void setlistener(IActionCompleteListener listener)
listener
- Listener to call back when execution is complete.void setlistener(IExecutionListener execListener)
void setSession(IPentahoSession session)
session
- The session for this executionIRuntimeContext getExecutionContext()
int getStatus()
void init(IPentahoSession session)
session
- the session context for this SolutionEnginevoid setForcePrompt(boolean forcePrompt)
status
- void setParameterXsl(String xsl)
xsl
- The name of the XSL file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |