@Named @RequestScoped public class ModelController extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected org.imixs.workflow.engine.ModelService |
modelService |
protected ModelUploadHandler |
modelUploadHandler |
protected org.imixs.workflow.engine.SetupService |
setupService |
protected org.imixs.workflow.engine.WorkflowService |
workflowService |
| Constructor and Description |
|---|
ModelController() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteModel(String modelversion)
This Method deletes the given model from the database and the internal model
cache.
|
void |
doUploadModel(javax.faces.event.ActionEvent event)
This method adds all uploaded model files.
|
List<String> |
getGroups(String version)
returns all groups for a version
|
org.imixs.workflow.Model |
getModelByGroup(String group)
Returns a model object for corresponding workflow group.
|
org.imixs.workflow.Model |
getModelByWorkitem(org.imixs.workflow.ItemCollection workitem) |
org.imixs.workflow.ItemCollection |
getModelEntity(String version) |
String |
getProcessDescription(int processid,
String modelversion,
org.imixs.workflow.ItemCollection documentContext)
This method return the 'rtfdescription' of a processentity and applies the
dynamic Text replacement function from the jee plugin
|
org.imixs.workflow.ItemCollection |
getProcessEntity(int processid,
String modelversion)
This method returns a process entity for a given ModelVersion or null if no
entity exists.
|
List<String> |
getSubWorkflowGroups(String parentWorkflowGroup)
Returns a String list of all Sub-WorkflowGroup names for a specified
WorkflowGroup.
|
List<String> |
getVersions()
returns all model versions
|
List<String> |
getWorkflowGroups()
Returns a String list of all WorkflowGroup names.
|
@Inject protected ModelUploadHandler modelUploadHandler
protected org.imixs.workflow.engine.ModelService modelService
protected org.imixs.workflow.engine.WorkflowService workflowService
protected org.imixs.workflow.engine.SetupService setupService
public List<String> getGroups(String version)
version - public List<String> getWorkflowGroups()
public List<String> getSubWorkflowGroups(String parentWorkflowGroup)
parentWorkflowGroup - - the parent workflow group namegetWorkflowGroups()public org.imixs.workflow.Model getModelByWorkitem(org.imixs.workflow.ItemCollection workitem)
public org.imixs.workflow.Model getModelByGroup(String group)
group - public org.imixs.workflow.ItemCollection getModelEntity(String version)
public void doUploadModel(javax.faces.event.ActionEvent event)
throws org.imixs.workflow.exceptions.ModelException,
ParseException,
ParserConfigurationException,
SAXException,
IOException
event - IOExceptionSAXExceptionParserConfigurationExceptionParseExceptionorg.imixs.workflow.exceptions.ModelExceptionpublic void deleteModel(String modelversion) throws org.imixs.workflow.exceptions.AccessDeniedException, org.imixs.workflow.exceptions.ModelException
org.imixs.workflow.exceptions.AccessDeniedExceptionorg.imixs.workflow.exceptions.ModelExceptionpublic org.imixs.workflow.ItemCollection getProcessEntity(int processid,
String modelversion)
modelVersion - - version for the model to search the process entityprocessid - - id of the process entityorg.imixs.workflow.exceptions.ModelExceptionpublic String getProcessDescription(int processid, String modelversion, org.imixs.workflow.ItemCollection documentContext)
processid - modelversion - org.imixs.workflow.exceptions.ModelExceptionCopyright © 2016–2022 Imixs Software Solutions GmbH. All rights reserved.