public final class ResourceManager extends InterfaceBWebsideController
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADMIN_STR |
static boolean |
serviceInitialised |
_ibCache, _interfaceBClient, _logger, _report, engineLogonName, engineLogonPassword, XSD_ANYURI_TYPE, XSD_NAMESPACE, XSD_NCNAME_TYPE, XSD_STRINGTYPE
Modifier and Type | Method and Description |
---|---|
WorkItemRecord |
acceptOffer(Participant p,
WorkItemRecord wir) |
java.lang.String |
addChain(Participant p,
WorkItemRecord wir) |
java.lang.String |
addEventListener(java.lang.String uri) |
java.lang.String |
addExternalClient(YExternalClient client) |
java.lang.String |
addParticipant(Participant p)
Adds a new participant to the Resource DataSet, and persists it also
|
java.lang.String |
addRegisteredService(YAWLServiceReference service) |
void |
addToOfferedSet(WorkItemRecord wir,
Participant p) |
void |
announceModifiedQueue(java.lang.String pid) |
boolean |
assignUnofferedItem(WorkItemRecord wir,
java.lang.String[] pidList,
java.lang.String action) |
boolean |
canAddNewInstance(WorkItemRecord wir) |
java.lang.String |
cancelCase(java.lang.String caseID,
java.lang.String userHandle)
Cancels the case & removes its workitems (if any) from the service's queues
& caches.
|
java.lang.String |
chainCase(Participant p,
WorkItemRecord wir)
*************************************************************************
|
void |
checkInAutoTask(WorkItemRecord wir,
Element outData) |
java.lang.String |
checkinItem(Participant p,
WorkItemRecord wir)
Checks a (checked out) workitem back into the engine
|
protected java.util.List |
checkOutChildren(WorkItemRecord wir,
java.util.List children)
Checks out all the child workitems of the parent item specified
|
protected boolean |
checkOutWorkItem(WorkItemRecord wir)
Check the workitem out of the engine
|
boolean |
checkServiceConnection(java.lang.String handle) |
java.lang.String |
checkWorkItemDataAgainstSchema(WorkItemRecord wir,
Element data) |
WorkItemRecord |
createNewWorkItemInstance(java.lang.String id,
java.lang.String value) |
boolean |
deallocateWorkItem(Participant p,
WorkItemRecord wir) |
boolean |
delegateWorkItem(Participant pFrom,
Participant pTo,
WorkItemRecord wir) |
void |
deletePersistedPiledTasks(YSpecificationID specID) |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
displays a web page describing the service
|
Participant |
expireSession(java.lang.String jSessionID) |
void |
finaliseInitialisation() |
java.lang.String |
getActiveParticipantsAsXML() |
QueueSet |
getAdminQueues() |
int |
getAdminSessionCount() |
java.util.Set<ResourceMap> |
getAllResourceMaps() |
YBuildProperties |
getBuildProperties() |
ResourceMap |
getCachedResourceMap(WorkItemRecord wir) |
ResourceMap |
getCachedResourceMap(YSpecificationID specID,
java.lang.String taskID) |
ResourceCalendar |
getCalendar() |
java.util.Set<java.lang.String> |
getChainedCases(Participant p) |
java.util.List<WorkItemRecord> |
getChildren(java.lang.String parentID) |
java.util.Set<WorkItemRecord> |
getChildrenFromCache(java.lang.String parentID) |
InterfaceClients |
getClients() |
java.lang.String |
getDataSchema(java.lang.String itemID) |
java.lang.String |
getDataSchema(WorkItemRecord wir,
YSpecificationID specID) |
java.lang.String |
getDataSchema(YSpecificationID specID) |
java.lang.String |
getDecompID(WorkItemRecord wir)
get the workitem's (task) decomposition id
|
java.lang.String |
getDecompID(YSpecificationID specID,
java.lang.String taskID)
gets a task's decomposition id
|
java.util.Set<Participant> |
getDistributionSet(java.lang.String itemID) |
java.lang.String |
getEngineBuildProperties() |
WorkItemRecord |
getExecutingChild(WorkItemRecord parent) |
java.lang.String |
getFullNameForUserID(java.lang.String userID) |
static ResourceManager |
getInstance() |
java.util.Set<SpecificationData> |
getLoadedSpecs() |
org.apache.logging.log4j.Logger |
getLogger() |
java.lang.String |
getMIFormalInputParamName(WorkItemRecord wir) |
java.lang.String |
getNetParamValue(java.lang.String caseID,
java.lang.String paramName) |
ResourceDataSet |
getOrgDataSet() |
DataSource |
getOrgDataSource()
***********************************************************************
|
java.lang.String |
getOutputOnlyTaskParamsAsXML(java.lang.String itemID) |
Participant |
getParticipantAssignedWorkItem(WorkItemRecord wir,
int qType) |
Participant |
getParticipantFromUserID(java.lang.String userID) |
java.util.Set<Participant> |
getParticipantsAssignedWorkItem(java.lang.String workItemID,
int queueType) |
java.util.Set<Participant> |
getParticipantsAssignedWorkItem(WorkItemRecord wir) |
ResourceMap |
getPersistedPiledTask(YSpecificationID specID,
java.lang.String taskID) |
java.util.Set<ResourceMap> |
getPersistedPiledTasks(Participant p) |
java.util.Set<ResourceMap> |
getPiledTaskMaps(Participant p) |
ResourceMap |
getResourceMap(java.lang.String itemID) |
ResourceMap |
getResourceMap(WorkItemRecord wir) |
SecondaryResources |
getSecondaryResources(WorkItemRecord wir) |
UserPrivileges |
getSessionPrivileges(java.lang.String handle) |
SpecificationData |
getSpecData(YSpecificationID spec) |
java.util.Map<java.lang.String,Element> |
getSpecificationDataSchema(YSpecificationID specID) |
java.util.Set<SpecificationData> |
getSpecList() |
java.lang.String |
getTaskParamsAsXML(java.lang.String itemID) |
TaskPrivileges |
getTaskPrivileges(java.lang.String itemID) |
TaskPrivileges |
getTaskPrivileges(WorkItemRecord wir) |
java.util.Set<ResourceMap> |
getUnpersistedPiledTasks(Participant p) |
int |
getUserAdminSessionCount() |
java.lang.String |
getUserIDForSessionHandle(java.lang.String handle) |
QueueSet |
getUserQueueSet(java.lang.String userID) |
int |
getUserSessionCount() |
java.awt.Dimension |
getVisualiserDimension() |
java.util.Set<Participant> |
getWhoCompletedTask(java.lang.String taskID,
WorkItemRecord wir) |
java.lang.String |
getWorkItem(java.lang.String itemID) |
WorkItemCache |
getWorkItemCache() |
java.lang.String |
getWorkItemDurationsForParticipant(YSpecificationID specID,
java.lang.String taskName,
java.lang.String pid) |
java.util.Map<java.lang.String,FormParameter> |
getWorkItemParamsInfo(WorkItemRecord wir) |
WorkItemRecord |
getWorkItemRecord(java.lang.String itemID) |
void |
handleCancelledCaseEvent(java.lang.String caseID)
Receives notification from the engine that an active case has been
cancelled.
|
void |
handleCancelledWorkItemEvent(WorkItemRecord wir)
Receives notification from the engine that an active workitem has been
cancelled.
|
void |
handleCodeletCompletion(WorkItemRecord wir,
Element codeletResult) |
void |
handleCompleteCaseEvent(java.lang.String caseID,
java.lang.String casedata)
Receives notification from the engine that an active case has been
completed.
|
void |
handleDeadlockedCaseEvent(java.lang.String caseID,
java.lang.String tasks)
Receives notification from the engine that an active case has become
deadlocked.
|
void |
handleEnabledWorkItemEvent(WorkItemRecord wir)
*****************************************************************************
|
void |
handleEngineInitialisationCompletedEvent()
Receives notification from the engine that it has finished startup
initialisation and is now in a running state.
|
void |
handleNonOfferedQueueOnRemoval(WorkQueue queue) |
void |
handleOfferedQueueOnRemoval(Participant p,
WorkQueue qOffer) |
void |
handleStartCaseEvent(YSpecificationID specID,
java.lang.String caseID,
java.lang.String launchingService,
boolean delayed)
Receives notification from the engine that a case has been started.
|
void |
handleStartedQueuesOnRemoval(Participant p,
WorkQueue qStart) |
void |
handleTimerExpiryEvent(WorkItemRecord wir)
Receives notification from the engine that an active workitem's timer has
expired.
|
void |
handleWorkItemStatusChangeEvent(WorkItemRecord wir,
java.lang.String oldStatus,
java.lang.String newStatus)
Receives notification from the engine that the status of a workitem has been
modified.
|
void |
handleWorkQueueOnRemoval(WorkQueue wq) |
void |
handleWorkQueuesOnRemoval(Participant p) |
void |
handleWorkQueuesOnRemoval(Participant p,
QueueSet qs) |
boolean |
hasOrgDataSource() |
boolean |
hasUserTaskPrivilege(Participant p,
WorkItemRecord wir,
int privilege) |
void |
importParticipant(Participant p) |
void |
initBuildProperties(java.io.InputStream stream) |
void |
initOrgDataSource(java.lang.String dataSourceClassName,
int refreshRate) |
void |
initRandomOrgDataGeneration(int count) |
void |
initServices()
*****************************************************************************
|
boolean |
isActiveSession(java.lang.String jSessionID) |
boolean |
isAdminSession(java.lang.String handle) |
boolean |
isDefaultOrgDB()
**************************************************************************
|
protected boolean |
isDeferredChoiceHandled(WorkItemRecord wir) |
boolean |
isKnownUserID(java.lang.String userid) |
boolean |
isOrgDataRefreshing() |
boolean |
isPersisting() |
boolean |
isPersistPiling() |
boolean |
isSpecBetaVersion(WorkItemRecord wir) |
boolean |
isValidUserSession(java.lang.String handle) |
boolean |
isVisualiserEnabled() |
java.lang.String |
launchCase(YSpecificationID specID,
java.lang.String caseData,
java.lang.String handle) |
java.lang.String |
launchCase(YSpecificationID specID,
java.lang.String caseData,
java.lang.String handle,
java.util.Date delay) |
java.lang.String |
launchCase(YSpecificationID specID,
java.lang.String caseData,
java.lang.String handle,
javax.xml.datatype.Duration delay) |
java.lang.String |
launchCase(YSpecificationID specID,
java.lang.String caseData,
java.lang.String handle,
long delay) |
void |
loadResources()
Loads all the org data from db into the ResourceDataSet mappings
|
java.lang.String |
login(java.lang.String userid,
java.lang.String password,
java.lang.String jSessionID)
**********************
9.
|
void |
logout(java.lang.String handle) |
boolean |
mapSetContains(java.util.Set<ResourceMap> mapSet,
ResourceMap other) |
WorkItemRecord |
offerToAll(WorkItemRecord wir)
***********************************************************************
|
java.lang.String |
pileWorkItem(Participant p,
WorkItemRecord wir) |
boolean |
reallocateStatefulWorkItem(Participant pFrom,
Participant pTo,
WorkItemRecord wir) |
boolean |
reallocateStatelessWorkItem(Participant pFrom,
Participant pTo,
WorkItemRecord wir) |
void |
reassignWorklistedItem(WorkItemRecord wir,
java.lang.String[] pidList,
java.lang.String action) |
java.lang.String |
redirectWorkItemToYawlService(java.lang.String itemID,
java.lang.String serviceName)
Dispatches a work item to a YAWL Custom Service for handling.
|
void |
refreshOrgData() |
java.lang.String |
registerCalendarStatusChangeListener(java.lang.String uri,
java.lang.String handle) |
void |
registerJSFApplicationReference(ApplicationBean app) |
void |
removeCalendarStatusChangeListener(java.lang.String uri,
java.lang.String handle) |
void |
removeCalendarStatusChangeListeners(java.lang.String handle) |
void |
removeCaseFromAllQueues(java.lang.String caseID) |
void |
removeChain(java.lang.String caseID) |
boolean |
removeEventListener(java.lang.String uri) |
java.lang.String |
removeExternalClient(java.lang.String id) |
boolean |
removeFromAll(WorkItemRecord wir) |
void |
removeParticipant(Participant p) |
boolean |
removeParticipant(java.lang.String pid) |
java.lang.String |
removeRegisteredService(java.lang.String id) |
boolean |
routeChainedWorkItem(Participant p,
WorkItemRecord wir) |
boolean |
routeIfChained(WorkItemRecord wir,
java.util.Set<Participant> distributionSet) |
boolean |
routePiledWorkItem(Participant p,
WorkItemRecord wir) |
void |
sanitiseCaches()
This does final initialisation tasks involved in ensuring the caches match
the engine's known work.
|
java.lang.String |
serviceConnect(java.lang.String userid,
java.lang.String password,
long timeOutSeconds) |
void |
serviceDisconnect(java.lang.String handle) |
void |
setAllowExternalOrgDataMods(boolean allow) |
void |
setBlockOnUnavailableSecondaryResources(boolean block) |
protected void |
setDeferredChoiceHandled(WorkItemRecord wir) |
void |
setExternalUserAuthentication(boolean externalAuth) |
void |
setOrgDataRefreshing(boolean refreshing) |
void |
setPersisting(boolean flag) |
void |
setPersistPiling(boolean persist) |
static void |
setServiceInitialised() |
void |
setVisualiserDimension(java.awt.Dimension d) |
void |
setVisualiserDimension(java.lang.String s) |
void |
setVisualiserEnabled(boolean enable) |
void |
shutdown()
***************************************************************************
|
boolean |
skipWorkItem(Participant p,
WorkItemRecord wir) |
boolean |
start(Participant p,
WorkItemRecord wir)
moves the workitem to executing for the participant.
|
boolean |
startImmediate(Participant p,
WorkItemRecord wir) |
void |
startOrgDataRefreshTimer(long interval)
Starts a timer task to refresh the org data dataset at regular intervals, or turns
an existing timer off if interval < 0
|
boolean |
suspendWorkItem(Participant p,
WorkItemRecord wir) |
java.lang.String |
unloadSpecification(YSpecificationID specID) |
void |
unpersistAutoTask(WorkItemRecord wir) |
java.lang.String |
unpileTask(ResourceMap resMap,
Participant p) |
protected boolean |
unsetDeferredChoiceHandled(WorkItemRecord wir) |
boolean |
unsuspendWorkItem(Participant p,
WorkItemRecord wir) |
java.lang.String |
updateExternalClient(java.lang.String id,
java.lang.String password,
java.lang.String doco) |
void |
updateParticipant(Participant p) |
java.lang.String |
updateWorkItemData(java.lang.String itemID,
java.lang.String data) |
java.lang.String |
validateUserCredentials(java.lang.String userid,
java.lang.String password,
boolean admin) |
void |
withdrawOfferFromAll(WorkItemRecord wir) |
checkConnection, checkInWorkItem, checkInWorkItem, checkInWorkItem, checkOut, checkOutAllInstancesOfThisTask, connect, describeRequiredParams, destroy, getAuthenticationConfig, getCachedWorkItem, getChildren, getEngineStoredWorkItem, getIBCache, getModel, getResourcingSpecs, getSpecificationData, getSpecificationData, getSpecificationPrototypesList, getTaskInformation, getTaskInformation, handleCaseResumedEvent, handleCaseSuspendedEvent, handleCaseSuspendingEvent, logContactError, prepareReplyRootElement, setEngineLogonName, setEngineLogonPassword, setRemoteAuthenticationDetails, setUpInterfaceBClient, successful
public static final java.lang.String ADMIN_STR
public static boolean serviceInitialised
public static ResourceManager getInstance()
public void initServices()
public void initOrgDataSource(java.lang.String dataSourceClassName, int refreshRate)
public InterfaceClients getClients()
public void initBuildProperties(java.io.InputStream stream)
public YBuildProperties getBuildProperties()
public java.lang.String getEngineBuildProperties()
public void finaliseInitialisation()
public void setAllowExternalOrgDataMods(boolean allow)
public void setExternalUserAuthentication(boolean externalAuth)
public void setVisualiserDimension(java.lang.String s)
public void setVisualiserDimension(java.awt.Dimension d)
public java.awt.Dimension getVisualiserDimension()
public void initRandomOrgDataGeneration(int count)
public void setVisualiserEnabled(boolean enable)
public boolean isVisualiserEnabled()
public WorkItemCache getWorkItemCache()
public void registerJSFApplicationReference(ApplicationBean app)
public boolean hasOrgDataSource()
public void setOrgDataRefreshing(boolean refreshing)
public boolean isOrgDataRefreshing()
public org.apache.logging.log4j.Logger getLogger()
public ResourceCalendar getCalendar()
public java.lang.String registerCalendarStatusChangeListener(java.lang.String uri, java.lang.String handle)
public void removeCalendarStatusChangeListener(java.lang.String uri, java.lang.String handle)
public void removeCalendarStatusChangeListeners(java.lang.String handle)
public java.lang.String addEventListener(java.lang.String uri)
public boolean removeEventListener(java.lang.String uri)
public void handleEnabledWorkItemEvent(WorkItemRecord wir)
handleEnabledWorkItemEvent
in class InterfaceBWebsideController
wir
- the enabled work itempublic void handleCancelledWorkItemEvent(WorkItemRecord wir)
InterfaceBWebsideController
handleCancelledWorkItemEvent
in class InterfaceBWebsideController
wir
- the cancelled work itempublic void handleTimerExpiryEvent(WorkItemRecord wir)
InterfaceBWebsideController
handleTimerExpiryEvent
in class InterfaceBWebsideController
wir
- the workitem that has an expired timerpublic void handleCancelledCaseEvent(java.lang.String caseID)
InterfaceBWebsideController
handleCancelledCaseEvent
in class InterfaceBWebsideController
caseID
- the id of the case that has been cancelledpublic void handleDeadlockedCaseEvent(java.lang.String caseID, java.lang.String tasks)
InterfaceBWebsideController
handleDeadlockedCaseEvent
in class InterfaceBWebsideController
caseID
- the id of the case that has been cancelledtasks
- the list of deadlocked task idspublic void handleCompleteCaseEvent(java.lang.String caseID, java.lang.String casedata)
InterfaceBWebsideController
handleCompleteCaseEvent
in class InterfaceBWebsideController
caseID
- the id of the completed case.casedata
- the set of net-level data for the case when it completespublic void handleEngineInitialisationCompletedEvent()
InterfaceBWebsideController
handleEngineInitialisationCompletedEvent
in class InterfaceBWebsideController
public void handleWorkItemStatusChangeEvent(WorkItemRecord wir, java.lang.String oldStatus, java.lang.String newStatus)
InterfaceBWebsideController
handleWorkItemStatusChangeEvent
in class InterfaceBWebsideController
wir
- the work item that has had its status modifiedoldStatus
- the work item's previous statusnewStatus
- the work item's new statuspublic void handleStartCaseEvent(YSpecificationID specID, java.lang.String caseID, java.lang.String launchingService, boolean delayed)
InterfaceBWebsideController
handleStartCaseEvent
in class InterfaceBWebsideController
specID
- the specification id of the started casecaseID
- the id of the caselaunchingService
- the uri (String) of the service that started the casedelayed
- true if this is a delayed case start, false if immediatepublic void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
doGet
in class InterfaceBWebsideController
request
- the requestresponse
- the response.java.io.IOException
- if an error is detected when the servlet handles the GET requestjavax.servlet.ServletException
- if the request for the GET could not be handledpublic boolean isDefaultOrgDB()
public ResourceDataSet getOrgDataSet()
public void loadResources()
public void refreshOrgData()
public void sanitiseCaches()
public boolean isKnownUserID(java.lang.String userid)
public java.lang.String addParticipant(Participant p)
p
- the new Participantpublic void importParticipant(Participant p)
public void updateParticipant(Participant p)
public void removeParticipant(Participant p)
public boolean removeParticipant(java.lang.String pid)
public java.lang.String getActiveParticipantsAsXML()
public Participant getParticipantFromUserID(java.lang.String userID)
public QueueSet getUserQueueSet(java.lang.String userID)
public java.util.Set<Participant> getParticipantsAssignedWorkItem(java.lang.String workItemID, int queueType)
public java.util.Set<Participant> getParticipantsAssignedWorkItem(WorkItemRecord wir)
public Participant getParticipantAssignedWorkItem(WorkItemRecord wir, int qType)
public java.lang.String getFullNameForUserID(java.lang.String userID)
public WorkItemRecord offerToAll(WorkItemRecord wir)
public void withdrawOfferFromAll(WorkItemRecord wir)
public boolean removeFromAll(WorkItemRecord wir)
public void removeCaseFromAllQueues(java.lang.String caseID)
public QueueSet getAdminQueues()
public WorkItemRecord acceptOffer(Participant p, WorkItemRecord wir)
protected void setDeferredChoiceHandled(WorkItemRecord wir)
protected boolean unsetDeferredChoiceHandled(WorkItemRecord wir)
protected boolean isDeferredChoiceHandled(WorkItemRecord wir)
public void handleWorkQueuesOnRemoval(Participant p)
public void handleWorkQueuesOnRemoval(Participant p, QueueSet qs)
public void handleWorkQueueOnRemoval(WorkQueue wq)
public void handleOfferedQueueOnRemoval(Participant p, WorkQueue qOffer)
public void handleNonOfferedQueueOnRemoval(WorkQueue queue)
public void handleStartedQueuesOnRemoval(Participant p, WorkQueue qStart)
public boolean start(Participant p, WorkItemRecord wir)
p
- the participant starting the workitemwir
- the item to startpublic boolean suspendWorkItem(Participant p, WorkItemRecord wir)
public boolean unsuspendWorkItem(Participant p, WorkItemRecord wir)
public boolean reallocateStatelessWorkItem(Participant pFrom, Participant pTo, WorkItemRecord wir)
public boolean reallocateStatefulWorkItem(Participant pFrom, Participant pTo, WorkItemRecord wir)
public boolean deallocateWorkItem(Participant p, WorkItemRecord wir)
public boolean delegateWorkItem(Participant pFrom, Participant pTo, WorkItemRecord wir)
public boolean skipWorkItem(Participant p, WorkItemRecord wir)
public java.lang.String pileWorkItem(Participant p, WorkItemRecord wir)
public java.lang.String unpileTask(ResourceMap resMap, Participant p)
public boolean routePiledWorkItem(Participant p, WorkItemRecord wir)
public boolean startImmediate(Participant p, WorkItemRecord wir)
public boolean hasUserTaskPrivilege(Participant p, WorkItemRecord wir, int privilege)
public TaskPrivileges getTaskPrivileges(java.lang.String itemID)
public TaskPrivileges getTaskPrivileges(WorkItemRecord wir)
public java.lang.String getWorkItem(java.lang.String itemID)
public WorkItemRecord getWorkItemRecord(java.lang.String itemID)
public java.lang.String updateWorkItemData(java.lang.String itemID, java.lang.String data)
public java.lang.String checkWorkItemDataAgainstSchema(WorkItemRecord wir, Element data)
public java.lang.String chainCase(Participant p, WorkItemRecord wir)
public boolean routeChainedWorkItem(Participant p, WorkItemRecord wir)
public java.lang.String addChain(Participant p, WorkItemRecord wir)
public void removeChain(java.lang.String caseID)
public java.util.Set<java.lang.String> getChainedCases(Participant p)
public boolean routeIfChained(WorkItemRecord wir, java.util.Set<Participant> distributionSet)
public java.util.Set<ResourceMap> getPiledTaskMaps(Participant p)
public java.util.Set<ResourceMap> getUnpersistedPiledTasks(Participant p)
public java.util.Set<ResourceMap> getPersistedPiledTasks(Participant p)
public ResourceMap getPersistedPiledTask(YSpecificationID specID, java.lang.String taskID)
public void deletePersistedPiledTasks(YSpecificationID specID)
public boolean mapSetContains(java.util.Set<ResourceMap> mapSet, ResourceMap other)
public java.util.Set<ResourceMap> getAllResourceMaps()
public DataSource getOrgDataSource()
public void setPersisting(boolean flag)
public boolean isPersisting()
public void startOrgDataRefreshTimer(long interval)
interval
- the number of minutes between each refreshpublic void setPersistPiling(boolean persist)
public boolean isPersistPiling()
public void setBlockOnUnavailableSecondaryResources(boolean block)
public java.util.Set<Participant> getDistributionSet(java.lang.String itemID)
public ResourceMap getResourceMap(java.lang.String itemID)
public ResourceMap getCachedResourceMap(WorkItemRecord wir)
public ResourceMap getCachedResourceMap(YSpecificationID specID, java.lang.String taskID)
public ResourceMap getResourceMap(WorkItemRecord wir)
public static void setServiceInitialised()
public java.util.Set<Participant> getWhoCompletedTask(java.lang.String taskID, WorkItemRecord wir)
public java.lang.String getDecompID(WorkItemRecord wir)
wir
- - the workitem to get the decomp id forpublic java.lang.String getDecompID(YSpecificationID specID, java.lang.String taskID)
specID
- the specification idtaskID
- the task's idprotected boolean checkOutWorkItem(WorkItemRecord wir)
wir
- - the workitem to check outpublic java.lang.String checkinItem(Participant p, WorkItemRecord wir)
p
- - the participant checking in the itemwir
- - workitem to check into the enginepublic SecondaryResources getSecondaryResources(WorkItemRecord wir)
protected java.util.List checkOutChildren(WorkItemRecord wir, java.util.List children)
wir
- - the parent wir objectpublic WorkItemRecord getExecutingChild(WorkItemRecord parent)
public java.lang.String login(java.lang.String userid, java.lang.String password, java.lang.String jSessionID)
public void logout(java.lang.String handle)
public boolean isValidUserSession(java.lang.String handle)
public boolean isAdminSession(java.lang.String handle)
public UserPrivileges getSessionPrivileges(java.lang.String handle)
public java.lang.String validateUserCredentials(java.lang.String userid, java.lang.String password, boolean admin)
public Participant expireSession(java.lang.String jSessionID)
public boolean isActiveSession(java.lang.String jSessionID)
public int getUserSessionCount()
public int getAdminSessionCount()
public int getUserAdminSessionCount()
public void shutdown()
public java.lang.String serviceConnect(java.lang.String userid, java.lang.String password, long timeOutSeconds)
public void serviceDisconnect(java.lang.String handle)
public boolean checkServiceConnection(java.lang.String handle)
public java.lang.String getUserIDForSessionHandle(java.lang.String handle)
public java.util.Set<SpecificationData> getLoadedSpecs()
public java.util.Set<SpecificationData> getSpecList()
public SpecificationData getSpecData(YSpecificationID spec)
public boolean isSpecBetaVersion(WorkItemRecord wir)
public java.lang.String cancelCase(java.lang.String caseID, java.lang.String userHandle) throws java.io.IOException
caseID
- the case to canceljava.io.IOException
- if there's trouble talking to the enginepublic java.util.List<WorkItemRecord> getChildren(java.lang.String parentID)
public java.util.Set<WorkItemRecord> getChildrenFromCache(java.lang.String parentID)
public java.lang.String unloadSpecification(YSpecificationID specID) throws java.io.IOException
java.io.IOException
public java.lang.String launchCase(YSpecificationID specID, java.lang.String caseData, java.lang.String handle) throws java.io.IOException
java.io.IOException
public java.lang.String launchCase(YSpecificationID specID, java.lang.String caseData, java.lang.String handle, long delay) throws java.io.IOException
java.io.IOException
public java.lang.String launchCase(YSpecificationID specID, java.lang.String caseData, java.lang.String handle, java.util.Date delay) throws java.io.IOException
java.io.IOException
public java.lang.String launchCase(YSpecificationID specID, java.lang.String caseData, java.lang.String handle, javax.xml.datatype.Duration delay) throws java.io.IOException
java.io.IOException
public java.lang.String getTaskParamsAsXML(java.lang.String itemID) throws java.io.IOException
java.io.IOException
public java.lang.String getOutputOnlyTaskParamsAsXML(java.lang.String itemID)
public java.util.Map<java.lang.String,FormParameter> getWorkItemParamsInfo(WorkItemRecord wir) throws java.io.IOException, JDOMException
java.io.IOException
JDOMException
public void announceModifiedQueue(java.lang.String pid)
public java.lang.String addRegisteredService(YAWLServiceReference service) throws java.io.IOException
java.io.IOException
public java.lang.String removeRegisteredService(java.lang.String id) throws java.io.IOException
java.io.IOException
public java.lang.String addExternalClient(YExternalClient client) throws java.io.IOException
java.io.IOException
public java.lang.String removeExternalClient(java.lang.String id) throws java.io.IOException
java.io.IOException
public java.lang.String updateExternalClient(java.lang.String id, java.lang.String password, java.lang.String doco) throws java.io.IOException
java.io.IOException
public java.lang.String getNetParamValue(java.lang.String caseID, java.lang.String paramName) throws java.io.IOException
java.io.IOException
public java.lang.String getDataSchema(YSpecificationID specID)
public java.lang.String getDataSchema(java.lang.String itemID)
public java.lang.String getDataSchema(WorkItemRecord wir, YSpecificationID specID)
public java.util.Map<java.lang.String,Element> getSpecificationDataSchema(YSpecificationID specID) throws java.io.IOException
java.io.IOException
public boolean assignUnofferedItem(WorkItemRecord wir, java.lang.String[] pidList, java.lang.String action)
public void addToOfferedSet(WorkItemRecord wir, Participant p)
public void reassignWorklistedItem(WorkItemRecord wir, java.lang.String[] pidList, java.lang.String action)
public void unpersistAutoTask(WorkItemRecord wir)
public void handleCodeletCompletion(WorkItemRecord wir, Element codeletResult)
public void checkInAutoTask(WorkItemRecord wir, Element outData)
public java.lang.String getMIFormalInputParamName(WorkItemRecord wir)
public boolean canAddNewInstance(WorkItemRecord wir)
public WorkItemRecord createNewWorkItemInstance(java.lang.String id, java.lang.String value)
public java.lang.String getWorkItemDurationsForParticipant(YSpecificationID specID, java.lang.String taskName, java.lang.String pid)
public java.lang.String redirectWorkItemToYawlService(java.lang.String itemID, java.lang.String serviceName)
itemID
- the id of the work to be redirected.serviceName
- the name of the service to redirect it toCopyright © 2004-2014 The YAWL Foundation.