public abstract class Service extends InterfaceBWebsideController implements Constants
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<java.lang.String> |
_cancelledWorkitemOrCaseIds |
ConfigManager |
_config |
protected DataMapper |
_dataMapper |
protected java.lang.String |
_handle |
protected PropertyReader |
_props |
_ibCache, _interfaceBClient, _logger, _report, engineLogonName, engineLogonPassword, XSD_ANYURI_TYPE, XSD_NAMESPACE, XSD_NCNAME_TYPE, XSD_STRINGTYPEADDRESS_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| Constructor and Description |
|---|
Service()
will be started by:
- engine, because its defined in web.xml
- static block
- JCouplingImporter
throws JCouplingServiceDAOException
throws SimpleDAOException
throws TransferException
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkInWorkItem(Mapping mapping,
java.lang.String payload)
TODO@tbe: validate payload before to avoid that work item failed if payload is invalid
|
protected void |
checkOutWorkItem(Mapping mapping)
Check the work item out of the engine
InterfaceBWebsideController.checkOut() adds work item with ID=wirID to workItemCache
|
protected java.util.List<WorkItemRecord> |
getChildren(java.lang.String workItemID)
ermittelt Children eines Parent-WorkItems, dieses muss dazu bereits ausgecheckt sein
|
protected Element |
getDataListFromWorkItem(Mapping mapping) |
protected java.lang.String |
getHandle()
checks if there is a valid connection to the engine, and if there isn't, attempts to connect
|
protected Element |
getOutputData(java.lang.String data) |
Element |
getSpecificationForCase(java.lang.String caseId) |
protected WorkItemRecord |
getWorkItemFromCache(Mapping mapping)
re-adds checkedout item to local cache after a restore (if required)
|
void |
handleCancelledCaseEvent(java.lang.String caseID)
Receives notification from the engine that an active case has been
cancelled.
|
void |
handleCancelledWorkItemEvent(WorkItemRecord workItemRecord)
********** inherited by InterfaceBWebsideController *************
Removes (if necessary) the work items from the YAWL Engine
|
void |
handleCompleteCaseEvent(java.lang.String caseID,
java.lang.String casedata)
Receives notification from the engine that an active case has been
completed.
|
void |
handleEnabledWorkItemEvent(WorkItemRecord wirParent)
********** inherited by InterfaceBWebsideController *************
receives messages and requests from YAWL work items
Saves or updates a mapping to the database for recovery of failed YAWL requests
|
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
|
protected boolean |
isCancelledWorkitem(java.lang.String wirID) |
protected void |
processMapping(Mapping mapping)
checkout parent work item from YAWL engine
get children work items, cache them, process them
check parent back into the engine
remove the mapping for successful processed parent work items
updates the mapping continuously
|
protected abstract void |
processMappingChild(Mapping mapping) |
protected void |
sort(java.util.List<Mapping> mappings)
sort mappings by workItemId ascending
|
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, successfulprotected java.util.Set<java.lang.String> _cancelledWorkitemOrCaseIds
protected DataMapper _dataMapper
protected java.lang.String _handle
protected PropertyReader _props
public ConfigManager _config
public Service()
protected abstract void processMappingChild(Mapping mapping) throws java.lang.Exception
java.lang.Exceptionpublic void handleEnabledWorkItemEvent(WorkItemRecord wirParent)
handleEnabledWorkItemEvent in class InterfaceBWebsideControllerwirParent - the enabled work itemprotected void processMapping(Mapping mapping) throws java.lang.Exception
mapping: - contained work item is parentjava.lang.Exceptionprotected Element getDataListFromWorkItem(Mapping mapping) throws java.lang.Exception
java.lang.Exceptionpublic void handleCancelledWorkItemEvent(WorkItemRecord workItemRecord)
handleCancelledWorkItemEvent in class InterfaceBWebsideControllerworkItemRecord - the cancelled work itempublic void handleEngineInitialisationCompletedEvent()
handleEngineInitialisationCompletedEvent in class InterfaceBWebsideControllerpublic void handleCancelledCaseEvent(java.lang.String caseID)
InterfaceBWebsideControllerhandleCancelledCaseEvent in class InterfaceBWebsideControllercaseID - the id of the case that has been cancelledprotected boolean isCancelledWorkitem(java.lang.String wirID)
public void handleCompleteCaseEvent(java.lang.String caseID,
java.lang.String casedata)
InterfaceBWebsideControllerhandleCompleteCaseEvent in class InterfaceBWebsideControllercaseID - the id of the completed case.casedata - the set of net-level data for the case when it completespublic void checkInWorkItem(Mapping mapping, java.lang.String payload) throws YAWLException
mapping - payload - YAWLExceptionprotected java.util.List<WorkItemRecord> getChildren(java.lang.String workItemID) throws YAWLException, java.io.IOException
workItemID - java.io.IOExceptionYAWLExceptionprotected void checkOutWorkItem(Mapping mapping) throws java.sql.SQLException, YAWLException
mapping - - contains the work item ID to check outjava.sql.SQLExceptionYAWLExceptionprotected java.lang.String getHandle()
throws java.io.IOException
java.io.IOExceptionprotected WorkItemRecord getWorkItemFromCache(Mapping mapping) throws java.lang.Exception
java.lang.Exceptionprotected Element getOutputData(java.lang.String data)
data - protected void sort(java.util.List<Mapping> mappings)
mappings - public Element getSpecificationForCase(java.lang.String caseId)
Copyright © 2004-2014 The YAWL Foundation.