|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.kalio.empweb.engine.rules.GetProfile
public class GetProfile
Title: GetProfile
Description: This Process obtains a Profile from the active Policy and stores it in the
TransactionContext under the well-known name TransactionContext.PROFILE ("profile").
To select a Profile, it uses the "userClass" and "objectCategory" stored in the TransactionContext.
A "priority" parameter with valid values of "userClass" or "objectCategory" may be passed to the Process. The behaviour is as follows:
Copyright (c) 2005 Kalio.net
Constructor Summary | |
---|---|
GetProfile()
|
Method Summary | |
---|---|
ProcessResult |
execute(TransactionContext tc)
The method that actually implements this Process' behavior. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GetProfile()
Method Detail |
---|
public ProcessResult execute(TransactionContext tc) throws EngineException, java.lang.Exception
Process
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:
execute
in interface Process
EngineException
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |