WorkflowTemplateModel
Template for creating an workflow instance. The instance will be getting the attributes of this template.@Deprecated public class WorkflowTemplate extends GeneratedWorkflowTemplate
Job.JobFileLogContainer, Job.SynchronicityGenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationExceptionACTIONS, ACTIONSHANDLER, ACTIVATIONSCRIPT, DEFAULT_INITIAL_ATTRIBUTES, DESCRIPTION, NAME, VISIBLEFORPRINCIPALS, WORKFLOWTEMPLATE2PRINCIPALRELATION_MARKMODIFIED, WORKFLOWTEMPLATE2PRINCIPALRELATION_SRC_ORDERED, WORKFLOWTEMPLATE2PRINCIPALRELATION_TGT_ORDEREDCTX_CURRENTCRONJOB, CTX_CURRENTJOBACTIVE, ALTERNATIVEDATASOURCEID, CHANGERECORDINGENABLED, CODE, CRONJOBS, CRONJOBSHANDLER, EMAILADDRESS, EMAILNOTIFICATIONTEMPLATE, ERRORMODE, LOGLEVELDATABASE, LOGLEVELFILE, LOGTODATABASE, LOGTOFILE, NODEGROUP, NODEID, PRIORITY, REMOVEONEXIT, REQUESTABORT, REQUESTABORTSTEP, RESTRICTIONS, RESTRICTIONSHANDLER, RETRY, SENDEMAIL, SESSIONCONTEXTVALUES, SESSIONCURRENCY, SESSIONLANGUAGE, SESSIONUSER, SINGLEEXECUTABLE, TRIGGERS, TRIGGERSHANDLERLANGUAGE_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 |
|---|
WorkflowTemplate()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToActions(SessionContext ctx,
WorkflowActionTemplate value)
Deprecated.
Generated method - Adds
value to actions. |
void |
copyAndConnectionAttribute(WorkflowDecisionTemplate workflowDecisionTemplate,
java.util.List<WorkflowAction> workflowActions,
WorkflowDecision newDecision)
Deprecated.
Sets the andConntection Attribute on the extendet Relation WorkflowActionLinkRelation.
|
protected java.util.List<WorkflowAction> |
createActions(Workflow workflow)
Deprecated.
Creates new actions corresponding to the action templates set to this workflow template.
|
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Deprecated.
Has to be implemented for each concrete subtype of item.
|
Workflow |
createWorkflow()
Deprecated.
since ages - as of release 4.3, plase use
WorkflowService.createWorkflow(WorkflowTemplateModel,de.hybris.platform.core.model.user.UserModel)
Creates a new workflow instance using this template for getting attributes. |
protected WorkflowAction |
getWorkAction(WorkflowActionTemplate templateAction,
java.util.List<WorkflowAction> workflowActions)
Deprecated.
Gets the action out of given action list which was created by given action template.
|
protected boolean |
isValidWorkflowTemplateActions()
Deprecated.
checks if all workflow template actions have at least one option, except for the actions with action type end
|
protected CronJob.CronJobResult |
performCronJob(CronJob cronJob)
Deprecated.
You have to implement this method in your
Job. |
void |
remove(SessionContext ctx)
Deprecated.
First all assigned
CronJobs were removed, than the Job itself. |
void |
setOwner(Item item)
Deprecated.
|
addToActions, addToVisibleForPrincipals, addToVisibleForPrincipals, getActions, getActions, getActivationScript, getActivationScript, getAllDescription, getAllDescription, getAllName, getAllName, getDefaultAttributeModes, getDescription, getDescription, getName, getName, getVisibleForPrincipals, getVisibleForPrincipals, getVisibleForPrincipalsCount, getVisibleForPrincipalsCount, isMarkModifiedDisabled, removeFromActions, removeFromActions, removeFromVisibleForPrincipals, removeFromVisibleForPrincipals, setActions, setActions, setActivationScript, setActivationScript, setAllDescription, setAllDescription, setAllName, setAllName, setDescription, setDescription, setName, setName, setVisibleForPrincipals, setVisibleForPrincipalscanPerform, canUndo, checkRemovable, configureCronjob, createLogContext, debug, error, fatal, getConfigAttributes, getCronJobsByCode, getCronJobsByCode, getCurrentLogContainer, getEffectiveLogLevel, getNonInitialAttributes, info, isAbortable, isDebugEnabled, isEnabledFor, isErrorEnabled, isInfoEnabled, isPerformable, isPerformable, isUndoable, isWarnEnabled, jobIsCurrentlyRunning, log, logToFile, perform, perform, perform, prepareAfterFinishEvent, prepareBeforeStartEvent, saveToLogFile, sendFinishedEvent, sendStartEvent, setCode, setCronJobs, setCurrentLogContainer, setNonInitialAttributes, startOwnSession, stopOwnSession, switchDataSource, undo, undo, undoCronJob, unsetAlternativeDataSource, unsetCurrentLogContainer, warnaddToRestrictions, addToRestrictions, addToTriggers, addToTriggers, getAlternativeDataSourceID, getAlternativeDataSourceID, getCode, getCode, getCronJobs, getCronJobs, getEmailAddress, getEmailAddress, getEmailNotificationTemplate, getEmailNotificationTemplate, getErrorMode, getErrorMode, getLogLevelDatabase, getLogLevelDatabase, getLogLevelFile, getLogLevelFile, getNodeGroup, getNodeGroup, getNodeID, getNodeID, getNodeIDAsPrimitive, getNodeIDAsPrimitive, getPriority, getPriority, getPriorityAsPrimitive, getPriorityAsPrimitive, getRestrictions, getRestrictions, getSessionCurrency, getSessionCurrency, getSessionLanguage, getSessionLanguage, getSessionUser, getSessionUser, getTriggers, getTriggers, isActive, isActive, isActiveAsPrimitive, isActiveAsPrimitive, isChangeRecordingEnabled, isChangeRecordingEnabled, isChangeRecordingEnabledAsPrimitive, isChangeRecordingEnabledAsPrimitive, isLogToDatabase, isLogToDatabase, isLogToDatabaseAsPrimitive, isLogToDatabaseAsPrimitive, isLogToFile, isLogToFile, isLogToFileAsPrimitive, isLogToFileAsPrimitive, isRemoveOnExit, isRemoveOnExit, isRemoveOnExitAsPrimitive, isRemoveOnExitAsPrimitive, isRequestAbort, isRequestAbort, isRequestAbortAsPrimitive, isRequestAbortAsPrimitive, isRequestAbortStep, isRequestAbortStep, isRequestAbortStepAsPrimitive, isRequestAbortStepAsPrimitive, isRetry, isRetry, isRetryAsPrimitive, isRetryAsPrimitive, isSendEmail, isSendEmail, isSendEmailAsPrimitive, isSendEmailAsPrimitive, isSingleExecutable, isSingleExecutable, isSingleExecutableAsPrimitive, isSingleExecutableAsPrimitive, removeFromRestrictions, removeFromRestrictions, removeFromTriggers, removeFromTriggers, setActive, setActive, setActive, setActive, setAlternativeDataSourceID, setAlternativeDataSourceID, setChangeRecordingEnabled, setChangeRecordingEnabled, setChangeRecordingEnabled, setChangeRecordingEnabled, setCode, setEmailAddress, setEmailAddress, setEmailNotificationTemplate, setEmailNotificationTemplate, setErrorMode, setErrorMode, setLogLevelDatabase, setLogLevelDatabase, setLogLevelFile, setLogLevelFile, setLogToDatabase, setLogToDatabase, setLogToDatabase, setLogToDatabase, setLogToFile, setLogToFile, setLogToFile, setLogToFile, setNodeGroup, setNodeGroup, setNodeID, setNodeID, setNodeID, setNodeID, setPriority, setPriority, setPriority, setPriority, setRemoveOnExit, setRemoveOnExit, setRemoveOnExit, setRemoveOnExit, setRequestAbort, setRequestAbort, setRequestAbort, setRequestAbort, setRequestAbortStep, setRequestAbortStep, setRequestAbortStep, setRequestAbortStep, setRestrictions, setRestrictions, setRetry, setRetry, setRetry, setRetry, setSendEmail, setSendEmail, setSendEmail, setSendEmail, setSessionCurrency, setSessionCurrency, setSessionLanguage, setSessionLanguage, setSessionUser, setSessionUser, setSingleExecutable, setSingleExecutable, setSingleExecutable, setSingleExecutable, setTriggers, setTriggersgetInitialPropertiesgetAllLocalizedProperties, 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, 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, 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 Jobctx - 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 Workflow createWorkflow()
WorkflowService.createWorkflow(WorkflowTemplateModel,de.hybris.platform.core.model.user.UserModel)
Creates a new workflow instance using this template for getting attributes.protected java.util.List<WorkflowAction> createActions(Workflow workflow)
workflow - workflow instance set to the new action instancespublic void copyAndConnectionAttribute(WorkflowDecisionTemplate workflowDecisionTemplate, java.util.List<WorkflowAction> workflowActions, WorkflowDecision newDecision)
workflowDecisionTemplate - The decisionTemplate which holds the source for the copy.workflowActions - The list actions in this workflow.newDecision - The new workflowDecision which holds the target of the copy.protected WorkflowAction getWorkAction(WorkflowActionTemplate templateAction, java.util.List<WorkflowAction> workflowActions)
templateAction - template for which a corresponding action is searchedworkflowActions - list of actions which will be searchedprotected CronJob.CronJobResult performCronJob(CronJob cronJob) throws AbortCronJobException
JobJob. Here you can execute the job. You have to return a
CronJobResult that indicates whether the Job was successfully executed or not.performCronJob in class JobcronJob - the CronJob to executeCronJobResult that indicates whether the Job was successfully executed or not.
AbortCronJobExceptionCronJob.getFinishedResult(boolean),
CronJob.getAbortResult()public void addToActions(SessionContext ctx, WorkflowActionTemplate value)
GeneratedWorkflowTemplatevalue to actions.addToActions in class GeneratedWorkflowTemplatevalue - the item to add to actions - n-part of the WorkflowTemplateActionTemplateRelation; set of action templates from which a action will be created and set to the workflow created by the workflow template eachpublic void remove(SessionContext ctx) throws ConsistencyCheckException
JobCronJobs were removed, than the Job itself.remove in class Jobctx - A SessionContext objectConsistencyCheckException - if this item could not be removed for some reasonItem.remove(de.hybris.platform.jalo.SessionContext)public void setOwner(Item item) throws ConsistencyCheckException
setOwner in class ItemConsistencyCheckExceptionprotected boolean isValidWorkflowTemplateActions()
Copyright © 2018 SAP SE. All Rights Reserved.