Class WorkflowDesignerSessionController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.core.web.mvc.controller.AbstractAdminComponentSessionController
-
- org.silverpeas.web.workflowdesigner.control.WorkflowDesignerSessionController
-
- All Implemented Interfaces:
Serializable
,ComponentSessionController
,SessionCloseable
public class WorkflowDesignerSessionController extends AbstractAdminComponentSessionController
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTIONS
static String
ACTIVITIES
static String
ALLOWED_USERS
static String
CONSEQUENCES
static String
DATA_FOLDER
static String
DESCRIPTIONS
static String
FORM_TYPE_ACTION
static String
FORM_TYPE_PRESENTATION
static String
FORM_TYPE_PRINT
static String
FORMS
static String
INPUTS
static String
INTERESTED_USERS
static String
LABELS
static String
NEW_ELEMENT_NAME
static String
NOTIFIED_USERS
static String
PARAMETERS
static String
PARTICIPANTS
static String
PRESENTATION
static String
RELATED_USER
static String
ROLES
static String
STATES
static String
TITLES
static String
TYPE_USER
static String
USER_INFOS
static String
WORKING_USERS
-
Fields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context
-
-
Constructor Summary
Constructors Constructor Description WorkflowDesignerSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
Standard Session Controller Constructeur
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Columns
addColumns()
Create a new columns object to be added to the modelvoid
clearCache()
Action
createAction()
Create a new action object to be added to the modelContextualDesignation
createDesignation()
Create a new ContextualDesignation object to be added to the modelForm
createForm()
Create a new form object to be added to the modelItem
createItem(String strContext)
Create a new item object to be added to the modelParticipant
createParticipant()
Create a new participant object to be added to the modelProcessModel
createProcessModel()
Create a new ProcessModel descriptor that is not yet saved in a XML file.Role
createRole()
Create a new role object to be added to the modelState
createState()
Create a new state object to be added to the modelvoid
deleteColumns(String strRoleName)
Removes the 'columns' object specified by the role nameAction
findAction(String strContext)
Get the Action specified by the contextConsequence
findConsequence(String strContext)
Find the Consequence specified by the contextContextualDesignation
findContextualDesignation(String strContext, String strRole, String strLanguage)
Finds the contextual designation with the given attributes in the specified contextForm
findForm(String strContext)
Find the form by contextInput
findInput(String strContext)
Find the input by contextItem
findItem(String strContext)
Find the Item specified by the contextQualifiedUsers
findQualifiedUsers(String strContext)
Find the QualifiedUsers specified by the contextRelatedUser
findRelatedUser(String strContext, String strParticipant, String strFolderItem, String strRelation, String strRole)
Find a related user corresponding to the criteria givenvoid
generateComponentDescriptor()
Generates component descriptor file in the appropriate directory, stores the new descriptor's name to be able to access it laterString
getComponentDescriptorName()
The name of the component descriptor that references this process model definitionString
getProcessFileName()
The relative path and file name of the currently loaded model or null if none.ProcessModel
getProcessModel()
An object implementing the ProcessModel interface containing the currently loaded model or null if none.Boolean
isNewProcessModel()
Is it a new Process Model that has not yet been saved to a file?List<String>
listProcessModels()
Get the list of all process models available for editionProcessModel
loadProcessModel(String strProcessFileName)
Load the process model from the specified file, cache it before returning.void
moveConsequence(String strContext, int iConsequence, int nDirection)
Move the consequence specified by the context inside the collectionvoid
removeAction(String strActionName)
Remove the action specifiedvoid
removeConsequence(String strContext)
Remove the consequence specified by the contextvoid
removeContextualDesignation(String strContext, ContextualDesignation contextualDesignation)
Removes the contextual designation with the attributes as the reference object in the specified contextvoid
removeForm(String strContext)
Remove the form described by the contextvoid
removeInput(String strContext)
Remove the input specified by the contextvoid
removeItem(String strContext)
Remove the item described by the contextvoid
removeParameter(String strContext, String strName)
Remove the parameter described by the context and namevoid
removeParticipant(String strParticipantName)
Remove the participant specifiedvoid
removeProcessModel(String strProcessModelFileName)
Removes the process model descriptor file from the filesystemvoid
removeRelatedUser(RelatedUser reference, String strContext)
Remove the related user specifiedvoid
removeRole(String strRoleName)
Remove the role specifiedvoid
removeState(String strStateName)
Remove the state specifiedstatic String
replaceSpecialChars(String toParse)
String[]
retrieveActionKindCodes()
Returns the action kind codes as configured in the properties retrieveString[]
retrieveActionNames(boolean fNone)
Produce a list of action namesString[]
retrieveFolderItemNames(boolean fNone, boolean fUsersOnly)
Produce a list of data folder item names, optionally those where the type = 'user'List<Item>
retrieveFolderItems()
String[]
retrieveFormNames(boolean fNone)
Produce a list of form names, only forms other than 'presentationForm' and 'printForm'String[]
retrieveItemTypeCodes(boolean fNone)
Returns the item type codes as configured in the propertiesString[]
retrieveLanguageCodes(boolean fDefault)
Returns the language codes as configured in the propertiesString[]
retrieveLanguageNames(boolean fDefault)
Returns names of available languages as configured in the properties, localised for the current userString[]
retrieveOperators(boolean fNone)
Returns a list of comparison operators as configured in the properties,String[]
retrieveParticipantNames(boolean fNone)
Produce a list of participant namesString[]
retrieveRoleNames(boolean fNone, boolean fDefault)
Produce a list of role namesString[]
retrieveStateNames(boolean fNone)
Produce a list of state namesMap<String,List<String>>
retrieveTypesAndDisplayers()
String[]
retrieveUserInfoItemNames(boolean fNone, boolean fUsersOnly)
Produce a list of user info item names, optionally those where the type = 'user'void
saveProcessModel()
Save the currently cached process model in a XML filevoid
setQualifiedUsers(QualifiedUsers qualifiedUsers, String strContext)
Set the QualifiedUsers specified by the context to the given valuevoid
updateAction(Action source, String strNameOriginal)
Update or insert a new action element of the cached process modelvoid
updateColumns(Columns source, String strRoleOriginal)
Update or insert a new columns section of the presentation element of the cached process modelvoid
updateConsequence(Consequence source, String strContext)
Update or insert a new consequence element of the cached process modelvoid
updateContextualDesignations(String strContext, ContextualDesignation source, String strLangOriginal, String strRoleOriginal)
Update or insert a new ContextualDesignation element of the cached process modelvoid
updateForm(Form source, String strContext, String strNameOriginal, String strRoleOriginal)
Update Form referenced by the context.void
updateInput(Input source, String strContext)
Update or insert a new input element of the cached process modelvoid
updateItem(Item source, String strContext, String strNameOriginal)
Update Item referenced by the context.void
updateParameter(Parameter source, String strContext, String strNameOriginal)
Update Parameter referenced by the context and parameter name.void
updateParticipant(Participant source, String strNameOriginal)
Update or insert a new participant element of the cached process modelvoid
updateProcessModelHeader(ProcessModel processModel)
Update the header of the cached process modelvoid
updateQualifiedUsers(QualifiedUsers source, String strContext)
Update Qualified Users referenced by the context, create the object if it wasnull
before.void
updateRelatedUser(RelatedUser source, String strContext, String strParticipantOriginal, String strFolderItemOriginal, String strRelationOriginal, String strRoleOriginal)
Update a related user corresponding to the criteria givenvoid
updateRole(Role source, String strNameOriginal)
Update or insert a new role element of the cached process modelvoid
updateState(State source, String strNameOriginal)
Update or insert a new state element of the cached process modelvoid
uploadProcessModel(org.apache.commons.fileupload.FileItem model)
Upload given process model in workflow repository.-
Methods inherited from class org.silverpeas.core.web.mvc.controller.AbstractAdminComponentSessionController
checkAccessGranted, checkAccessGranted, checkAdminAccessOnly, isAccessGranted, isAccessGranted, isUserAdmin, setAppModeMaintenance, setSpaceModeMaintenance, throwForbiddenError
-
Methods inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getClipboardErrorMessage, getClipboardExceptionError, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getHighestSilverpeasUserRole, getIcon, getLanguage, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoles, getZoneId, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setClipboardSelectedElement, setComponentRootName
-
-
-
-
Field Detail
-
TYPE_USER
public static final String TYPE_USER
- See Also:
- Constant Field Values
-
FORMS
public static final String FORMS
- See Also:
- Constant Field Values
-
DATA_FOLDER
public static final String DATA_FOLDER
- See Also:
- Constant Field Values
-
USER_INFOS
public static final String USER_INFOS
- See Also:
- Constant Field Values
-
ACTIONS
public static final String ACTIONS
- See Also:
- Constant Field Values
-
INPUTS
public static final String INPUTS
- See Also:
- Constant Field Values
-
STATES
public static final String STATES
- See Also:
- Constant Field Values
-
PARAMETERS
public static final String PARAMETERS
- See Also:
- Constant Field Values
-
PARTICIPANTS
public static final String PARTICIPANTS
- See Also:
- Constant Field Values
-
PRESENTATION
public static final String PRESENTATION
- See Also:
- Constant Field Values
-
ROLES
public static final String ROLES
- See Also:
- Constant Field Values
-
RELATED_USER
public static final String RELATED_USER
- See Also:
- Constant Field Values
-
WORKING_USERS
public static final String WORKING_USERS
- See Also:
- Constant Field Values
-
INTERESTED_USERS
public static final String INTERESTED_USERS
- See Also:
- Constant Field Values
-
NOTIFIED_USERS
public static final String NOTIFIED_USERS
- See Also:
- Constant Field Values
-
ALLOWED_USERS
public static final String ALLOWED_USERS
- See Also:
- Constant Field Values
-
CONSEQUENCES
public static final String CONSEQUENCES
- See Also:
- Constant Field Values
-
FORM_TYPE_PRESENTATION
public static final String FORM_TYPE_PRESENTATION
- See Also:
- Constant Field Values
-
FORM_TYPE_PRINT
public static final String FORM_TYPE_PRINT
- See Also:
- Constant Field Values
-
FORM_TYPE_ACTION
public static final String FORM_TYPE_ACTION
- See Also:
- Constant Field Values
-
NEW_ELEMENT_NAME
public static final String NEW_ELEMENT_NAME
- See Also:
- Constant Field Values
-
TITLES
public static final String TITLES
- See Also:
- Constant Field Values
-
ACTIVITIES
public static final String ACTIVITIES
- See Also:
- Constant Field Values
-
DESCRIPTIONS
public static final String DESCRIPTIONS
- See Also:
- Constant Field Values
-
LABELS
public static final String LABELS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WorkflowDesignerSessionController
public WorkflowDesignerSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
Standard Session Controller Constructeur- Parameters:
mainSessionCtrl
- The user's profilecomponentContext
- The component's profile
-
-
Method Detail
-
listProcessModels
public List<String> listProcessModels() throws WorkflowDesignerException
Get the list of all process models available for edition- Returns:
- A list of Strings containing relative paths to process model file names.
- Throws:
WorkflowDesignerException
-
createProcessModel
public ProcessModel createProcessModel() throws WorkflowDesignerException
Create a new ProcessModel descriptor that is not yet saved in a XML file.- Returns:
- ProcessModel object
- Throws:
WorkflowDesignerException
-
loadProcessModel
public ProcessModel loadProcessModel(String strProcessFileName) throws WorkflowDesignerException
Load the process model from the specified file, cache it before returning.- Parameters:
strProcessFileName
- relative path and the file name- Returns:
- An object implementing the ProcessModel interface
- Throws:
WorkflowDesignerException
-
saveProcessModel
public void saveProcessModel() throws WorkflowDesignerException
Save the currently cached process model in a XML file- Throws:
WorkflowDesignerException
- when the saving goes wrong...
-
removeProcessModel
public void removeProcessModel(String strProcessModelFileName) throws WorkflowDesignerException
Removes the process model descriptor file from the filesystem- Parameters:
strProcessModelFileName
- the relative path to the process file name- Throws:
WorkflowDesignerException
- when something goes wrong
-
getProcessModel
public ProcessModel getProcessModel()
An object implementing the ProcessModel interface containing the currently loaded model or null if none.
-
isNewProcessModel
public Boolean isNewProcessModel()
Is it a new Process Model that has not yet been saved to a file?
-
getProcessFileName
public String getProcessFileName()
The relative path and file name of the currently loaded model or null if none.
-
getComponentDescriptorName
public String getComponentDescriptorName()
The name of the component descriptor that references this process model definition- Returns:
- the component descriptor file name (without .xml) or
null
if no components reference this process model.
-
updateProcessModelHeader
public void updateProcessModelHeader(ProcessModel processModel)
Update the header of the cached process model- Parameters:
processModel
- the reference object
-
addColumns
public Columns addColumns()
Create a new columns object to be added to the model- Returns:
- an object implementing Columns
-
updateColumns
public void updateColumns(Columns source, String strRoleOriginal) throws WorkflowDesignerException
Update or insert a new columns section of the presentation element of the cached process model- Parameters:
source
- the reference object- Throws:
WorkflowDesignerException
-
deleteColumns
public void deleteColumns(String strRoleName) throws WorkflowDesignerException
Removes the 'columns' object specified by the role name- Parameters:
strRoleName
- the value of the role attribute- Throws:
WorkflowDesignerException
- when something goes wrong
-
createRole
public Role createRole()
Create a new role object to be added to the model- Returns:
- an object implementing Role
-
updateRole
public void updateRole(Role source, String strNameOriginal) throws WorkflowDesignerException
Update or insert a new role element of the cached process model- Parameters:
source
- the data carrier objectstrNameOriginal
- the original name of the object- Throws:
WorkflowDesignerException
- if another object with the same name already exists
-
removeRole
public void removeRole(String strRoleName) throws WorkflowDesignerException
Remove the role specified- Parameters:
strRoleName
- the name of the role- Throws:
WorkflowDesignerException
- if the role cannot be found or is referenced elsewhere.
-
createParticipant
public Participant createParticipant()
Create a new participant object to be added to the model- Returns:
- an object implementing Participant
-
updateParticipant
public void updateParticipant(Participant source, String strNameOriginal) throws WorkflowDesignerException
Update or insert a new participant element of the cached process model- Parameters:
source
- the reference object- Throws:
WorkflowDesignerException
-
removeParticipant
public void removeParticipant(String strParticipantName) throws WorkflowDesignerException
Remove the participant specified- Parameters:
strParticipantName
- the name of the participant- Throws:
WorkflowDesignerException
- if the participant cannot be found or is referenced elsewhere.
-
createState
public State createState()
Create a new state object to be added to the model- Returns:
- an object implementing State
-
updateState
public void updateState(State source, String strNameOriginal) throws WorkflowDesignerException
Update or insert a new state element of the cached process model- Parameters:
source
- the reference object- Throws:
WorkflowDesignerException
-
removeState
public void removeState(String strStateName) throws WorkflowDesignerException
Remove the state specified- Parameters:
strStateName
- the name of the state- Throws:
WorkflowDesignerException
- if the state cannot be found or is referenced elsewhere.
-
updateQualifiedUsers
public void updateQualifiedUsers(QualifiedUsers source, String strContext) throws WorkflowException, WorkflowDesignerException
Update Qualified Users referenced by the context, create the object if it wasnull
before.- Parameters:
source
- the new Qualified UsersstrContext
- the context of the QualifiedUsers being updated- Throws:
WorkflowException
- when the update goes wrongWorkflowDesignerException
- when the update goes wrong
-
findRelatedUser
public RelatedUser findRelatedUser(String strContext, String strParticipant, String strFolderItem, String strRelation, String strRole) throws WorkflowException
Find a related user corresponding to the criteria given- Parameters:
strContext
- the contextstrParticipant
- the name of the participant, may benull
strFolderItem
- the name of the data folder item, may benull
strRelation
- the relation, may benull
strRole
- the name of the role, may benull
- Returns:
- an object implementing RelatedUser
- Throws:
WorkflowException
- when something goes wrong
-
updateRelatedUser
public void updateRelatedUser(RelatedUser source, String strContext, String strParticipantOriginal, String strFolderItemOriginal, String strRelationOriginal, String strRoleOriginal) throws WorkflowDesignerException, WorkflowException
Update a related user corresponding to the criteria given- Parameters:
strContext
- the contextstrParticipantOriginal
- the original name of the participant, may benull
strFolderItemOriginal
- the original name of the data folder item, may benull
strRelationOriginal
- the original relation, may benull
strRoleOriginal
- the original name of the role, may benull
- Throws:
WorkflowDesignerException
- when something goes wrongWorkflowException
- when something goes wrong
-
removeRelatedUser
public void removeRelatedUser(RelatedUser reference, String strContext) throws WorkflowException
Remove the related user specified- Parameters:
reference
- the reference for the related user to removestrContext
- the context- Throws:
WorkflowException
- if the related user cannot be found or when something goes wrong
-
createAction
public Action createAction()
Create a new action object to be added to the model- Returns:
- an object implementing Action
-
updateAction
public void updateAction(Action source, String strNameOriginal) throws WorkflowDesignerException, WorkflowException
Update or insert a new action element of the cached process model- Parameters:
source
- the reference objectstrNameOriginal
-- Throws:
WorkflowDesignerException
- when something goes wrongWorkflowException
- when something goes wrong
-
removeAction
public void removeAction(String strActionName) throws WorkflowException, WorkflowDesignerException
Remove the action specified- Parameters:
strActionName
- the name of the action- Throws:
WorkflowException
- if the action cannot be foundWorkflowDesignerException
- if the action is referenced elsewhere
-
updateConsequence
public void updateConsequence(Consequence source, String strContext) throws WorkflowDesignerException, WorkflowException
Update or insert a new consequence element of the cached process model- Parameters:
source
- the reference objectstrContext
- the context of Consequence- Throws:
WorkflowDesignerException
- when something goes wrongWorkflowException
- when something goes wrong
-
moveConsequence
public void moveConsequence(String strContext, int iConsequence, int nDirection) throws WorkflowDesignerException
Move the consequence specified by the context inside the collection- Parameters:
strContext
- the context of the consequenceiConsequence
- the current index of the consequence in the collectionnDirection
- the offset and the direction to move by- Throws:
WorkflowDesignerException
- if the consequence cannot be found.
-
removeConsequence
public void removeConsequence(String strContext) throws WorkflowDesignerException
Remove the consequence specified by the context- Parameters:
strContext
- the context of the consequence- Throws:
WorkflowDesignerException
- if the consequence cannot be found.
-
createForm
public Form createForm()
Create a new form object to be added to the model- Returns:
- an object implementing Form
-
findForm
public Form findForm(String strContext)
Find the form by context- Parameters:
strContext
- the context- Returns:
- a Form object
-
updateForm
public void updateForm(Form source, String strContext, String strNameOriginal, String strRoleOriginal) throws WorkflowDesignerException
Update Form referenced by the context.- Parameters:
source
- the object carrying the new valuesstrContext
- the context of the form being updatedstrNameOriginal
- the original name of the form- Throws:
WorkflowDesignerException
- when the update goes wrong
-
removeForm
public void removeForm(String strContext) throws WorkflowException, WorkflowDesignerException
Remove the form described by the context- Parameters:
strContext
- the context- Throws:
WorkflowException
- if the form cannot be foundWorkflowDesignerException
- if the form is referenced elsewhere
-
findInput
public Input findInput(String strContext)
Find the input by context- Parameters:
strContext
- the context- Returns:
- a Input object
-
updateInput
public void updateInput(Input source, String strContext) throws WorkflowDesignerException
Update or insert a new input element of the cached process model- Parameters:
source
- the reference objectstrContext
- the context of Input- Throws:
WorkflowDesignerException
- when something goes wrong
-
removeInput
public void removeInput(String strContext) throws WorkflowDesignerException, WorkflowException
Remove the input specified by the context- Parameters:
strContext
- the context of the input- Throws:
WorkflowDesignerException
- if the input cannot be found.WorkflowException
- if the input cannot be found
-
createDesignation
public ContextualDesignation createDesignation()
Create a new ContextualDesignation object to be added to the model- Returns:
- an object implementing ContextualDesignation
-
updateContextualDesignations
public void updateContextualDesignations(String strContext, ContextualDesignation source, String strLangOriginal, String strRoleOriginal) throws WorkflowDesignerException
Update or insert a new ContextualDesignation element of the cached process model- Parameters:
strContext
-source
- the reference objectstrLangOriginal
-strRoleOriginal
-- Throws:
WorkflowDesignerException
-
findContextualDesignation
public ContextualDesignation findContextualDesignation(String strContext, String strRole, String strLanguage) throws WorkflowDesignerException
Finds the contextual designation with the given attributes in the specified context- Parameters:
strContext
- the context of the designationstrLanguage
- the languagestrRole
- the role name- Returns:
- contextual designation of the given role & name or
null
- Throws:
WorkflowDesignerException
- if something goes wrong
-
removeContextualDesignation
public void removeContextualDesignation(String strContext, ContextualDesignation contextualDesignation) throws WorkflowDesignerException
Removes the contextual designation with the attributes as the reference object in the specified context- Parameters:
strContext
- the context of the designationcontextualDesignation
- the reference object- Throws:
WorkflowDesignerException
- when something goes wrong e.g. designation not found
-
createItem
public Item createItem(String strContext)
Create a new item object to be added to the model- Returns:
- an object implementing Item
-
findItem
public Item findItem(String strContext)
Find the Item specified by the context- Parameters:
strContext
- the context- Returns:
- an Item object or
null
-
updateItem
public void updateItem(Item source, String strContext, String strNameOriginal) throws WorkflowDesignerException
Update Item referenced by the context.- Parameters:
source
- the object carrying the new valuesstrContext
- the context of the item being updatedstrNameOriginal
- the original name of the item- Throws:
WorkflowDesignerException
- when the update goes wrong
-
removeItem
public void removeItem(String strContext) throws WorkflowException, WorkflowDesignerException
Remove the item described by the context- Parameters:
strContext
- the context- Throws:
WorkflowException
- when the item cannot be foundWorkflowDesignerException
- when the item is referenced elsewhere
-
updateParameter
public void updateParameter(Parameter source, String strContext, String strNameOriginal) throws WorkflowDesignerException
Update Parameter referenced by the context and parameter name.- Parameters:
source
- the object carrying the new valuesstrContext
- the context of the item being updatedstrNameOriginal
- the original name of the parameter- Throws:
WorkflowDesignerException
- when the update goes wrong
-
removeParameter
public void removeParameter(String strContext, String strName) throws WorkflowException
Remove the parameter described by the context and name- Parameters:
strContext
- the contextstrName
- the name of the parameter- Throws:
WorkflowException
-
findQualifiedUsers
public QualifiedUsers findQualifiedUsers(String strContext) throws WorkflowException
Find the QualifiedUsers specified by the context- Parameters:
strContext
- the context- Returns:
- a QualifiedUsers object or
null
- Throws:
WorkflowException
-
setQualifiedUsers
public void setQualifiedUsers(QualifiedUsers qualifiedUsers, String strContext) throws WorkflowException, WorkflowDesignerException
Set the QualifiedUsers specified by the context to the given value- Parameters:
qualifiedUsers
- the new value of qualified usersstrContext
- the context- Throws:
WorkflowDesignerException
- When the qualified users' parent could not be foundWorkflowException
-
findAction
public Action findAction(String strContext) throws WorkflowException
Get the Action specified by the context- Parameters:
strContext
- the context- Returns:
- an Action object or
null
- Throws:
WorkflowException
-
findConsequence
public Consequence findConsequence(String strContext) throws WorkflowException
Find the Consequence specified by the context- Parameters:
strContext
- the context- Returns:
- an Consequence object or
null
- Throws:
WorkflowException
-
retrieveLanguageCodes
public String[] retrieveLanguageCodes(boolean fDefault)
Returns the language codes as configured in the properties- Parameters:
fDefault
- iftrue
the 'default' option shall be included- Returns:
- an array of language codes
-
retrieveLanguageNames
public String[] retrieveLanguageNames(boolean fDefault)
Returns names of available languages as configured in the properties, localised for the current user- Parameters:
fDefault
- iftrue
the 'default' option shall be included- Returns:
- an array of language names
-
retrieveItemTypeCodes
public String[] retrieveItemTypeCodes(boolean fNone)
Returns the item type codes as configured in the properties- Parameters:
fNone
- iftrue
the 'None' option shall be included- Returns:
- an array of codes
-
retrieveOperators
public String[] retrieveOperators(boolean fNone)
Returns a list of comparison operators as configured in the properties,- Parameters:
fNone
- iftrue
the 'none' option shall be included- Returns:
- an array of operators
-
retrieveActionKindCodes
public String[] retrieveActionKindCodes()
Returns the action kind codes as configured in the properties retrieve- Returns:
- an array of codes
-
retrieveActionNames
public String[] retrieveActionNames(boolean fNone)
Produce a list of action names- Parameters:
fNone
- iftrue
the 'None' option shall be included- Returns:
- an array of Strings or an empty array.
-
retrieveRoleNames
public String[] retrieveRoleNames(boolean fNone, boolean fDefault)
Produce a list of role names- Parameters:
fNone
- iftrue
the 'None' option shall be includedfDefault
- iftrue
the 'default' option shall be included- Returns:
- an array of Strings or an empty array.
-
retrieveStateNames
public String[] retrieveStateNames(boolean fNone)
Produce a list of state names- Parameters:
fNone
- iftrue
the 'None' option shall be included- Returns:
- an array of Strings or an empty array.
-
retrieveParticipantNames
public String[] retrieveParticipantNames(boolean fNone)
Produce a list of participant names- Parameters:
fNone
- iftrue
the 'None' option shall be included- Returns:
- an array of Strings or an empty array.
-
retrieveUserInfoItemNames
public String[] retrieveUserInfoItemNames(boolean fNone, boolean fUsersOnly)
Produce a list of user info item names, optionally those where the type = 'user'- Parameters:
fNone
- iftrue
the 'None' option shall be includedfUsersOnly
- iftrue
only the items of type 'user' shall be included- Returns:
- an array of Strings or an empty array.
-
retrieveFolderItemNames
public String[] retrieveFolderItemNames(boolean fNone, boolean fUsersOnly)
Produce a list of data folder item names, optionally those where the type = 'user'- Parameters:
fNone
- iftrue
the 'None' option shall be includedfUsersOnly
- iftrue
only the items of type 'user' shall be included- Returns:
- an array of Strings or an empty array.
-
retrieveFormNames
public String[] retrieveFormNames(boolean fNone)
Produce a list of form names, only forms other than 'presentationForm' and 'printForm'- Parameters:
fNone
- iftrue
the 'None' option shall be included- Returns:
- an array of Strings or an empty array.
-
generateComponentDescriptor
public void generateComponentDescriptor() throws WorkflowDesignerException
Generates component descriptor file in the appropriate directory, stores the new descriptor's name to be able to access it later- Throws:
WorkflowDesignerException
- when something goes wrong
-
uploadProcessModel
public void uploadProcessModel(org.apache.commons.fileupload.FileItem model) throws WorkflowDesignerException, WorkflowException
Upload given process model in workflow repository.- Parameters:
model
- process model file- Throws:
WorkflowDesignerException
- , WorkflowExceptionWorkflowException
-
clearCache
public void clearCache()
-
-