Package com.webmethods.portal.mech.task
Interface ITaskHelper
public interface ITaskHelper
-
Method Summary
Modifier and TypeMethodDescriptionconvertDecisionTablesFromXml
(Object decisionTablesXml) convertDecisionTablesFromXml
(Object decisionTablesXml, FacesContext facesContext) getClassLoader
(ITask task) getClassLoader
(ITaskDefinition taskDef) getClassLoader
(IURI taskURI) Obtains task application classloader for the given taskUrigetClassLoaderIfExists
(ITaskDefinition taskDef) Returns task URI from the current threadgetDisplayName
(ITaskChangedEvent event) getDisplayName
(IURI uri) getDisplayName
(List<? extends IURI> uriList) int
getIntOperation
(String operation) int
getIntPriority
(String priority) int
getIntStatus
(String status) Returns instance of cluster locking servicegetOperationDisplayName
(int operation) IURI[]
getPrincipalsList
(Object principals) Returns list of principals uris from objectIURI[]
getPrincipalsList
(Object principals, Object principalTypes) getPriorityDisplayName
(int priority) com.webmethods.caf.rules.IRule
com.webmethods.caf.rules.IRuleBuilder
getRulesList
(IThingID folderID, boolean nested, boolean includeNotFired) Returns sorted list of enabled rules from the given folder and subfoldersgetRuleType
(IURI ruleURI) getRunningDisplayName
(boolean isRunning) getStatusDisplayName
(int status) getStringOperation
(int operation) getStringPriority
(int priority) getStringStatus
(int status) getTaskDefinitionByName
(String taskDefName) Returns singleton instance for Task Form Flow servicegetTaskRuleSet
(ITask task) Returns rule set value for given taskgetThingID
(IURI uri) getURI
(int id) boolean
isRuleEnabled
(IURI ruleURI) Determines if specified rule is enabledboolean
isRuleType
(IThingID ruleID) Checks if given thingID points to a Rule thingboolean
isTaskType
(IThingID taskID) Checks if given thingID is a valid task IDlookupPrincipal
(Object id, int type) lookupPrincipal
(Object principal, String principalType) lookupUser
(String userID) boolean
needExecuteRule
(ITask task, com.webmethods.caf.rules.IRule rule) Determines whether given rule should be executed fro given taskpageList
(List<? extends ITask> list, IPagingCookie cookie, int endIndex, int startIndex) Splits the list according to the paging cookieprincipalName
(IURI uri) Returns displayName for a principalvoid
setCurrentTaskURI
(IURI taskURI) Sets task URI on the current threadsortAndPageList
(IThingID userID, ITaskList taskList, IPagingCookie cookie, int rights) sortPrincipalList
(List<T> list) stringArrayToUriList
(String[] array) stringToUriList
(String str) String[]
uriListToStringArray
(List<? extends IURI> list) <K,
V> Map<K, V> writableMap
(Map<K, V> map) Ensures map container is not read-only
-
Method Details
-
setCurrentTaskURI
Sets task URI on the current thread- Parameters:
taskURI
-
-
getCurrentTaskURI
IURI getCurrentTaskURI()Returns task URI from the current thread- Returns:
-
getURI
-
getURI
-
getTaskFormFlowService
ITaskFormFlowService getTaskFormFlowService()Returns singleton instance for Task Form Flow service -
getTaskService
ITaskService getTaskService() -
getTaskMonitoringService
ITaskMonitoringService getTaskMonitoringService() -
getTaskDefinitionService
ITaskDefinitionService getTaskDefinitionService() -
getTaskDistributionService
ITaskDistributionService getTaskDistributionService() -
getTaskProcessAuditService
ITaskProcessAuditService getTaskProcessAuditService() -
getTaskAuditService
ITaskAuditService getTaskAuditService() -
getLockingService
IClusterLockingService getLockingService()Returns instance of cluster locking service -
getClassLoader
Obtains task application classloader for the given taskUri- Throws:
PortalException
-
getClassLoaderIfExists
- Throws:
PortalException
-
getClassLoader
- Throws:
PortalException
-
getClassLoader
- Throws:
PortalException
-
getRulesList
List<IThingID> getRulesList(IThingID folderID, boolean nested, boolean includeNotFired) throws PortalException Returns sorted list of enabled rules from the given folder and subfolders- Parameters:
folderID
-includeNotFired
- TODO- Throws:
PortalException
-
writableMap
Ensures map container is not read-only- Parameters:
map
-- Returns:
-
getTaskRuleSet
Returns rule set value for given task- Throws:
PortalException
-
needExecuteRule
Determines whether given rule should be executed fro given task- Throws:
PortalException
-
getRuleBuilder
- Throws:
PortalException
-
getRuleMechanics
- Throws:
PortalException
-
getThingID
- Throws:
PortalException
-
getIntStatus
-
getStringStatus
-
getStatusDisplayName
-
getIntPriority
-
getPriorityDisplayName
-
getStringPriority
-
getIntOperation
-
getStringOperation
-
getOperationDisplayName
-
getStatusTitlesCSV
String getStatusTitlesCSV() -
getStatusValuesCSV
String getStatusValuesCSV() -
getPriorityTitlesCSV
String getPriorityTitlesCSV() -
getPriorityValuesCSV
String getPriorityValuesCSV() -
lookupPrincipal
- Throws:
PortalException
-
lookupPrincipal
- Throws:
PortalException
-
lookupUser
- Throws:
PortalException
-
sortAndPageList
ITaskList sortAndPageList(IThingID userID, ITaskList taskList, IPagingCookie cookie, int rights) throws PortalException - Throws:
PortalException
-
pageList
Splits the list according to the paging cookie -
getRunningDisplayName
-
stringArrayToUriList
- Throws:
PortalException
-
toString
-
stringToUriList
- Throws:
PortalException
-
uriListToStringArray
- Throws:
PortalException
-
getDisplayName
- Throws:
PortalException
-
getDisplayName
- Throws:
PortalException
-
getDisplayName
-
getTaskDefinitionByName
- Throws:
PortalException
-
getTaskMechanics
- Throws:
PortalException
-
sortPrincipalList
- Parameters:
list
- contains principal URI- Returns:
- sorted list contains unique principal URI and sorted based on user principal name (UID)
- Throws:
PortalException
Exception
-
principalName
Returns displayName for a principal- Parameters:
uri
-- Returns:
- Throws:
Exception
-
isRuleEnabled
Determines if specified rule is enabled- Parameters:
ruleID
-- Throws:
PortalException
-
getRule
- Throws:
PortalException
-
getRuleType
- Throws:
PortalException
-
convertDecisionTablesFromXml
Map<String,Map<Object, convertDecisionTablesFromXmlObject>> (Object decisionTablesXml) throws PortalException - Throws:
PortalException
-
convertDecisionTablesFromXml
Map<String,Map<Object, convertDecisionTablesFromXmlObject>> (Object decisionTablesXml, FacesContext facesContext) throws PortalException - Throws:
PortalException
-
getPrincipalsFromDecisionTable
List<IURI> getPrincipalsFromDecisionTable(Map<String, Map<Object, throws PortalExceptionObject>> paramMap) - Throws:
PortalException
-
lookupPrincipal
- Throws:
PortalException
-
getPrincipalsList
Returns list of principals uris from object- Throws:
PortalException
-
getPrincipalsList
- Throws:
PortalException
-
isRuleType
Checks if given thingID points to a Rule thing- Parameters:
ruleID
-- Returns:
-
isTaskType
Checks if given thingID is a valid task ID- Parameters:
taskID
-
-