public class DataMapper
extends java.lang.Object
Constructor and Description |
---|
DataMapper() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Case> |
getActiveRups(java.lang.String timestamp) |
java.util.List<Case> |
getAllRups() |
java.util.List<Mapping> |
getMappings()
Get all mappings from the database
|
java.util.List<java.lang.String> |
getRupActivityTypes(java.lang.String activityName) |
java.util.List<Case> |
getRupByCaseId(java.lang.String caseId) |
java.util.List<java.util.List<Element>> |
getRupNodes(java.lang.String activityName,
java.lang.String activityType,
java.lang.String nodeName) |
java.util.List<Case> |
getRupsByActivity(java.lang.String activityName) |
java.util.List<Case> |
getRupsByInterval(java.util.Date from,
java.util.Date to,
java.util.List<java.lang.String> yCaseIdsToExclude,
boolean activeOnly)
Get all RUPs from the database that start after "from" and end before
"to".
|
void |
removeMapping(Mapping mapping)
removes a mapping from database
|
void |
removeMapping(java.lang.String workItemId)
Removes all mappings with specified "workItemId"
|
void |
saveMapping(Mapping mapping)
Saves or updates a mapping to the database for recovery of failed YAWL
requests
|
void |
saveRup(Case theCase) |
void |
updateRup(java.lang.String caseId,
boolean active)
Update RUP, set "active status"
|
public void saveMapping(Mapping mapping)
mapping
- objectpublic void removeMapping(Mapping mapping)
mapping
- Objectpublic void removeMapping(java.lang.String workItemId)
workItemId
- - YAWL's unique work item identifierpublic java.util.List<Mapping> getMappings()
public void saveRup(Case theCase)
public java.util.List<Case> getRupsByInterval(java.util.Date from, java.util.Date to, java.util.List<java.lang.String> yCaseIdsToExclude, boolean activeOnly)
from
- to
- yCaseIdsToExclude
- activeOnly
- public java.util.List<Case> getRupByCaseId(java.lang.String caseId)
public java.util.List<Case> getAllRups()
public java.util.List<Case> getActiveRups(java.lang.String timestamp)
timestamp
- public java.util.List<java.util.List<Element>> getRupNodes(java.lang.String activityName, java.lang.String activityType, java.lang.String nodeName)
activityName
- activityType
- nodeName
- public java.util.List<Case> getRupsByActivity(java.lang.String activityName)
activityName
- public java.util.List<java.lang.String> getRupActivityTypes(java.lang.String activityName)
activityName
- public void updateRup(java.lang.String caseId, boolean active)
caseId
- active
- Copyright © 2004-2014 The YAWL Foundation.