Package de.hybris.platform.workflow
Interface WorkflowTemplateService
- All Known Implementing Classes:
DefaultWorkflowTemplateService
public interface WorkflowTemplateService
Service to manipulate workflow templates
-
Method Summary
Modifier and TypeMethodDescriptionReturns user that adhoc workflow template is assigned to.Returns workflow action template for a given codeReturns workflow template for a given codevoidsetAndConnectionBetweenActionAndDecision(WorkflowDecisionTemplateModel decision, WorkflowActionTemplateModel workflowAction) Sets "andconnection" attribute for links.voidsetOrConnectionBetweenActionAndDecision(WorkflowDecisionTemplateModel decision, WorkflowActionTemplateModel workflowAction) Sets "orconnection" attribute for links.
-
Method Details
-
getAllWorkflowTemplates
List<WorkflowTemplateModel> getAllWorkflowTemplates()- Returns:
- List of all defined
WorkflowTemplateModels
-
getAllVisibleWorkflowTemplatesForUser
- Parameters:
user- for which templates are visible- Returns:
- list of all user templates 'visible' by given
user.
-
getAdhocWorkflowTemplate
WorkflowTemplateModel getAdhocWorkflowTemplate()- Returns:
- the 'adhoc'
WorkflowTemplateModeldefined for the platform - Throws:
UnknownIdentifierException- if there is no 'adhoc'WorkflowTemplateModeldefinedAmbiguousIdentifierException- if there is more than one instance of 'adhoc'WorkflowTemplateModeldefined
-
getAdhocWorkflowTemplateDummyOwner
EmployeeModel getAdhocWorkflowTemplateDummyOwner()Returns user that adhoc workflow template is assigned to.- Returns:
EmployeeModelof the 'adhoc'WorkflowTemplateModelinstance, see alsoWorkflowTemplateDao.findAdhocWorkflowTemplateDummyOwner().
-
getWorkflowActionTemplateForCode
Returns workflow action template for a given code- Parameters:
code-- Returns:
- found workflow action template
- Throws:
UnknownIdentifierException- when no template foundAmbiguousIdentifierException- when more than one template found
-
getWorkflowTemplateForCode
Returns workflow template for a given code- Parameters:
code-- Returns:
- found workflow template
- Throws:
UnknownIdentifierException- when no template foundAmbiguousIdentifierException- when more than one template found
-
setAndConnectionBetweenActionAndDecision
void setAndConnectionBetweenActionAndDecision(WorkflowDecisionTemplateModel decision, WorkflowActionTemplateModel workflowAction) Sets "andconnection" attribute for links. -
setOrConnectionBetweenActionAndDecision
void setOrConnectionBetweenActionAndDecision(WorkflowDecisionTemplateModel decision, WorkflowActionTemplateModel workflowAction) Sets "orconnection" attribute for links.
-