public interface WorkflowTemplateActivationService
WorkflowTemplateModel.getActivationScript()| Modifier and Type | Method and Description |
|---|---|
void |
activateWorkflowTemplates(java.util.Collection<WorkflowTemplateActivationCtx> activationCtxList)
For every given activation ctx, seeks
WorkflowTemplateModel with
activation script and runs the script which activation ctx. |
java.util.List<WorkflowTemplateActivationCtx> |
prepareWorkflowTemplateActivationContexts(java.util.Map<? extends ItemModel,WorkflowTemplateActivationAction> items,
Context invocationCtx)
Prepares
WorkflowTemplateActivationCtx for every item in given items list. |
java.util.List<WorkflowTemplateActivationCtx> prepareWorkflowTemplateActivationContexts(java.util.Map<? extends ItemModel,WorkflowTemplateActivationAction> items, Context invocationCtx)
WorkflowTemplateActivationCtx for 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.items - map of items with workflow action.invocationCtx - context of invocation which will be copied into returned contextsvoid activateWorkflowTemplates(java.util.Collection<WorkflowTemplateActivationCtx> activationCtxList)
WorkflowTemplateModel with
activation script and runs the script which activation ctx. Workflows should be activated after items are
saved/created.For more information please read ScriptEvaluationServiceactivationCtxList - list fo activation contexts which should be created before items are saved.Copyright © 2018 SAP SE. All Rights Reserved.