WorkflowActionModel
Represents a real action which is created by a WorkflowActionTemplate. It holds a status
signalizing the current state the action is in.@Deprecated public class WorkflowAction extends GeneratedWorkflowAction
GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationExceptionACTIVATED, ATTACHMENTITEMS, ATTACHMENTS, COMMENT, DECISIONS, DECISIONSHANDLER, DEFAULT_INITIAL_ATTRIBUTES, FIRSTACTIVATED, INCOMINGDECISIONS, INCOMINGLINKS, INCOMINGLINKSSTR, SELECTEDDECISION, STATUS, TEMPLATE, WORKFLOW, WORKFLOWACTIONITEMATTACHMENTRELATION_MARKMODIFIED, WORKFLOWACTIONITEMATTACHMENTRELATION_SRC_ORDERED, WORKFLOWACTIONITEMATTACHMENTRELATION_TGT_ORDERED, WORKFLOWACTIONLINKRELATION_MARKMODIFIED, WORKFLOWACTIONLINKRELATION_SRC_ORDERED, WORKFLOWACTIONLINKRELATION_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 |
|---|
WorkflowAction()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate()
Deprecated.
Sets the status of this action to active if it is not disabled.
|
void |
checkIncomingLinks()
Deprecated.
as of release 4.3, private method in
WorkflowProcessingService
This method gets called by its predecessors in the workflow. It checks if its conditions for
activation are met and calls the activate() method if so. |
void |
complete()
Deprecated.
Sets the status to
complete and tries to activate all successors. |
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Deprecated.
Has to be implemented for each concrete subtype of item.
|
void |
decide()
Deprecated.
as of release 4.3, please use
WorkflowProcessingService.decideAction(WorkflowActionModel, de.hybris.platform.workflow.model.WorkflowDecisionModel)
completes the workflow action and activates the selected decision |
void |
disable()
Deprecated.
Disables the action.
|
static EnumerationValue |
getActiveStatus()
Deprecated.
as of release 4.3, please use
WorkflowActionStatus.IN_PROGRESS
Gets the constant value for the active status. |
List<Item> |
getAttachmentItems(SessionContext ctx)
Deprecated.
Generated method - Getter of the
WorkflowAction.attachmentItems attribute. |
static EnumerationValue |
getCompletedStatus()
Deprecated.
as of release 4.3, please use
WorkflowActionStatus.COMPLETED
Gets the constant value for the completed status. |
WorkflowDecision |
getDecisionByName(String name)
Deprecated.
Returns the decision with the given name, if this action has no such decision, returns null.
|
long |
getDecisionsCount()
Deprecated.
as of release 4.3, use
WorkflowActionModel.getDecisions()
Returns the number of decisions of this workflow action |
static EnumerationValue |
getDisabledStatus()
Deprecated.
as of release 4.3, please use
WorkflowActionStatus.DISABLED
Gets the constant value for the disabled status. |
static EnumerationValue |
getEndActionType()
Deprecated.
as of release 4.3, please use
WorkflowActionType.END
Gets the constant value for the end actiontype. |
static EnumerationValue |
getEndedByWorkflowStatus()
Deprecated.
as of release 4.3, please use
WorkflowActionStatus.ENDED_THROUGH_END_OF_WORKFLOW
Gets the constant value for the endThroughEndOfWorkflow status. |
static EnumerationValue |
getIdleStatus()
Deprecated.
as of release 4.3, please use
WorkflowActionStatus.PENDING
Gets the constant value for the idle status. |
List<Link> |
getIncomingLinks(SessionContext ctx)
Deprecated.
as of release 4.3, private method in
WorkflowProcessingService |
String |
getIncomingLinksStr(SessionContext ctx)
Deprecated.
Generated method - Getter of the
WorkflowAction.incomingLinksStr attribute. |
static EnumerationValue |
getNormalActionType()
Deprecated.
as of release 4.3, please use
WorkflowActionType.NORMAL
Gets the constant value for the normal actiontype. |
static EnumerationValue |
getStartActionType()
Deprecated.
as of release 4.3, please use
WorkflowActionType.START
Gets the constant value for the start actiontype. |
static EnumerationValue |
getTerminatedStatus()
Deprecated.
as of release 4.3, please use
WorkflowActionStatus.TERMINATED
Gets the constant value for the terminated status. |
protected void |
idle()
Deprecated.
Set the status of this action to
idle without further checks. |
boolean |
isActive()
Deprecated.
as of release 4.3, please use status comparison
Checks whether the action is active.
|
boolean |
isCompleted()
Deprecated.
as of release 4.3, please use
WorkflowActionService.isCompleted(de.hybris.platform.workflow.model.WorkflowActionModel)
Checks whether the action is completed. |
boolean |
isDisabled()
Deprecated.
as of release 4.3, please use status comparison
Checks whether the action is disabled.
|
boolean |
isEndedByWorkflow()
Deprecated.
as of release 4.3, please use status comparison
|
boolean |
isUserAssignedPrincipal()
Deprecated.
as of release 4.3, please use
WorkflowActionService.isUserAssignedPrincipal(de.hybris.platform.workflow.model.WorkflowActionModel)
checks if the user is a assigned principal for this action |
protected boolean |
predecessorsCompleted()
Deprecated.
Checks whether all predecessors are completed.
|
void |
reject()
Deprecated.
Rejects the action. Sets the status to
idle and activates all predecessors. |
protected void |
sendActivationEmail()
Deprecated.
as of release 4.3, please use
EmailService.createActivationEmail(de.hybris.platform.workflow.model.WorkflowActionModel)
Sends the activation mail. |
void |
tryActivate()
Deprecated.
Tries to activate the action. If the action is already completed, it will try to activate its
successors. If the action is not completed and all predecessors are completed the action will be
activated.
|
protected void |
tryActivatePredecessors()
Deprecated.
Tries to activate all predecessors.
|
protected void |
tryActivateSuccessors()
Deprecated.
Tries to activate all successors.
|
addToAttachments, addToAttachments, addToDecisions, addToDecisions, addToIncomingDecisions, addToIncomingDecisions, getActivated, getActivated, getAttachmentItems, getAttachments, getAttachments, getAttachmentsCount, getAttachmentsCount, getComment, getComment, getDecisions, getDecisions, getDefaultAttributeModes, getFirstActivated, getFirstActivated, getIncomingDecisions, getIncomingDecisions, getIncomingDecisionsCount, getIncomingDecisionsCount, getIncomingLinks, getIncomingLinksStr, getSelectedDecision, getSelectedDecision, getStatus, getStatus, getTemplate, getTemplate, getWorkflow, getWorkflow, removeFromAttachments, removeFromAttachments, removeFromDecisions, removeFromDecisions, removeFromIncomingDecisions, removeFromIncomingDecisions, setActivated, setActivated, setAttachments, setAttachments, setComment, setComment, setDecisions, setDecisions, setFirstActivated, setFirstActivated, setIncomingDecisions, setIncomingDecisions, setSelectedDecision, setSelectedDecision, setStatus, setStatus, setTemplate, setTemplate, setWorkflow, setWorkflowgetInitialProperties, getNonInitialAttributes, getPredecessorsStr, setPrincipalAssigned, writeAutomatedComment, writeAutomatedCommentaddToPredecessors, addToPredecessors, addToSuccessors, 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, 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, readResolve, refreshRemote, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, 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, writeReplacegetImplementation, setTenant@Deprecated public static EnumerationValue getStartActionType()
WorkflowActionType.START
Gets the constant value for the start actiontype.start actiontype@Deprecated public static EnumerationValue getNormalActionType()
WorkflowActionType.NORMAL
Gets the constant value for the normal actiontype.normal actiontype@Deprecated public static EnumerationValue getEndActionType()
WorkflowActionType.END
Gets the constant value for the end actiontype.end actiontype@Deprecated public static EnumerationValue getActiveStatus()
WorkflowActionStatus.IN_PROGRESS
Gets the constant value for the active status.active status@Deprecated public static EnumerationValue getIdleStatus()
WorkflowActionStatus.PENDING
Gets the constant value for the idle status.idle status@Deprecated public static EnumerationValue getCompletedStatus()
WorkflowActionStatus.COMPLETED
Gets the constant value for the completed status.completed status@Deprecated public static EnumerationValue getEndedByWorkflowStatus()
WorkflowActionStatus.ENDED_THROUGH_END_OF_WORKFLOW
Gets the constant value for the endThroughEndOfWorkflow status.endThroughEndOfWorkflow status@Deprecated public static EnumerationValue getDisabledStatus()
WorkflowActionStatus.DISABLED
Gets the constant value for the disabled status.disabled status@Deprecated public static EnumerationValue getTerminatedStatus()
WorkflowActionStatus.TERMINATED
Gets the constant value for the terminated status.terminated statusprotected 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 GeneratedWorkflowActionctx - 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 rollbackedprotected void activate()
@Deprecated protected void sendActivationEmail()
EmailService.createActivationEmail(de.hybris.platform.workflow.model.WorkflowActionModel)
Sends the activation mail.protected void idle()
idle without further checks.@Deprecated public boolean isDisabled()
@Deprecated public boolean isEndedByWorkflow()
@Deprecated public boolean isActive()
@Deprecated public boolean isCompleted()
WorkflowActionService.isCompleted(de.hybris.platform.workflow.model.WorkflowActionModel)
Checks whether the action is completed.public void disable()
@Deprecated public void tryActivate()
@Deprecated protected boolean predecessorsCompleted()
@Deprecated protected void tryActivateSuccessors()
@Deprecated protected void tryActivatePredecessors()
public void complete()
complete and tries to activate all successors.@Deprecated public void reject()
idle and activates all predecessors.@Deprecated public void checkIncomingLinks() throws JaloInvalidParameterException, JaloBusinessException
WorkflowProcessingService
This method gets called by its predecessors in the workflow. It checks if its conditions for
activation are met and calls the activate() method if so.@Deprecated public void decide()
WorkflowProcessingService.decideAction(WorkflowActionModel, de.hybris.platform.workflow.model.WorkflowDecisionModel)
completes the workflow action and activates the selected decisionWorkflowActionDecideException - if user is not assigned principal but ignores it for automated workflow actionspublic WorkflowDecision getDecisionByName(String name)
name - @Deprecated public List<Link> getIncomingLinks(SessionContext ctx)
WorkflowProcessingServiceGeneratedWorkflowActionWorkflowAction.incomingLinks attribute.getIncomingLinks in class GeneratedWorkflowActionpublic String getIncomingLinksStr(SessionContext ctx)
GeneratedWorkflowActionWorkflowAction.incomingLinksStr attribute.getIncomingLinksStr in class GeneratedWorkflowAction@Deprecated public long getDecisionsCount()
WorkflowActionModel.getDecisions()
Returns the number of decisions of this workflow actionpublic List<Item> getAttachmentItems(SessionContext ctx)
GeneratedWorkflowActionWorkflowAction.attachmentItems attribute.getAttachmentItems in class GeneratedWorkflowAction@Deprecated public boolean isUserAssignedPrincipal()
WorkflowActionService.isUserAssignedPrincipal(de.hybris.platform.workflow.model.WorkflowActionModel)
checks if the user is a assigned principal for this actionCopyright © 2017 SAP SE. All Rights Reserved.