|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.platform.engine.core.system.PentahoBase org.pentaho.platform.engine.services.PentahoMessenger org.pentaho.platform.engine.services.solution.SolutionEngine
public class SolutionEngine
Field Summary |
---|
Fields inherited from class org.pentaho.platform.engine.core.system.PentahoBase |
---|
EMPTYLOGID, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR |
Fields inherited from interface org.pentaho.platform.api.engine.ISolutionEngine |
---|
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 |
Constructor Summary | |
---|---|
SolutionEngine()
|
Method Summary | |
---|---|
IRuntimeContext |
execute(IRuntimeContext pRuntime,
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 isPersisted,
Map parameterProviderMap,
IOutputHandler outputHandler,
IActionCompleteListener pListener,
IPentahoUrlFactory urlFactory,
List messages)
Executes the in memory action sequence specified |
IRuntimeContext |
execute(String solutionName,
String sequencePath,
String sequenceName,
String processId,
boolean async,
boolean instanceEnds,
String instanceId,
boolean isPersisted,
Map parameterProviderMap,
IOutputHandler outputHandler,
IActionCompleteListener pListener,
IPentahoUrlFactory urlFactory,
List messages)
Executes the action sequence specified in the manner described in the parameters |
IRuntimeContext |
getExecutionContext()
|
org.apache.commons.logging.Log |
getLogger()
|
int |
getStatus()
|
void |
init(IPentahoSession pSession)
Initialize the SolutionEngine. |
void |
setCreateFeedbackParameterCallback(ICreateFeedbackParameterCallback callback)
|
void |
setForcePrompt(boolean forcePrompt)
Sets if the promp page should be forced |
void |
setlistener(IActionCompleteListener doneListener)
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 class org.pentaho.platform.engine.services.PentahoMessenger |
---|
debug, debug, error, error, error, fatal, fatal, getMessages, getUserString, info, info, setMessages, trace, trace, warn, warn |
Methods inherited from class org.pentaho.platform.engine.core.system.PentahoBase |
---|
genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, getLogId, getObjectName, setLoggingLevel, setLogId |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.pentaho.platform.api.engine.ILogger |
---|
debug, debug, error, error, fatal, fatal, getLoggingLevel, info, info, setLoggingLevel, trace, trace, warn, warn |
Constructor Detail |
---|
public SolutionEngine()
Method Detail |
---|
public org.apache.commons.logging.Log getLogger()
getLogger
in class PentahoBase
public void init(IPentahoSession pSession)
ISolutionEngine
init
in interface IPentahoInitializer
init
in interface ISolutionEngine
pSession
- the session context for this SolutionEnginepublic void setParameterProvider(String name, IParameterProvider parameterProvider)
ISolutionEngine
setParameterProvider
in interface ISolutionEngine
name
- name to give to this providerparameterProvider
- instance of a providerorg.pentaho.platform.api.engine.services.IParameterProvider
public void setlistener(IActionCompleteListener doneListener)
ISolutionEngine
setlistener
in interface ISolutionEngine
doneListener
- Listener to call back when execution is complete.public void setlistener(IExecutionListener execListener)
setlistener
in interface ISolutionEngine
public void setSession(IPentahoSession session)
ISolutionEngine
setSession
in interface ISolutionEngine
session
- The session for this executionpublic int getStatus()
getStatus
in interface ISolutionEngine
public IRuntimeContext getExecutionContext()
getExecutionContext
in interface ISolutionEngine
public IRuntimeContext execute(String solutionName, String sequencePath, String sequenceName, String processId, boolean async, boolean instanceEnds, String instanceId, boolean isPersisted, Map parameterProviderMap, IOutputHandler outputHandler, IActionCompleteListener pListener, IPentahoUrlFactory urlFactory, List messages)
ISolutionEngine
execute
in interface ISolutionEngine
solutionName
- the name at the root level of the solution pathsequencePath
- the path relative to the solutionName that will lead to the
requested actionsequenceName
- 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 repositoryisPersisted
- if true, store runtime data, otherwise do notparameterProviderMap
- group of ParameterProviders, sources for inout parametersoutputHandler
- handler used to query for addition parameterspListener
- object notified on completion of action sequencesurlFactory
- factory for building urlsmessages
- list into which debug, info, warning, and errors messages will
be added
IRuntimeContext
public IRuntimeContext execute(String actionSequenceXML, String sequenceName, String processId, boolean async, boolean instanceEnds, String instanceId, boolean isPersisted, Map parameterProviderMap, IOutputHandler outputHandler, IActionCompleteListener pListener, IPentahoUrlFactory urlFactory, List messages)
ISolutionEngine
execute
in interface ISolutionEngine
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
public IRuntimeContext execute(IRuntimeContext pRuntime, String solutionName, String sequencePath, String sequenceName, String processId, boolean async, boolean instanceEnds, Map parameterProviderMap, IOutputHandler outputHandler)
ISolutionEngine
execute
in interface ISolutionEngine
pRuntime
- 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
public void setForcePrompt(boolean forcePrompt)
ISolutionEngine
setForcePrompt
in interface ISolutionEngine
public void setParameterXsl(String xsl)
ISolutionEngine
setParameterXsl
in interface ISolutionEngine
xsl
- The name of the XSL filepublic void setCreateFeedbackParameterCallback(ICreateFeedbackParameterCallback callback)
setCreateFeedbackParameterCallback
in interface ISolutionEngine
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |