Interface State
-
- All Known Implementing Classes:
StateImpl
public interface StateInterface describing a representation of the <state> element of a Process Model.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AllowedActionscreateAllowedActions()Create and return an object implementing AllowedActionsContextualDesignationsgetActivities()Get all the activitiesAction[]getAllowedActions()Get actions available in this stateAllowedActionsgetAllowedActionsEx()Get all the allowed actionsStringgetDescription(String role, String language)Get description in specific language for the given roleContextualDesignationsgetDescriptions()Get all the descriptionsAction[]getFilteredActions()QualifiedUsersgetInterestedUsers()Get all the users interested by this stateQualifiedUsersgetInterestedUsersEx()Get all the users interested by this stateStringgetLabel(String role, String language)Get label in specific language for the given roleContextualDesignationsgetLabels()Get all the labelsStringgetName()Get the name of this stateActiongetTimeoutAction()Get the timeout action of this state Action that will played if timeout is trigerredTimeOutAction[]getTimeOutActions()Get timeout actions for this stateintgetTimeoutInterval()Get the timeout interval of this statebooleangetTimeoutNotifyAdmin()Get flag for admin notification if true, the timeout manager will send a notification to all supervisorsQualifiedUsersgetWorkingUsers()Get all the users who can act in this stateQualifiedUsersgetWorkingUsersEx()Get all the users who can act in this statevoidsetAllowedActions(AllowedActions allowedActions)Set the allowed actionsvoidsetFilteredActions(AllowedActions allowedActions)voidsetInterestedUsers(QualifiedUsers interestedUsers)Set the users interested by this statevoidsetName(String name)Set the name of this statevoidsetTimeoutAction(Action timeoutAction)Set the timeout action of this state Action that will played if timeout is trigerredvoidsetTimeoutInterval(int iHours)Set the timeout interval of this statevoidsetTimeoutNotifyAdmin(boolean timeoutAction)Set flag for admin notification if true, the timeout manager will send a notification to all supervisorsvoidsetWorkingUsers(QualifiedUsers workingUsers)Set the users who can act in this state
-
-
-
Method Detail
-
getName
String getName()
Get the name of this state- Returns:
- state's name
-
setName
void setName(String name)
Set the name of this state- Parameters:
name- state's name
-
getLabel
String getLabel(String role, String language)
Get label in specific language for the given role- Parameters:
language- label's languagerole- role for which the label is- Returns:
- wanted label as a String object. If label is not found, search label with given role and default language, if not found again, return the default label in given language, if not found again, return the default label in default language, if not found again, return empty string.
-
getLabels
ContextualDesignations getLabels()
Get all the labels- Returns:
- an object containing the collection of the labels
-
getActivities
ContextualDesignations getActivities()
Get all the activities- Returns:
- an object containing the collection of the activities
-
getDescription
String getDescription(String role, String language)
Get description in specific language for the given role- Parameters:
language- description's languagerole- role for which the description is- Returns:
- wanted description as a String object. If description is not found, search description with given role and default language, if not found again, return the default description in given language, if not found again, return the default description in default language, if not found again, return empty string.
-
getDescriptions
ContextualDesignations getDescriptions()
Get all the descriptions- Returns:
- an object containing the collection of the descriptions
-
createAllowedActions
AllowedActions createAllowedActions()
Create and return an object implementing AllowedActions
-
getTimeOutActions
TimeOutAction[] getTimeOutActions()
Get timeout actions for this state- Returns:
- timeout actions
-
getAllowedActions
Action[] getAllowedActions()
Get actions available in this state- Returns:
- allowedActions allowed actions
-
getFilteredActions
Action[] getFilteredActions()
-
getAllowedActionsEx
AllowedActions getAllowedActionsEx()
Get all the allowed actions- Returns:
- an object containing the collection of the allowed actions
-
setAllowedActions
void setAllowedActions(AllowedActions allowedActions)
Set the allowed actions
-
setFilteredActions
void setFilteredActions(AllowedActions allowedActions)
-
getInterestedUsers
QualifiedUsers getInterestedUsers()
Get all the users interested by this state- Returns:
- QualifiedUsers object containing interested users, or an empty QualifiedUsers object
but never
null
-
getInterestedUsersEx
QualifiedUsers getInterestedUsersEx()
Get all the users interested by this state- Returns:
- QualifiedUsers object containing interested users, or
nullif none are defined
-
setInterestedUsers
void setInterestedUsers(QualifiedUsers interestedUsers)
Set the users interested by this state
-
getWorkingUsers
QualifiedUsers getWorkingUsers()
Get all the users who can act in this state- Returns:
- QualifiedUsers object containing theses users, or an empty QualifiedUsers object but
never
null
-
getWorkingUsersEx
QualifiedUsers getWorkingUsersEx()
Get all the users who can act in this state- Returns:
- QualifiedUsers object containing theses users, or
nullif none are defined
-
setWorkingUsers
void setWorkingUsers(QualifiedUsers workingUsers)
Set the users who can act in this state
-
getTimeoutInterval
int getTimeoutInterval()
Get the timeout interval of this state- Returns:
- timeoutInterval interval in hours (as a int)
-
setTimeoutInterval
void setTimeoutInterval(int iHours)
Set the timeout interval of this state- Parameters:
iHours- interval in hours (as a int)
-
getTimeoutAction
Action getTimeoutAction()
Get the timeout action of this state Action that will played if timeout is trigerred- Returns:
- timeout action
-
setTimeoutAction
void setTimeoutAction(Action timeoutAction)
Set the timeout action of this state Action that will played if timeout is trigerred- Parameters:
timeoutAction- timeout action
-
getTimeoutNotifyAdmin
boolean getTimeoutNotifyAdmin()
Get flag for admin notification if true, the timeout manager will send a notification to all supervisors- Returns:
- admin notification flag
-
setTimeoutNotifyAdmin
void setTimeoutNotifyAdmin(boolean timeoutAction)
Set flag for admin notification if true, the timeout manager will send a notification to all supervisors- Parameters:
timeoutAction- notification flag
-
-