public interface PRThread extends PageDirectory
Modifier and Type | Field and Description |
---|---|
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 |
SCOPE_NODE, SCOPE_NONE, SCOPE_REQUESTOR, SCOPE_THREAD
Modifier and Type | Method and Description |
---|---|
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.util.Map |
getClassToFeatureMap() |
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.
|
boolean |
getDisableAutoPopulate() |
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.
|
PegaQueueManager |
getPegaQueueManager()
Return the Queue Manager interface for Rule-Async-QueueProcessor
|
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
|
boolean |
getRuleImplInUseState(java.lang.Integer genJavaHash)
Returns the InUse state of the associated generated rule in the local thread-level cache.
|
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 |
overrideSecuritySnapshotPage(PRThread aThread) |
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,
java.lang.Object aImpl)
Deprecated.
use saveRuleImpl() that takes reusableKey as a String instead.
|
void |
saveRuleImpl(java.lang.String reusableKey,
java.lang.Object aImpl)
Adds the implementation of a generated rule to the local thread-level
cache.
|
void |
saveRuleImplInUseState(java.lang.Integer genJavaHash,
java.lang.Boolean bInUse)
Adds the InUse state for this given gen java hash to the local thread-level cache.
|
void |
setCacheEnabled(boolean aEnable)
Sets the database cache enable/disable state for this Requestor
|
void |
setDisableAutoPopulate(boolean aValue) |
void |
setLocaleName(int aID,
java.lang.String aName)
Sets the name of the Locale to be used for the current user.
|
void |
updateSecuritySnapshotPage() |
findName, getDeclarativePageNames, getPage, getPage, getPage, getPageNames, getScope, pageExists, pageExists, removeDeclarativePage, removePage, removePage, removePage, renamePage
static final java.lang.String VERSION
static final java.lang.String COPYRIGHT
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
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 pagevoid 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_* constantsjava.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 nameInvalidLocaleException
boolean getCacheEnabled()
true
indicates the database cache is enabled for this requestorvoid setCacheEnabled(boolean aEnable)
aEnable
- void saveRuleImpl(StringMap aKeys, java.lang.Object aImpl)
aKeys
- the keys to the ruleaImpl
- the rule implementationvoid saveRuleImpl(java.lang.String reusableKey, java.lang.Object aImpl)
reusableKey
- a reusable key for the rule.aImpl
- the rule implementationvoid resetRuleImpl()
void saveRuleImplInUseState(java.lang.Integer genJavaHash, java.lang.Boolean bInUse)
genJavaHash
- - hash code of the generate javabInUse
- boolean getRuleImplInUseState(java.lang.Integer genJavaHash)
genJavaHash
- - hash code of the generate javacom.pega.pegarules.priv.InfEngUtils getInfEngUtils()
boolean isProcessingDeferredOperations()
true
if deferred operations are being processed nowPRQueueManager getQueueManager() throws DatabaseException
DatabaseException
PegaQueueManager getPegaQueueManager()
PRRequestProcessor getRequestProcessor()
PRAuthorization getAuthorization()
ClipboardPage createPageForPageNew(java.lang.String aClassName, java.lang.String aPageName)
aClassName
- object classaPageName
- name of pagevoid removeAllPagesFromGatewayCache()
java.text.ParsePosition getInitializedParsePosition()
java.text.FieldPosition getInitializedFieldPosition()
char[] getInitializedCharBuffer(int maxSize)
char[] getInitializedStringPoolSetCharBuffer(int maxSize)
boolean getDisableAutoPopulate()
void setDisableAutoPopulate(boolean aValue)
void updateSecuritySnapshotPage()
void overrideSecuritySnapshotPage(PRThread aThread)
java.util.Map getClassToFeatureMap()
Copyright © 2018 Pegasystems Inc. All Rights Reserved.