krysalis-sandbox/workflow/src/java/org/krysalis/workflow/store MemoryStore.java,1.1,1.2
| Newsgroups | gmane.comp.krysalis.sandbox |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/metamorphosis/krysalis-sandbox/workflow/src/java/org/krysalis/workflow/store
In directory sc8-pr-cvs1:/tmp/cvs-serv29172/src/java/org/krysalis/workflow/store
Modified Files:
MemoryStore.java
Log Message:
Finished concept of the workflow manager.
Index: MemoryStore.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-sandbox/workflow/src/java/org/krysalis/workflow/store/MemoryStore.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** MemoryStore.java 12 Mar 2003 13:32:43 -0000 1.1
--- MemoryStore.java 14 Mar 2003 09:17:28 -0000 1.2
***************
*** 16,20 ****
/**
! * Implementations of a StateStore, which holds the State in
* memory.
*
--- 16,20 ----
/**
! * Implementations of a StateStore, which holds the states in
* memory.
*
***************
*** 36,45 ****
Mutex lock = (Mutex)locks.get(resource);
! lock.acquire();
WorkFlowState state = (WorkFlowState)states.get(resource);
if (state==null)
{
! state = new WorkFlowState(resource);
states.put(state.getResource(), state);
}
--- 36,53 ----
Mutex lock = (Mutex)locks.get(resource);
! try
! {
! lock.acquire();
! }
! catch (InterruptedException ie)
! {
! //getLogger().error("Could not acquire lock for '"+resource+"'",ie);
! return null;
! }
WorkFlowState state = (WorkFlowState)states.get(resource);
if (state==null)
{
! state = new DefaultWorkFlowState(resource);
states.put(state.getResource(), state);
}
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en