# RHWorkflowQuery

Inherits from: RHObject :: Paginator :: RHQuery :: RHTableQuery

# Class Methods

# Inherited methods

ErrorAssoc GetByID OKAssoc

# New

function Frame New(Object prgCtx, Record request=$RHCore.Utils.FakeRequest(prgCtx), Dynamic page=1, String sort='title', String kind='all', String status='NoArchive')

# Overrides:

New in class RHTableQuery

# NewFromRequest

function Dynamic NewFromRequest(Object prgCtx, Record request)


function String URL()

# Instance Methods

# Property Methods

Property methods can be accessed with the valueForKey method.

bury classidentifier classname clone columnnames columnnameswithprefix count currentpagesize cursor distinct endindex errorassoc exists first hash hasnext hasotherpages hasprevious identityhashcode ispagingenabled issortpossible items iterator kind last methods modelinstance nextpagenumber okassoc pagecount pagenumber pagerange pagesize pagesizes pkdbaliasname pkdbfieldname pkfieldname precache previouspagenumber propertymethods queryvalues reverse serialize startindex status statusitems statusitemsformatted string tablename toexcel url values_list where

# Inherited methods

annotate assert bury cacheMethod cacheValueForKey callSuper checkError chunk class classIdentifier className clone columnNames columnNamesWithPrefix currentPageSize cursor delete deserialize dict distinct endIndex endTrans exists extra filter filterGroupMembership filterIfDefined filterPermissions filterSelectedFromRequest first fixdbfieldcase get hash hasNext hasOtherPages hasPrevious identityHashCode isAccessorMethod isCached isInstanceOf isPagingEnabled isProperty isPropertyMethod isSortPossible iterator join keyToDBFieldnameNoPrefix last limit max methods min modelInstance nextPageNumber pageRange pageSizes pkDBAliasName pkDBFieldName pkFieldName pluck precache prepareForReuse previousPageNumber propertyMethods queryValues removeFromCache reset resetCache respondsTo reverse serialize setAllowMassUpdate setCacheValueForKey setDBFieldNameForKey setEnableBulkUpdate setFilterPermissions setObject setOrderBy setPageNumber setPaging setPKFieldName setQueryOrderBy setQueryValues setSort setSQL setTableName setUpdateValueForKey setValueForKey setValueForKeyPath setValues sort sortCustom sql sqlsubquery startIndex startTrans string sum super toCSV toExcel union update valueForKey valueForKeyPath values values_list

# count

function Integer count()

# Overrides:

count in class RHQuery

# filterAttribute

function Frame filterAttribute(Dynamic mapid, Dynamic attribute, Dynamic operator, Dynamic value)

# items

function Dynamic items()

# Overrides:

items in class RHTableQuery

# keyToDBFieldname

function String keyToDBFieldname(String key, Boolean prefix=true)

# Overrides:

keyToDBFieldname in class RHTableQuery

# kind

function String kind()

# order_by

function Frame order_by(Dynamic fieldNames)

# Overrides:

order_by in class RHQuery

# pageCount

function Integer pageCount()

# Overrides:

pageCount in class Paginator

# pageNumber

function Integer pageNumber()

Simplified to prevent recursion error

# Overrides:

pageNumber in class Paginator

# pageSize

function Integer pageSize()

# Overrides:

pageSize in class Paginator

# resetSubclass

function Void resetSubclass()

# Overrides:

resetSubclass in class RHTableQuery

# setKind

function Void setKind(String kind)

# setPageSize

function Frame setPageSize(Integer pageSize)

# Overrides:

setPageSize in class Paginator

# setStatus

function Void setStatus(String status)

# status

function String status()

# statusItems

function RecArray statusItems() // Object prgCtx, Record request, String kind='all', String status='NoArchive', String sort='title')

This is more or less the function Content Server uses to get the Workflow items. Eventually it calls prgCtx.WSession().GetWorkList and doesn't page or sort the results until passed into $WebWork.StatusPkg.FormatStatusList() (which is done by calling .statusItemsFormatted()).

# statusItemsFormatted

function Assoc statusItemsFormatted()

This function returns a workflow ready for outputting. It's more or less the same data used to populate the Personal > Workflows page.

# tableName

function String tableName()

# Overrides:

tableName in class RHTableQuery

# where

function String where()

Last Updated: 11/15/2019, 4:24:30 PM