|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StateService
Provides a read-only view of states and state flow information. This service needs to be implemented by any KS service that is going to handle states Version: 1.0 (Dev)
| Method Summary | |
|---|---|
List<StateInfo> |
getInitialValidStates(String processKey,
ContextInfo context)
This method returns a list of StateInfo objects that are valid initial states for a given process. |
StateInfo |
getNextHappyState(String processKey,
String currentStateKey,
ContextInfo context)
This method retrieves the next happy state in a process given the current state. |
List<String> |
getProcessKeys(String typeKey,
ContextInfo context)
This method retrieves the list of process keys associated with a type of object. |
StateInfo |
getState(String processKey,
String stateKey,
ContextInfo context)
This method returns information about a state for a given process. |
List<StateInfo> |
getStatesByProcess(String processKey,
ContextInfo context)
This method returns a list of States that belong to a process. |
| Method Detail |
|---|
List<String> getProcessKeys(String typeKey,
ContextInfo context)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException
typeKey - Type keycontext - Context information containing the principalId and locale information about the caller of service operation
DoesNotExistException - typeKey not found
InvalidParameterException - invalid typeKey
MissingParameterException - missing typeKey
OperationFailedException - unable to complete request
StateInfo getState(String processKey,
String stateKey,
ContextInfo context)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException
processKey - Key identifying the processstateKey - Key of the statecontext - Context information containing the principalId and locale information about the caller of service operation
DoesNotExistException - processKey, stateKey not found
InvalidParameterException - invalid processKey, stateKey
MissingParameterException - missing processKey, stateKey
OperationFailedException - unable to complete request
List<StateInfo> getStatesByProcess(String processKey,
ContextInfo context)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException
processKey - Key identifying the processcontext - Context information containing the principalId and locale information about the caller of service operation
DoesNotExistException - processKey not found
InvalidParameterException - invalid processKey
MissingParameterException - missing processKey
OperationFailedException - unable to complete request
List<StateInfo> getInitialValidStates(String processKey,
ContextInfo context)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException
processKey - Process keycontext - Context information containing the principalId and locale information about the caller of service operation
DoesNotExistException - processKey not found
InvalidParameterException - invalid processKey
MissingParameterException - missing processKey
OperationFailedException - unable to complete request
StateInfo getNextHappyState(String processKey,
String currentStateKey,
ContextInfo context)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException
processKey - Process keycurrentStateKey - Current state keycontext - Context information containing the principalId and locale information about the caller of service operation
DoesNotExistException - processKey or currentStateKey not found
InvalidParameterException - invalid processKey or currentStateKey
MissingParameterException - missing processKey or currentStateKey
OperationFailedException - unable to complete request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||