public class DefaultWorkflowTemplateActivationService extends Object implements WorkflowTemplateActivationService
| Constructor and Description |
|---|
DefaultWorkflowTemplateActivationService() |
public DefaultWorkflowTemplateActivationService()
public void activateWorkflowTemplates(Collection<WorkflowTemplateActivationCtx> activationCtxList)
WorkflowTemplateActivationServiceWorkflowTemplateModel with
activation script and runs the script which activation ctx. Workflows should be activated after items are
saved/created.For more information please read ScriptEvaluationServiceactivateWorkflowTemplates in interface WorkflowTemplateActivationServiceactivationCtxList - list fo activation contexts which should be created before items are saved.public List<WorkflowTemplateActivationCtx> prepareWorkflowTemplateActivationContexts(Map<? extends ItemModel,WorkflowTemplateActivationAction> items, Context invocationCtx)
WorkflowTemplateActivationServiceWorkflowTemplateActivationCtx 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.prepareWorkflowTemplateActivationContexts in interface WorkflowTemplateActivationServiceitems - map of items with workflow action.invocationCtx - context of invocation which will be copied into returned contextsprotected boolean isSupportedType(String typeCode)
protected WorkflowTemplateActivationCtx prepareWorkflowTemplateActivationCtx(ItemModel item, WorkflowTemplateActivationAction action, Context invocationCtx)
protected DataType loadDataType(String typeCode)
protected WorkflowTemplateActivationCtx prepareContextForRemove(ItemModel item, DataType dataType, Context invocationCtx)
protected WorkflowTemplateActivationCtx prepareContextForSave(ItemModel item, DataType dataType, Context invocationCtx)
protected WorkflowTemplateActivationCtx prepareContextForCreate(ItemModel item, DataType dataType, Context invocationCtx)
protected ItemModelContext getItemModelContext(ItemModel item)
protected Map<String,Object> collectCurrentValues(ItemModel item, Set<String> attributes, Map<String,Set<Locale>> localizedAttributes)
protected Map<String,Object> collectOriginalValues(ItemModelContext itemModelCtx, Set<String> attributes, Map<String,Set<Locale>> localizedAttributes)
protected Map<String,Object> collectValues(Set<String> attributes, Function<String,Object> attributeValue)
protected Map<String,Object> collectLocalizedValues(Map<String,Set<Locale>> localizedAttributes, BiFunction<String,Locale,Object> localizedAttributeValue)
protected Map<String,Object> getLocalizedValuesForAttribute(String attribute, Set<Locale> locales, BiFunction<String,Locale,Object> attributeValue)
protected Set<String> collectModifiedAttributes(ItemModelContext itemModelCtx, DataType dataType)
protected Map<String,Set<Locale>> collectModifiedLocalizedAttributes(ItemModelContext itemModelCtx, DataType dataType)
protected void copyInvocationContext(Context invocationCtx,
Context toCtx)
public void setTypeFacade(TypeFacade typeFacade)
public TypeFacade getTypeFacade()
public void setScriptEvaluationService(ScriptEvaluationService scriptEvaluationService)
public ScriptEvaluationService getScriptEvaluationService()
public void setLocalizationService(LocalizationService localizationService)
public LocalizationService getLocalizationService()
public void setWorkflowActivationSupportedTypes(Set<String> workflowActivationSupportedTypes)
public void setTypeService(TypeService typeService)
public TypeService getTypeService()
Copyright © 2017 SAP SE. All Rights Reserved.