Package com.hybris.backoffice.workflow
Interface WorkflowTemplateActivationService
-
- All Known Implementing Classes:
DefaultWorkflowTemplateActivationService
public interface WorkflowTemplateActivationServiceService which allows to create workflow based on workflow templates and its activation scriptsWorkflowTemplateModel.getActivationScript()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivateWorkflowTemplates(java.util.Collection<WorkflowTemplateActivationCtx> activationCtxList)For every given activation ctx, seeksWorkflowTemplateModelwith activation script and runs the script which activation ctx.java.util.List<WorkflowTemplateActivationCtx>prepareWorkflowTemplateActivationContexts(java.util.Map<? extends ItemModel,WorkflowTemplateActivationAction> items, com.hybris.cockpitng.dataaccess.context.Context invocationCtx)PreparesWorkflowTemplateActivationCtxfor every item in given items list.
-
-
-
Method Detail
-
prepareWorkflowTemplateActivationContexts
java.util.List<WorkflowTemplateActivationCtx> prepareWorkflowTemplateActivationContexts(java.util.Map<? extends ItemModel,WorkflowTemplateActivationAction> items, com.hybris.cockpitng.dataaccess.context.Context invocationCtx)
PreparesWorkflowTemplateActivationCtxfor every item in given items list. Contexts have to be created before items are saved/created due to information about original values which is removed after saving items.- Parameters:
items- map of items with workflow action.invocationCtx- context of invocation which will be copied into returned contexts- Returns:
- list of activation ctx
-
activateWorkflowTemplates
void activateWorkflowTemplates(java.util.Collection<WorkflowTemplateActivationCtx> activationCtxList)
For every given activation ctx, seeksWorkflowTemplateModelwith activation script and runs the script which activation ctx. Workflows should be activated after items are saved/created.For more information please readScriptEvaluationService- Parameters:
activationCtxList- list fo activation contexts which should be created before items are saved.
-
-