|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Process
Title: Process
Description: Processes/Rules/Finally's in the TransactionPipeline must implement this interface. A ProcessDefinition will encapsulate a run-time instance of this class, along with its parameters, default limits, etc.
Copyright: Copyright (c) 2004-2005
Company: Kalio
Method Summary | |
---|---|
ProcessResult |
execute(TransactionContext context)
The method that actually implements this Process' behavior. |
Method Detail |
---|
ProcessResult execute(TransactionContext context) throws EngineException, java.lang.Exception
The method that actually implements this Process' behavior. The TransactionEngine calls the invokeProcess method for the ProcessDefinition that encapsulates this Process. In turn, invokeProcess calls this Process' execute.
A TransactionContext is passed to this method with information about the transaction being performed, the configuration environment, parameters, and default limit values given in the pipeline, and other values. The Process can read values from the TransactionContext and store new values in it for the following Processes to use.
The ProcessResult returned usually has an EngineResult.Msg, and possibly an extra result DOM Element. For successful completions of this Process, the ProcessResult should have its "successful" attribute set to true. The Process could fail in four different ways:
EngineException
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |