org.yawlfoundation.yawl.cost
Class CostService

java.lang.Object
  extended by org.yawlfoundation.yawl.cost.CostService
All Implemented Interfaces:
InterfaceX_Service

public class CostService
extends Object
implements InterfaceX_Service

Author:
Michael Adams
Created/Last Date:
3/10/11

Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 String getAnnotatedLog(YSpecificationID specID, boolean withData)
           
static CostService getInstance()
           
 CostModel getModel(YSpecificationID specID, String modelID)
           
 CostModelCache getModelCache(String specURI, String version)
           
 CostModelCache getModelCache(YSpecificationID specID)
           
 Set<CostModel> getModels(String specURI, String version)
           
 Set<CostModel> getModels(YSpecificationID specID)
           
 void handleCaseCancellationEvent(String caseID)
           
 void handleCheckCaseConstraintEvent(YSpecificationID specID, String caseID, String data, boolean precheck)
           
 void handleCheckWorkItemConstraintEvent(WorkItemRecord wir, String data, boolean precheck)
           
 String handleConstraintViolationException(WorkItemRecord wir, String caseData)
           
 void handleResourceUnavailableException(String resourceID, WorkItemRecord wir, String caseData, boolean primary)
           
 void handleTimeoutEvent(WorkItemRecord wir, String taskList)
           
 String handleWorkItemAbortException(WorkItemRecord wir, String caseData)
           
 String importModel(String costModel)
           
 String importModel(XNode costModel)
           
 boolean removeModel(CostModel model)
           
 boolean removeModel(CostModel model, CostModelCache cache)
           
 boolean removeModel(YSpecificationID specID, String modelID)
           
 Set<String> resolveResources(String resourceID)
          Resolves an id to a set of participant ids
 void setEngineLogonName(String name)
           
 void setEngineLogonPassword(String password)
           
 void setInterfaceXBackend(String uri)
           
 void setResourceLogURI(String uri)
           
 void setResourceOrgDataURI(String uri)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CostService getInstance()

shutdown

public void shutdown()

setInterfaceXBackend

public void setInterfaceXBackend(String uri)

setResourceLogURI

public void setResourceLogURI(String uri)

setResourceOrgDataURI

public void setResourceOrgDataURI(String uri)

setEngineLogonName

public void setEngineLogonName(String name)

setEngineLogonPassword

public void setEngineLogonPassword(String password)

importModel

public String importModel(String costModel)

importModel

public String importModel(XNode costModel)

getModelCache

public CostModelCache getModelCache(YSpecificationID specID)

getModelCache

public CostModelCache getModelCache(String specURI,
                                    String version)

getModels

public Set<CostModel> getModels(YSpecificationID specID)

getModel

public CostModel getModel(YSpecificationID specID,
                          String modelID)

removeModel

public boolean removeModel(YSpecificationID specID,
                           String modelID)

removeModel

public boolean removeModel(CostModel model)

removeModel

public boolean removeModel(CostModel model,
                           CostModelCache cache)

getModels

public Set<CostModel> getModels(String specURI,
                                String version)

getAnnotatedLog

public String getAnnotatedLog(YSpecificationID specID,
                              boolean withData)

resolveResources

public Set<String> resolveResources(String resourceID)
Resolves an id to a set of participant ids

Parameters:
resourceID - can be the id of a Participant, Role, Position, Capability or OrgGroup
Returns:
the set of Participant ID's referenced

handleCheckCaseConstraintEvent

public void handleCheckCaseConstraintEvent(YSpecificationID specID,
                                           String caseID,
                                           String data,
                                           boolean precheck)
Specified by:
handleCheckCaseConstraintEvent in interface InterfaceX_Service

handleCheckWorkItemConstraintEvent

public void handleCheckWorkItemConstraintEvent(WorkItemRecord wir,
                                               String data,
                                               boolean precheck)
Specified by:
handleCheckWorkItemConstraintEvent in interface InterfaceX_Service

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws IOException,
                  javax.servlet.ServletException
Specified by:
doGet in interface InterfaceX_Service
Throws:
IOException
javax.servlet.ServletException

handleWorkItemAbortException

public String handleWorkItemAbortException(WorkItemRecord wir,
                                           String caseData)
Specified by:
handleWorkItemAbortException in interface InterfaceX_Service

handleTimeoutEvent

public void handleTimeoutEvent(WorkItemRecord wir,
                               String taskList)
Specified by:
handleTimeoutEvent in interface InterfaceX_Service

handleConstraintViolationException

public String handleConstraintViolationException(WorkItemRecord wir,
                                                 String caseData)
Specified by:
handleConstraintViolationException in interface InterfaceX_Service

handleCaseCancellationEvent

public void handleCaseCancellationEvent(String caseID)
Specified by:
handleCaseCancellationEvent in interface InterfaceX_Service

handleResourceUnavailableException

public void handleResourceUnavailableException(String resourceID,
                                               WorkItemRecord wir,
                                               String caseData,
                                               boolean primary)
Specified by:
handleResourceUnavailableException in interface InterfaceX_Service


Copyright © 2004-2012 The YAWL Foundation.