|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.agila.impl.memory.TokenServiceImpl
public class TokenServiceImpl
Constructor Summary | |
---|---|
TokenServiceImpl()
|
Method Summary | |
---|---|
java.util.List |
getActiveTokensForInstance(InstanceID instanceID)
Returns all tokens active for a given execution instance of a business process |
java.util.List |
getParallelTokens(TokenID tokenID)
Returns a set of tokens that are considered 'parallel' to a given tokenID Parallel tokens are any tokens that can trace their lineage to the first common ancestor N T1 T2 <- parallel tokens N N1 T1 T2 N2 | T3 T4 | N3 | T5 | N4 So N4 asking about T2 could get T1 or T3 and/or T4 or T5, depending on execution timing. |
Token |
getTokenByID(TokenID tokenID)
Fetches a token from the token store |
Token |
newToken(InstanceID instanceID,
NodeID nodeID,
int state)
token factory - creates a new token with valid token ID. |
Token[] |
nextToken(Connection[] connSet,
Token parentToken)
Returns a set of tokens, advanced along the connections given. |
boolean |
saveToken(Token t)
Saves the state of a token after modification or update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TokenServiceImpl()
Method Detail |
---|
public java.util.List getActiveTokensForInstance(InstanceID instanceID)
TokenService
getActiveTokensForInstance
in interface TokenService
public boolean saveToken(Token t)
TokenService
saveToken
in interface TokenService
public Token newToken(InstanceID instanceID, NodeID nodeID, int state)
TokenService
newToken
in interface TokenService
public Token[] nextToken(Connection[] connSet, Token parentToken)
nextToken
in interface TokenService
connSet
- parentToken
-
public Token getTokenByID(TokenID tokenID)
TokenService
getTokenByID
in interface TokenService
public java.util.List getParallelTokens(TokenID tokenID)
TokenService
getParallelTokens
in interface TokenService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |