public class CostService extends java.lang.Object implements InterfaceX_Service
Modifier and Type | Method and Description |
---|---|
double |
calculate(YSpecificationID specID,
java.lang.String caseID,
java.lang.String predicate) |
java.lang.String |
clearModels(YSpecificationID specID) |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
boolean |
evaluate(YSpecificationID specID,
java.lang.String caseID,
java.lang.String predicate) |
java.lang.String |
exportModel(YSpecificationID specID,
java.lang.String modelID) |
java.lang.String |
exportModels(YSpecificationID specID) |
java.lang.String |
getAnnotatedLog(YSpecificationID specID,
boolean withData) |
static CostService |
getInstance() |
CostModel |
getModel(YSpecificationID specID,
java.lang.String modelID) |
CostModelCache |
getModelCache(java.lang.String specURI,
java.lang.String version) |
CostModelCache |
getModelCache(YSpecificationID specID) |
java.util.Set<CostModel> |
getModels(java.lang.String specURI,
java.lang.String version) |
java.util.Set<CostModel> |
getModels(YSpecificationID specID) |
void |
handleCaseCancellationEvent(java.lang.String caseID) |
void |
handleCheckCaseConstraintEvent(YSpecificationID specID,
java.lang.String caseID,
java.lang.String data,
boolean precheck)
****************************************************************************
|
void |
handleCheckWorkItemConstraintEvent(WorkItemRecord wir,
java.lang.String data,
boolean precheck) |
java.lang.String |
handleConstraintViolationException(WorkItemRecord wir,
java.lang.String caseData) |
void |
handleResourceUnavailableException(java.lang.String resourceID,
WorkItemRecord wir,
java.lang.String caseData,
boolean primary) |
void |
handleTimeoutEvent(WorkItemRecord wir,
java.lang.String taskList) |
java.lang.String |
handleWorkItemAbortException(WorkItemRecord wir,
java.lang.String caseData)
************************************************************************************
|
java.lang.String |
importModel(java.lang.String costModel) |
java.lang.String |
importModel(XNode costModel) |
java.lang.String |
importModels(java.lang.String costModels) |
java.lang.String |
importModels(XNode costModels) |
java.lang.String |
removeModel(CostModel model) |
java.lang.String |
removeModel(CostModel model,
CostModelCache cache) |
java.lang.String |
removeModel(YSpecificationID specID,
java.lang.String modelID) |
java.util.Set<java.lang.String> |
resolveResources(java.lang.String resourceID)
Resolves an id to a set of participant ids
|
void |
setEngineLogonName(java.lang.String name) |
void |
setEngineLogonPassword(java.lang.String password) |
void |
setEngineLogURI(java.lang.String uri) |
void |
setInterfaceXBackend(java.lang.String uri) |
void |
setResourceLogURI(java.lang.String uri) |
void |
setResourceOrgDataURI(java.lang.String uri) |
void |
setXSDPath(java.net.URL xsdPath) |
void |
shutdown() |
public static CostService getInstance()
public void shutdown()
public void setInterfaceXBackend(java.lang.String uri)
public void setEngineLogURI(java.lang.String uri)
public void setResourceLogURI(java.lang.String uri)
public void setResourceOrgDataURI(java.lang.String uri)
public void setEngineLogonName(java.lang.String name)
public void setEngineLogonPassword(java.lang.String password)
public void setXSDPath(java.net.URL xsdPath)
public java.lang.String importModel(java.lang.String costModel)
public java.lang.String importModels(java.lang.String costModels)
public java.lang.String importModel(XNode costModel)
public java.lang.String importModels(XNode costModels)
public java.lang.String exportModels(YSpecificationID specID)
public java.lang.String exportModel(YSpecificationID specID, java.lang.String modelID)
public CostModelCache getModelCache(YSpecificationID specID)
public CostModelCache getModelCache(java.lang.String specURI, java.lang.String version)
public java.util.Set<CostModel> getModels(YSpecificationID specID)
public CostModel getModel(YSpecificationID specID, java.lang.String modelID)
public java.lang.String removeModel(YSpecificationID specID, java.lang.String modelID)
public java.lang.String clearModels(YSpecificationID specID)
public java.lang.String removeModel(CostModel model)
public java.lang.String removeModel(CostModel model, CostModelCache cache)
public java.util.Set<CostModel> getModels(java.lang.String specURI, java.lang.String version)
public java.lang.String getAnnotatedLog(YSpecificationID specID, boolean withData)
public boolean evaluate(YSpecificationID specID, java.lang.String caseID, java.lang.String predicate)
public double calculate(YSpecificationID specID, java.lang.String caseID, java.lang.String predicate)
public java.util.Set<java.lang.String> resolveResources(java.lang.String resourceID)
resourceID
- can be the id of a Participant, Role, Position, Capability or
OrgGrouppublic void handleCheckCaseConstraintEvent(YSpecificationID specID, java.lang.String caseID, java.lang.String data, boolean precheck)
handleCheckCaseConstraintEvent
in interface InterfaceX_Service
public void handleCheckWorkItemConstraintEvent(WorkItemRecord wir, java.lang.String data, boolean precheck)
handleCheckWorkItemConstraintEvent
in interface InterfaceX_Service
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
doGet
in interface InterfaceX_Service
java.io.IOException
javax.servlet.ServletException
public java.lang.String handleWorkItemAbortException(WorkItemRecord wir, java.lang.String caseData)
handleWorkItemAbortException
in interface InterfaceX_Service
public void handleTimeoutEvent(WorkItemRecord wir, java.lang.String taskList)
handleTimeoutEvent
in interface InterfaceX_Service
public java.lang.String handleConstraintViolationException(WorkItemRecord wir, java.lang.String caseData)
handleConstraintViolationException
in interface InterfaceX_Service
public void handleCaseCancellationEvent(java.lang.String caseID)
handleCaseCancellationEvent
in interface InterfaceX_Service
public void handleResourceUnavailableException(java.lang.String resourceID, WorkItemRecord wir, java.lang.String caseData, boolean primary)
handleResourceUnavailableException
in interface InterfaceX_Service
Copyright © 2004-2014 The YAWL Foundation.