|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.kalio.empweb.engine.ProcessDefinition
public class ProcessDefinition
Title: ProcessDefinition
Description: A Java representation of a transaction pipeline's "process", "rule", or "finally" element. This object's invokeProcess() prepares the call to a Process.execute() and it interprets the different results and exceptions of the Process.execute() and converts everything to suitabble ProcessResult's which are returned to the TransactionEngine.
Copyright: Copyright (c) 2004
Company: Kalio
Field Summary | |
---|---|
(package private) java.lang.String |
bundle
|
(package private) java.lang.String |
className
|
(package private) java.util.LinkedHashMap |
defaultLimits
|
(package private) boolean |
enabled
|
(package private) java.lang.Class |
implementingClass
|
(package private) TransactionPipeline |
myTransPipeline
|
(package private) java.lang.String |
name
|
(package private) java.util.LinkedHashMap |
params
|
(package private) Process |
process
|
(package private) java.lang.String |
processType
|
Constructor Summary | |
---|---|
ProcessDefinition(TransactionPipeline owner,
org.w3c.dom.Element d)
|
Method Summary | |
---|---|
java.util.Map |
getDefaultLimits()
Returns a Map of the limits used by this Process, along with their default values |
(package private) ProcessResult |
invokeProcess(TransactionContext context)
Invokes the associated Process' execute method. |
boolean |
isFinally()
|
boolean |
isProcess()
|
boolean |
isRule()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
TransactionPipeline myTransPipeline
java.lang.String processType
java.lang.String name
boolean enabled
java.lang.String bundle
java.lang.String className
java.lang.Class implementingClass
Process process
java.util.LinkedHashMap defaultLimits
java.util.LinkedHashMap params
Constructor Detail |
---|
public ProcessDefinition(TransactionPipeline owner, org.w3c.dom.Element d) throws XMLConfigurationException, ConfigurationException
XMLConfigurationException
ConfigurationException
Method Detail |
---|
public boolean isRule()
public boolean isFinally()
public boolean isProcess()
public java.util.Map getDefaultLimits()
ProcessResult invokeProcess(TransactionContext context)
Invokes the associated Process' execute method. It passes the TransactionContext to the associated Process, adding the parameters and defaultLimits specified in the transaction pipeline XML as java.util.Map's into the TransactionContext.
if ( m.isi18nKey() and m.getBundle() == null) then // It's a key with no bundle!! if (the pipeline's element rule or process specifies bundle "xxx") then m.setBundle("xxx") else // we assume it's an Empweb core process. We need to set a bundle somehow! m.setBundle(Bundles.getEngine()) prefix the key value with the Process' full.Class.Name end if end if return the ProcessResult.
So this method never returns null and it handles *ALL* possible Exceptions and turns them into a ProcessResult. It should never throw an Exception.
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |