|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PRThread
The PRThread interface encapsulates the information about a single stream (or set of interactions) by a Requestor.
Field Summary | |
---|---|
static int |
CHANGESCOPE_COMMIT
Used to track property changes in the Commit scope (indexing) |
static int |
CHANGESCOPE_STEP
Used to track property changes in the Step scope (declarative rules) |
static java.lang.String |
COPYRIGHT
|
static byte |
LIST_ACTIVITY
Identifies the "activity" activity list (middle priority to run) |
static byte |
LIST_CURRENT
Identifies the "current" activity list (highest priority to run) |
static byte |
LIST_WORKFLOW
Identifies the "workflow" activity list (lowest priority to run) |
static int |
LOCALE_DEFAULT
Identifies Locale for generic purposes |
static int |
LOCALE_FOR_DATES
Identifies Locale desired for Date formatting |
static int |
LOCALE_FOR_MESSAGES
Identifies Locale desired for Messages and Text |
static int |
LOCALE_FOR_NUMBERS
Identifies Locale desired for Number formatting |
static java.lang.String |
VERSION
|
Fields inherited from interface com.pega.pegarules.pub.context.PageDirectory |
---|
SCOPE_NODE, SCOPE_REQUESTOR, SCOPE_THREAD |
Method Summary | |
---|---|
void |
appendActivity(int aWhichList,
java.lang.String aClassName,
java.lang.String aActivityName,
ClipboardPage aPrimaryPage,
ParameterPage aParamPage)
Append a standard activty to one of the run queues. |
void |
appendActivity(int aWhichList,
java.lang.String aActivityRuleClass,
java.lang.String aClassName,
java.lang.String aActivityName,
ClipboardPage aPrimaryPage,
ParameterPage aParamPage)
Append alternate activty class to one of the run queues. |
void |
clearActivityLists()
Clear the activity lists |
ClipboardPage |
createPage(java.lang.String aClassName,
java.lang.String aPageName)
Create a new page of the specified class If an existing page has the same name, the old page becomes an unnamed page. |
ClipboardPage |
createPageForPageNew(java.lang.String aClassName,
java.lang.String aPageName)
Create a new page of the specified class If an existing page has the same name, the old page becomes an unnamed page. |
ProcessingStatus |
getActivityStatus()
Returns the cumulative ProcessingStatus instance to which
the current instance will be added. |
PRAuthorization |
getAuthorization()
|
boolean |
getCacheEnabled()
Reports the state of caching for this Requestor |
java.lang.String |
getCurrencyName()
Returns the name of the default Currency to be used for the current user. |
Database |
getDatabase()
Returns the Database context for this Thread |
DateTimeUtils |
getDateTimeUtils()
returns a reference to the singleton DateTime utility object. |
Dictionary |
getDictionary()
is a factory method for Dictionary objects. |
com.pega.pegarules.priv.InfEngUtils |
getInfEngUtils()
|
char[] |
getInitializedCharBuffer(int maxSize)
|
java.text.FieldPosition |
getInitializedFieldPosition()
|
java.text.ParsePosition |
getInitializedParsePosition()
|
char[] |
getInitializedStringPoolSetCharBuffer(int maxSize)
|
java.lang.String |
getLocaleName(int aType)
Returns the name of a Locale to be used for the specified purpose |
java.lang.String |
getName()
Get the assigned name for this PRThread instance. |
ClipboardPage |
getNodePage()
Obtain a reference to the pxProces page |
PAL |
getPAL()
Returns the performance statistics manager for this Thread's Requestor. |
PublicAPI |
getPublicAPI()
Identifies the PublicAPI instance, if any, that is currently
active for this Thread. |
PRQueueManager |
getQueueManager()
Return the Agent Queue Manager interface |
PRRequestor |
getRequestor()
Obtain a reference to the Requestor associated with this Thread. |
ClipboardPage |
getRequestorPage()
Obtain a reference to the pxRequestor page |
PRRequestProcessor |
getRequestProcessor()
Return the Request Processor interface |
java.util.Map |
getStepChangeList()
Deprecated. This function will be removed in 5.2. |
ProcessingStatus |
getStepStatus()
Returns the ProcessingStatus associated with the current
stack frame. |
Random |
getSystemRandom()
returns a reference to the singleton PRRandom utility object. |
ClipboardPage |
getThreadPage()
Return the pxThread page |
java.lang.String |
getTimeZoneName()
Returns the name of a TimeZone to be used for the current user. |
boolean |
isProcessingDeferredOperations()
flag to block certain calls when we are processing deferred operations * |
void |
prependActivity(int aWhichList,
java.lang.String aClassName,
java.lang.String aActivityName,
ClipboardPage aPrimaryPage,
ParameterPage aParamPage)
Prepend an activty to one of the run queues. |
void |
removeAllPages(java.util.Vector aKeepPages)
Remove all pages at the Thread level. |
void |
removeAllPagesFromGatewayCache()
remove all the Clipboard Pages from the Gateway cache. |
void |
resetRuleImpl()
clear thread-local list of rules resolved. |
void |
runActivities()
Run all activities in the activity lists. |
void |
saveRuleImpl(StringMap aKeys,
GeneratedJava aImpl)
Adds the implementation of a generated rule to the local thread-level cache. |
void |
setCacheEnabled(boolean aEnable)
Sets the database cache enable/disable state for this Requestor |
void |
setLocaleName(int aID,
java.lang.String aName)
Sets the name of the Locale to be used for the current user. |
Methods inherited from interface com.pega.pegarules.pub.context.PageDirectory |
---|
findName, getPage, getPageNames, getScope, pageExists, removePage, removePage, renamePage |
Field Detail |
---|
static final java.lang.String COPYRIGHT
static final java.lang.String VERSION
static final byte LIST_CURRENT
static final byte LIST_ACTIVITY
static final byte LIST_WORKFLOW
static final int CHANGESCOPE_STEP
static final int CHANGESCOPE_COMMIT
static final int LOCALE_DEFAULT
static final int LOCALE_FOR_DATES
static final int LOCALE_FOR_NUMBERS
static final int LOCALE_FOR_MESSAGES
Method Detail |
---|
void appendActivity(int aWhichList, java.lang.String aClassName, java.lang.String aActivityName, ClipboardPage aPrimaryPage, ParameterPage aParamPage)
aWhichList
- identify which activity list to useaClassName
- class of ActivityaActivityName
- name of activityaPrimaryPage
- Primary pageaParamPage
- parameter page for activtyvoid appendActivity(int aWhichList, java.lang.String aActivityRuleClass, java.lang.String aClassName, java.lang.String aActivityName, ClipboardPage aPrimaryPage, ParameterPage aParamPage)
This method allows you to sepcify an activity class other than Rule-Obj-Activity.
aWhichList
- identify which activity list to useaActivityRuleClass
- class derived from Rule-Obj-ActivityaClassName
- class of ActivityaActivityName
- name of activityaPrimaryPage
- Reference to primary pageaParamPage
- parameter page for activtyvoid clearActivityLists()
java.util.Map getStepChangeList()
Database getDatabase()
java.lang.String getName()
ClipboardPage getNodePage()
PRRequestor getRequestor()
ClipboardPage getRequestorPage()
ClipboardPage getThreadPage()
ClipboardPage createPage(java.lang.String aClassName, java.lang.String aPageName)
aClassName
- object classaPageName
- name of page
void prependActivity(int aWhichList, java.lang.String aClassName, java.lang.String aActivityName, ClipboardPage aPrimaryPage, ParameterPage aParamPage)
aWhichList
- identify which activity list to useaClassName
- class of ActivityaActivityName
- name of activityaPrimaryPage
- Primary pageaParamPage
- parameter page for activtyvoid removeAllPages(java.util.Vector aKeepPages)
aKeepPages
- Page names (String) that should not be removed.void runActivities()
DateTimeUtils getDateTimeUtils()
PublicAPI getPublicAPI()
PublicAPI
instance, if any, that is currently
active for this Thread.
PublicAPI
instance, or null
if none is active. It is generally not safe to assume that this
object will implement any particular interface that extends
PublicAPI
--in particular, you should not assume that
it will implement StreamBuilderToolKit
.Random getSystemRandom()
Dictionary getDictionary()
ProcessingStatus getActivityStatus()
ProcessingStatus
instance to which
the current instance will be added.
ProcessingStatus
instance that includes
current processingProcessingStatus getStepStatus()
ProcessingStatus
associated with the current
stack frame.
ProcessingStatus
PAL getPAL()
PAL
instance)java.lang.String getLocaleName(int aType)
aType
- one of the LOCALE_* constants
java.lang.String getTimeZoneName()
java.lang.String getCurrencyName()
void setLocaleName(int aID, java.lang.String aName) throws InvalidLocaleException
aID
- int ID for the propertyaName
- String the locale name
InvalidLocaleException
boolean getCacheEnabled()
true
indicates the database cache is enabled for this requestorvoid setCacheEnabled(boolean aEnable)
aEnable
- void saveRuleImpl(StringMap aKeys, GeneratedJava aImpl)
aKeys
- the keys to the ruleaImpl
- the rule implementationvoid resetRuleImpl()
com.pega.pegarules.priv.InfEngUtils getInfEngUtils()
boolean isProcessingDeferredOperations()
true
if deferred operations are being processed nowPRQueueManager getQueueManager() throws DatabaseException
DatabaseException
PRRequestProcessor getRequestProcessor()
PRAuthorization getAuthorization()
ClipboardPage createPageForPageNew(java.lang.String aClassName, java.lang.String aPageName)
aClassName
- object classaPageName
- name of page
void removeAllPagesFromGatewayCache()
java.text.ParsePosition getInitializedParsePosition()
java.text.FieldPosition getInitializedFieldPosition()
char[] getInitializedCharBuffer(int maxSize)
char[] getInitializedStringPoolSetCharBuffer(int maxSize)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |