public interface StateService
Modifier and Type | Method and Description |
---|---|
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.
|
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 operationDoesNotExistException
- typeKey not foundInvalidParameterException
- invalid typeKeyMissingParameterException
- missing typeKeyOperationFailedException
- unable to complete requestStateInfo 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 operationDoesNotExistException
- processKey, stateKey not foundInvalidParameterException
- invalid processKey, stateKeyMissingParameterException
- missing processKey, stateKeyOperationFailedException
- unable to complete requestList<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 operationDoesNotExistException
- processKey not foundInvalidParameterException
- invalid processKeyMissingParameterException
- missing processKeyOperationFailedException
- unable to complete requestList<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 operationDoesNotExistException
- processKey not foundInvalidParameterException
- invalid processKeyMissingParameterException
- missing processKeyOperationFailedException
- unable to complete requestStateInfo 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 operationDoesNotExistException
- processKey or currentStateKey not foundInvalidParameterException
- invalid processKey or currentStateKeyMissingParameterException
- missing processKey or currentStateKeyOperationFailedException
- unable to complete requestCopyright © 2004–2014 The Kuali Foundation. All rights reserved.