public class SchedulingService extends Service
_cancelledWorkitemOrCaseIds, _config, _dataMapper, _handle, _props
_ibCache, _interfaceBClient, _logger, _report, engineLogonName, engineLogonPassword, XSD_ANYURI_TYPE, XSD_NAMESPACE, XSD_NCNAME_TYPE, XSD_STRINGTYPE
ADDRESS_TYPE_EMAIL, ADDRESS_TYPE_IP, ADDRESS_TYPE_SMS, CSS_BOOLEANINPUT, CSS_DATEINPUT, CSS_DURATIONINPUT, CSS_ERRORINPUT, CSS_ERRORTEXT, CSS_INTINPUT, CSS_REQUIRED, CSS_TEXTINPUT, CSS_WARNINGINPUT, CSS_WARNINGTEXT, CSV_DELIMITER, DELIMITER, LANGUAGE_ATTRIBUTE_NAME, LANGUAGE_DEFAULT, LANGUAGES, MSGREL_AFTER, MSGREL_BEFORE, RESOURCE_STATUS_AVAILABLE, RESOURCE_STATUS_NOTAVAILABLE, RESOURCE_STATUS_REQUESTED, RESOURCE_STATUS_RESERVED, RESOURCE_STATUS_UNCHECKED, RESOURCE_STATUS_UNKNOWN, UTILISATION_TYPE_BEGIN, UTILISATION_TYPE_END, UTILISATION_TYPE_PLAN, WORD_SEPARATORS, XML_ACTIVITY, XML_ACTIVITYNAME, XML_ACTIVITYTYPE, XML_ADDRESS, XML_ADDRESSTYPE, XML_CAPABILITY, XML_CASEID, XML_CATEGORY, XML_CHANNEL, XML_DUMMY, XML_DURATION, XML_ENDTASKID, XML_ERROR, XML_EVENT_RECEIVE, XML_FILTERMODEL, XML_FROM, XML_ID, XML_MAX, XML_MESSAGE_SEND, XML_MESSAGEPUSH_SEND, XML_MESSAGES, XML_MIN, XML_MSGBODY, XML_MSGDURATION, XML_MSGREL, XML_MSGTO, XML_MSGTRANSFER, XML_MSGUTILISATIONTYPE, XML_OTHERACTIVITYNAME, XML_OTHERUTILISATIONTYPE, XML_PAYLOAD, XML_REQUESTTYPE, XML_RESCHEDULING, XML_RESERVATION, XML_RESERVATIONID, XML_RESOURCE, XML_RESOURCE_TYPE, XML_ROLE, XML_RUP, XML_RUP_LIGHT, XML_STARTTASKID, XML_STATUS, XML_STATUSTOBE, XML_SUBCATEGORY, XML_TEXT, XML_THISUTILISATIONTYPE, XML_TIMESTAMP, XML_TO, XML_UNIT, XML_UTILISATION, XML_UTILISATION_TYPE, XML_UTILISATIONREL, XML_UTILISATIONTYPE, XML_WARNING, XML_WORKLOAD, XSDDatatypes_Boolean, XSDDatatypes_DateTime, XSDDatatypes_Double, XSDDatatypes_Duration, XSDDatatypes_Int, XSDDatatypes_Long, XSDDatatypes_String
Modifier and Type | Method and Description |
---|---|
void |
activityStatusChange(java.lang.String caseId,
java.lang.String activityName,
java.lang.String from,
java.lang.String to)
call from rescheduling task in yawl engine if rescheduling of an activity
was made
|
void |
checkRelations(Document rup)
check utilisation relations of rup
|
void |
completeRupFromHistory(Document rup,
java.util.Set<java.lang.String> addedActivitiyNames)
completes a rup with historical data of rups with same ActivityType, but
only for new added activities and if data fields are empty yet
|
void |
extendRUPFromYAWLModel(Document doc,
java.util.Set<java.lang.String> addedActivityNames)
adds new activities from YAWL model specification to document in right
order, e.g.
|
java.util.List<java.lang.String> |
getActivityTypes(java.lang.String activityName,
java.lang.String newValue)
retrieve a list of all activity types for showing in configuration
dropdown boxes of custom form
|
java.util.Set<java.lang.String> |
getDiffActivityNames(Element e1,
Element e2)
get activity names of e2 which are not in e1
|
static SchedulingService |
getInstance() |
java.lang.String |
getLastSaveMsg() |
long |
getLastSaveTime() |
java.util.List<Document> |
getRupList(java.util.List<Case> cases) |
void |
handleCancelledCaseEvent(java.lang.String caseID)
Receives notification from the engine that an active case has been
cancelled.
|
void |
handleCompleteCaseEvent(java.lang.String caseID,
java.lang.String casedata)
Receives notification from the engine that an active case has been
completed.
|
void |
handleEngineInitialisationCompletedEvent()
the SS and the RS will get the event at the same time, so the SS will need to delay the call
to the RS by 10 seconds while the RS gets the credentials from the engine
|
Case |
loadCase(java.lang.String caseId) |
java.util.List<Element> |
loadReservations(java.lang.String caseId,
java.lang.String activityName)
resource service retrieves reservations for given case and task to utilise
them
|
java.util.Set<java.lang.String> |
optimizeAndSaveRup(Document rup,
java.lang.String savedBy,
java.lang.String errorMsg,
boolean resourceChange)
TODO@tbe: was wenn RUP gerade angezeigt/konfiguriert wird?
|
void |
processCachedMappingsTask()
**************************************************************************************
task methods and inner classes
***************************************************************************************
|
protected void |
processMappingChild(Mapping mapping)
process work item depending on task type check back into the engine remove
the mapping for successful processed work items updates the mapping
continuously
|
void |
registerMessageReceiveServlet()
Register the MessageReceiveServlet with the Resource Service TODO@tbe:
better to use our own IP and figure out the port number
|
void |
reservationStatusChange(java.lang.String caseId,
java.lang.String activityName,
java.lang.Long reservationId,
java.lang.String statusNew)
call from resource service about unavailabilities of resources (if Admin
change availability of resource and PLANNING_STATUS was changed to
PLANNING_STATUS_NOTAVAILABLE)
|
void |
resourceUtilisationChange(java.lang.String taskID,
java.lang.String caseId,
java.lang.String activityName,
java.lang.String utilisationType,
java.lang.String timeStampXML)
call from utilisation task in yawl engine if (de)utilisation for all
resources of an activity have to made
|
void |
saveRupToDatabase(java.lang.String caseId,
java.lang.String savedBy,
Document rup,
java.lang.String msg) |
void |
sendPushMessage(java.lang.String address,
java.lang.String addressType,
java.lang.String msg,
java.lang.String caseId) |
void |
startMessageTransfers(java.lang.String caseId,
Document rup)
extract message transfers from rup and find/create job group for this rup
and update/create job for each message transfer item
|
void |
updateRunningRups(java.lang.String savedBy)
call from JobRUPCheck, sets TO time of running activities to actual time
and calculate new DURATION value
|
checkInWorkItem, checkOutWorkItem, getChildren, getDataListFromWorkItem, getHandle, getOutputData, getSpecificationForCase, getWorkItemFromCache, handleCancelledWorkItemEvent, handleEnabledWorkItemEvent, isCancelledWorkitem, processMapping, sort
checkConnection, checkInWorkItem, checkInWorkItem, checkInWorkItem, checkOut, checkOutAllInstancesOfThisTask, connect, describeRequiredParams, destroy, doGet, getAuthenticationConfig, getCachedWorkItem, getChildren, getEngineStoredWorkItem, getIBCache, getModel, getResourcingSpecs, getSpecificationData, getSpecificationData, getSpecificationPrototypesList, getTaskInformation, getTaskInformation, handleCaseResumedEvent, handleCaseSuspendedEvent, handleCaseSuspendingEvent, handleDeadlockedCaseEvent, handleStartCaseEvent, handleTimerExpiryEvent, handleWorkItemStatusChangeEvent, logContactError, prepareReplyRootElement, setEngineLogonName, setEngineLogonPassword, setRemoteAuthenticationDetails, setUpInterfaceBClient, successful
public static SchedulingService getInstance()
public long getLastSaveTime()
public java.lang.String getLastSaveMsg()
protected void processMappingChild(Mapping mapping) throws java.lang.Exception
processMappingChild
in class Service
mapping
- : contained work item is childjava.lang.Exception
public void handleCancelledCaseEvent(java.lang.String caseID)
InterfaceBWebsideController
handleCancelledCaseEvent
in class Service
caseID
- the id of the case that has been cancelledpublic void handleCompleteCaseEvent(java.lang.String caseID, java.lang.String casedata)
InterfaceBWebsideController
handleCompleteCaseEvent
in class Service
caseID
- the id of the completed case.casedata
- the set of net-level data for the case when it completespublic void checkRelations(Document rup) throws JDOMException
rup
- JDOMException
public void saveRupToDatabase(java.lang.String caseId, java.lang.String savedBy, Document rup, java.lang.String msg) throws JDOMException, java.sql.SQLException, java.io.IOException
caseId
- savedBy
- rup
- JDOMException
java.sql.SQLException
java.io.IOException
public Case loadCase(java.lang.String caseId) throws java.sql.SQLException
java.sql.SQLException
public void extendRUPFromYAWLModel(Document doc, java.util.Set<java.lang.String> addedActivityNames) throws java.lang.Exception
doc
- java.lang.Exception
public java.util.Set<java.lang.String> getDiffActivityNames(Element e1, Element e2)
e1
- e2
- public void completeRupFromHistory(Document rup, java.util.Set<java.lang.String> addedActivitiyNames)
rup
- addedActivitiyNames
- public java.util.List<Element> loadReservations(java.lang.String caseId, java.lang.String activityName) throws SchedulingException
caseId
- activityName
- SchedulingException
public void activityStatusChange(java.lang.String caseId, java.lang.String activityName, java.lang.String from, java.lang.String to) throws SchedulingException
SchedulingException
public void resourceUtilisationChange(java.lang.String taskID, java.lang.String caseId, java.lang.String activityName, java.lang.String utilisationType, java.lang.String timeStampXML) throws SchedulingException
timeStampXML
- yyyy-MM-ddTHH:mm:ss.SSSSchedulingException
public void reservationStatusChange(java.lang.String caseId, java.lang.String activityName, java.lang.Long reservationId, java.lang.String statusNew)
public void updateRunningRups(java.lang.String savedBy) throws java.lang.Exception
java.lang.Exception
public java.util.Set<java.lang.String> optimizeAndSaveRup(Document rup, java.lang.String savedBy, java.lang.String errorMsg, boolean resourceChange) throws java.lang.Exception
rup
- errorMsg
- java.lang.Exception
public void sendPushMessage(java.lang.String address, java.lang.String addressType, java.lang.String msg, java.lang.String caseId)
public void handleEngineInitialisationCompletedEvent()
Service
handleEngineInitialisationCompletedEvent
in class Service
public void registerMessageReceiveServlet()
public java.util.List<java.lang.String> getActivityTypes(java.lang.String activityName, java.lang.String newValue) throws ResourceGatewayException, java.io.IOException
YAWLException
ResourceGatewayException
java.io.IOException
public void startMessageTransfers(java.lang.String caseId, Document rup)
rup
- public void processCachedMappingsTask()
Copyright © 2004-2014 The YAWL Foundation.