org.yawlfoundation.yawl.engine
Class YWorkItemRepository

java.lang.Object
  extended by org.yawlfoundation.yawl.engine.YWorkItemRepository

public class YWorkItemRepository
extends Object

A cache of active workitems.

Author:
Lachlan Aldred Date: 30/05/2003 Time: 14:04:39, Michael Adams (refactored for v2.1, 2.2)

Constructor Summary
YWorkItemRepository()
           
 
Method Summary
protected  YWorkItem add(YWorkItem workItem)
           
 Set<YWorkItem> cancelNet(YIdentifier caseIDForNet)
          Removes all workitems that belong to a net.
 void cleanseRepository()
           
 void clear()
           
 void dump(org.apache.log4j.Logger logger)
           
 YWorkItem get(String itemID)
           
 YWorkItem get(String caseIDStr, String taskID)
           
 Set<YWorkItem> getChildrenOf(String workItemID)
           
 Set<YWorkItem> getCompletedWorkItems()
           
 Set<YWorkItem> getEnabledWorkItems()
           
 Set<YWorkItem> getExecutingWorkItems()
           
 Set<YWorkItem> getExecutingWorkItems(String serviceName)
           
 Set<YWorkItem> getFiredWorkItems()
           
 Set<YWorkItem> getParentWorkItems()
           
 Set<YWorkItem> getWorkItems()
           
 Set<YWorkItem> getWorkItems(YWorkItemStatus status)
           
 List<YWorkItem> getWorkItemsForCase(YIdentifier caseID)
           
 Set<YWorkItem> getWorkItemsForService(String serviceURI)
           
 Set<YWorkItem> getWorkItemsWithIdentifier(String idType, String id)
           
 YWorkItem remove(YWorkItem workItem)
           
 Set<YWorkItem> removeWorkItemFamily(YWorkItem workItem)
           
 Set<YWorkItem> removeWorkItemsForCase(YIdentifier caseID)
          Removes all work items for a given case id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YWorkItemRepository

public YWorkItemRepository()
Method Detail

add

protected YWorkItem add(YWorkItem workItem)

get

public YWorkItem get(String caseIDStr,
                     String taskID)

get

public YWorkItem get(String itemID)

remove

public YWorkItem remove(YWorkItem workItem)

clear

public void clear()

removeWorkItemFamily

public Set<YWorkItem> removeWorkItemFamily(YWorkItem workItem)

cancelNet

public Set<YWorkItem> cancelNet(YIdentifier caseIDForNet)
Removes all workitems that belong to a net.

Parameters:
caseIDForNet -

getParentWorkItems

public Set<YWorkItem> getParentWorkItems()

getEnabledWorkItems

public Set<YWorkItem> getEnabledWorkItems()

getFiredWorkItems

public Set<YWorkItem> getFiredWorkItems()

getExecutingWorkItems

public Set<YWorkItem> getExecutingWorkItems()

getExecutingWorkItems

public Set<YWorkItem> getExecutingWorkItems(String serviceName)

getCompletedWorkItems

public Set<YWorkItem> getCompletedWorkItems()

getWorkItems

public Set<YWorkItem> getWorkItems(YWorkItemStatus status)

getWorkItems

public Set<YWorkItem> getWorkItems()

cleanseRepository

public void cleanseRepository()

getChildrenOf

public Set<YWorkItem> getChildrenOf(String workItemID)

removeWorkItemsForCase

public Set<YWorkItem> removeWorkItemsForCase(YIdentifier caseID)
Removes all work items for a given case id. Searches through the work items for ones that are related to the case id and removes them. Called by YEngine.cancelCase()

Parameters:
caseID - must be a case id (not a child of a caseid).
Returns:
the set of removed work items

getWorkItemsForCase

public List<YWorkItem> getWorkItemsForCase(YIdentifier caseID)

getWorkItemsWithIdentifier

public Set<YWorkItem> getWorkItemsWithIdentifier(String idType,
                                                 String id)

getWorkItemsForService

public Set<YWorkItem> getWorkItemsForService(String serviceURI)

dump

public void dump(org.apache.log4j.Logger logger)


Copyright © 2004-2012 The YAWL Foundation.