WorkflowActionTemplateModel
An action template used for creating new actions.@Deprecated public class WorkflowActionTemplate extends GeneratedWorkflowActionTemplate implements RequirementHolder
GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationExceptionCREATIONTYPE, DECISIONTEMPLATES, DECISIONTEMPLATESHANDLER, DEFAULT_INITIAL_ATTRIBUTES, INCOMINGLINKTEMPLATES, INCOMINGLINKTEMPLATESSTR, INCOMINGTEMPLATEDECISIONS, WORKFLOW, WORKFLOWACTIONTEMPLATELINKTEMPLATERELATION_MARKMODIFIED, WORKFLOWACTIONTEMPLATELINKTEMPLATERELATION_SRC_ORDERED, WORKFLOWACTIONTEMPLATELINKTEMPLATERELATION_TGT_ORDERED, WORKFLOWHANDLER, WORKFLOWPOSACTIONTYPE, CODE, DESCRIPTION, EMAILADDRESS, NAME, PREDECESSORS, PREDECESSORSSTR, PRINCIPALASSIGNED, RENDERERTEMPLATE, SENDEMAIL, SUCCESSORS, WORKFLOWACTIONCOMMENTS, WORKFLOWACTIONCOMMENTSHANDLER, WORKFLOWACTIONORDERINGRELATION_MARKMODIFIED, WORKFLOWACTIONORDERINGRELATION_SRC_ORDERED, WORKFLOWACTIONORDERINGRELATION_TGT_ORDEREDLANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
WorkflowActionTemplate()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToPredecessors(SessionContext ctx,
AbstractWorkflowAction value)
Deprecated.
since ages
|
void |
addToSuccessors(SessionContext ctx,
AbstractWorkflowAction value)
Deprecated.
since ages
|
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Deprecated.
Has to be implemented for each concrete subtype of item.
|
WorkflowAction |
createWorkflowAction(Workflow workflow)
Deprecated.
since ages - as of release 4.3, please use
WorkflowActionService.createWorkflowAction(de.hybris.platform.workflow.model.WorkflowActionTemplateModel, de.hybris.platform.workflow.model.WorkflowModel)
Creates a new action instance using attributes of this action template. |
ComposedType |
getCreationType(SessionContext ctx)
Deprecated.
Generated method - Getter of the
WorkflowActionTemplate.creationType attribute. |
long |
getDecisionsCount()
Deprecated.
since ages - as of release 4.3, please write your own flexible search query
Returns the number of decisions of this workflow action
|
java.util.List<Link> |
getIncomingLinkTemplates(SessionContext ctx)
Deprecated.
Generated method - Getter of the
WorkflowActionTemplate.incomingLinkTemplates attribute. |
java.lang.String |
getIncomingLinkTemplatesStr(SessionContext ctx)
Deprecated.
Generated method - Getter of the
WorkflowActionTemplate.incomingLinkTemplatesStr attribute. |
java.util.Set<? extends RequirementHolder> |
getRequirements()
Deprecated.
|
protected void |
perform(WorkflowAction action)
Deprecated.
Will be called after activation of given action.
|
void |
remove(SessionContext ctx)
Deprecated.
Removes this item.
|
void |
setCreationType(SessionContext ctx,
ComposedType value)
Deprecated.
Generated method - Setter of the
WorkflowActionTemplate.creationType attribute. |
addToDecisionTemplates, addToDecisionTemplates, addToIncomingTemplateDecisions, addToIncomingTemplateDecisions, getCreationType, getDecisionTemplates, getDecisionTemplates, getDefaultAttributeModes, getIncomingLinkTemplates, getIncomingLinkTemplatesStr, getIncomingTemplateDecisions, getIncomingTemplateDecisions, getIncomingTemplateDecisionsCount, getIncomingTemplateDecisionsCount, getWorkflow, getWorkflow, isMarkModifiedDisabled, removeFromDecisionTemplates, removeFromDecisionTemplates, removeFromIncomingTemplateDecisions, removeFromIncomingTemplateDecisions, setCreationType, setDecisionTemplates, setDecisionTemplates, setIncomingTemplateDecisions, setIncomingTemplateDecisions, setWorkflow, setWorkflowgetInitialProperties, getNonInitialAttributes, getPredecessorsStr, setPrincipalAssigned, writeAutomatedComment, writeAutomatedCommentaddToPredecessors, addToSuccessors, addToWorkflowActionComments, addToWorkflowActionComments, getActionType, getActionType, getAllDescription, getAllDescription, getAllName, getAllName, getCode, getCode, getDescription, getDescription, getEmailAddress, getEmailAddress, getName, getName, getPredecessors, getPredecessors, getPredecessorsCount, getPredecessorsCount, getPredecessorsStr, getPrincipalAssigned, getPrincipalAssigned, getRendererTemplate, getRendererTemplate, getSuccessors, getSuccessors, getSuccessorsCount, getSuccessorsCount, getWorkflowActionComments, getWorkflowActionComments, isSendEmail, isSendEmail, isSendEmailAsPrimitive, isSendEmailAsPrimitive, removeFromPredecessors, removeFromPredecessors, removeFromSuccessors, removeFromSuccessors, removeFromWorkflowActionComments, removeFromWorkflowActionComments, setActionType, setActionType, setAllDescription, setAllDescription, setAllName, setAllName, setCode, setCode, setDescription, setDescription, setEmailAddress, setEmailAddress, setName, setName, setPredecessors, setPredecessors, setPrincipalAssigned, setRendererTemplate, setRendererTemplate, setSendEmail, setSendEmail, setSendEmail, setSendEmail, setSuccessors, setSuccessors, setWorkflowActionComments, setWorkflowActionCommentsgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getImplementation, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getOwner, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, notifyManagerAboutItemRemoval, readResolve, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, toString, useTA, writeReplacesetTenantprotected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
ItemComposedType.newInstance(Map).
In case this method uses any of the attribute values during creation it is required to override
Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
Sn example:
public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
// here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
super.getNonInitialAttributes( ctx, allAttributes );
// remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
createItem in class GeneratedWorkflowActionTemplatectx - the current session context which this item is created withintype - the actual item type ( since subtypes may not provide a own jalo class this may be different from the
type which this method was implemented for )JaloBusinessException - indicates an error during creation - any changes will be rollbacked@Deprecated public WorkflowAction createWorkflowAction(Workflow workflow)
WorkflowActionService.createWorkflowAction(de.hybris.platform.workflow.model.WorkflowActionTemplateModel, de.hybris.platform.workflow.model.WorkflowModel)
Creates a new action instance using attributes of this action template.workflow - workflow instance set to created action@Deprecated public void addToPredecessors(SessionContext ctx, AbstractWorkflowAction value)
GeneratedAbstractWorkflowActionvalue to predecessors.addToPredecessors in class GeneratedAbstractWorkflowActionvalue - the item to add to predecessors@Deprecated public void addToSuccessors(SessionContext ctx, AbstractWorkflowAction value)
GeneratedAbstractWorkflowActionvalue to successors.addToSuccessors in class GeneratedAbstractWorkflowActionvalue - the item to add to successorspublic java.util.Set<? extends RequirementHolder> getRequirements()
getRequirements in interface RequirementHolderprotected void perform(WorkflowAction action)
WorkflowAction.reject() or WorkflowAction.complete().action - action instance which has to be performed, use settings from this action, not from this templatepublic void remove(SessionContext ctx) throws ConsistencyCheckException
Item
This method is using the following attributes of the given SessionContext:
| CacheUsage | Language | StagingMethod | ||
|---|---|---|---|---|
| n/a (this is a setter method) | no, language doesn't matter for removal | yes if called on a StageableItem, no otherwise |
remove in class Itemctx - A SessionContext objectConsistencyCheckException - if this item could not be removed for some reasonpublic java.util.List<Link> getIncomingLinkTemplates(SessionContext ctx)
GeneratedWorkflowActionTemplateWorkflowActionTemplate.incomingLinkTemplates attribute.getIncomingLinkTemplates in class GeneratedWorkflowActionTemplatepublic java.lang.String getIncomingLinkTemplatesStr(SessionContext ctx)
GeneratedWorkflowActionTemplateWorkflowActionTemplate.incomingLinkTemplatesStr attribute.getIncomingLinkTemplatesStr in class GeneratedWorkflowActionTemplate@Deprecated public long getDecisionsCount()
public ComposedType getCreationType(SessionContext ctx)
GeneratedWorkflowActionTemplateWorkflowActionTemplate.creationType attribute.getCreationType in class GeneratedWorkflowActionTemplatepublic void setCreationType(SessionContext ctx, ComposedType value)
GeneratedWorkflowActionTemplateWorkflowActionTemplate.creationType attribute.setCreationType in class GeneratedWorkflowActionTemplatevalue - the creationTypeCopyright © 2018 SAP SE. All Rights Reserved.