Class WorkflowModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.cronjob.model.CronJobModel
-
- de.hybris.platform.workflow.model.WorkflowModel
-
- All Implemented Interfaces:
java.io.Serializable
public class WorkflowModel extends CronJobModel
Generated model class for type Workflow first defined at extension workflow.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_JOBCRONJOBRELATIONGenerated relation code constant for relationJobCronJobRelationdefining source attributejobin extensionprocessing.static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringACTIONSGenerated constant - Attribute key ofWorkflow.actionsattribute defined at extensionworkflow.static java.lang.StringATTACHMENTSGenerated constant - Attribute key ofWorkflow.attachmentsattribute defined at extensionworkflow.static java.lang.StringDESCRIPTIONGenerated constant - Attribute key ofWorkflow.descriptionattribute defined at extensionworkflow.static java.lang.StringNAMEGenerated constant - Attribute key ofWorkflow.nameattribute defined at extensionworkflow.-
Fields inherited from class de.hybris.platform.cronjob.model.CronJobModel
ACTIVE, ACTIVECRONJOBHISTORY, ALTERNATIVEDATASOURCEID, CHANGERECORDINGENABLED, CHANGES, CODE, CRONJOBHISTORYENTRIES, CURRENTSTEP, EMAILADDRESS, EMAILNOTIFICATIONTEMPLATE, ENDTIME, ERRORMODE, FILESCOUNT, FILESDAYSOLD, FILESOPERATOR, JOB, LOGFILES, LOGLEVELDATABASE, LOGLEVELFILE, LOGS, LOGSCOUNT, LOGSDAYSOLD, LOGSOPERATOR, LOGTEXT, LOGTODATABASE, LOGTOFILE, NODEGROUP, NODEID, PENDINGSTEPS, PRIORITY, PROCESSEDSTEPS, QUERYCOUNT, REMOVEONEXIT, REQUESTABORT, REQUESTABORTSTEP, RESULT, RETRY, RUNNINGONCLUSTERNODE, SENDEMAIL, SESSIONCONTEXTVALUES, SESSIONCURRENCY, SESSIONLANGUAGE, SESSIONUSER, SINGLEEXECUTABLE, STARTTIME, STATUS, TIMETABLE, TRIGGERS
-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description WorkflowModel()Generated constructor - Default constructor for generic creation.WorkflowModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextWorkflowModel(WorkflowTemplateModel _job)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersWorkflowModel(WorkflowTemplateModel _job, UserModel _owner)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<WorkflowActionModel>getActions()Generated method - Getter of theWorkflow.actionsattribute defined at extensionworkflow.java.util.List<WorkflowItemAttachmentModel>getAttachments()Generated method - Getter of theWorkflow.attachmentsattribute defined at extensionworkflow.java.lang.StringgetDescription()Generated method - Getter of theWorkflow.descriptionattribute defined at extensionworkflow.java.lang.StringgetDescription(java.util.Locale loc)Generated method - Getter of theWorkflow.descriptionattribute defined at extensionworkflow.WorkflowTemplateModelgetJob()Generated method - Getter of theCronJob.jobattribute defined at extensionprocessingand redeclared at extensionworkflow.java.lang.StringgetName()Generated method - Getter of theWorkflow.nameattribute defined at extensionworkflow.java.lang.StringgetName(java.util.Locale loc)Generated method - Getter of theWorkflow.nameattribute defined at extensionworkflow.UserModelgetOwner()Generated method - Getter of theItem.ownerattribute defined at extensioncoreand redeclared at extensionworkflow.voidsetActions(java.util.List<WorkflowActionModel> value)Generated method - Setter ofWorkflow.actionsattribute defined at extensionworkflow.voidsetAttachments(java.util.List<WorkflowItemAttachmentModel> value)Generated method - Setter ofWorkflow.attachmentsattribute defined at extensionworkflow.voidsetDescription(java.lang.String value)Generated method - Setter ofWorkflow.descriptionattribute defined at extensionworkflow.voidsetDescription(java.lang.String value, java.util.Locale loc)Generated method - Setter ofWorkflow.descriptionattribute defined at extensionworkflow.voidsetJob(JobModel value)Generated method - Initial setter ofCronJob.jobattribute defined at extensionprocessingand redeclared at extensionworkflow.voidsetName(java.lang.String value)Generated method - Setter ofWorkflow.nameattribute defined at extensionworkflow.voidsetName(java.lang.String value, java.util.Locale loc)Generated method - Setter ofWorkflow.nameattribute defined at extensionworkflow.voidsetOwner(ItemModel value)Generated method - Setter ofItem.ownerattribute defined at extensioncoreand redeclared at extensionworkflow.-
Methods inherited from class de.hybris.platform.cronjob.model.CronJobModel
getActive, getActiveCronJobHistory, getAlternativeDataSourceID, getChangeRecordingEnabled, getChanges, getCode, getCronJobHistoryEntries, getCurrentStep, getEmailAddress, getEmailNotificationTemplate, getEndTime, getErrorMode, getFilesCount, getFilesDaysOld, getFilesOperator, getLogFiles, getLogLevelDatabase, getLogLevelFile, getLogs, getLogsCount, getLogsDaysOld, getLogsOperator, getLogText, getLogToDatabase, getLogToFile, getNodeGroup, getNodeID, getPendingSteps, getPriority, getProcessedSteps, getQueryCount, getRemoveOnExit, getRequestAbort, getRequestAbortStep, getResult, getRetry, getRunningOnClusterNode, getSendEmail, getSessionCurrency, getSessionLanguage, getSessionUser, getSingleExecutable, getStartTime, getStatus, getTimeTable, getTriggers, setActive, setActiveCronJobHistory, setAlternativeDataSourceID, setChangeRecordingEnabled, setCode, setCronJobHistoryEntries, setEmailAddress, setEmailNotificationTemplate, setEndTime, setErrorMode, setFilesCount, setFilesDaysOld, setFilesOperator, setLogFiles, setLogLevelDatabase, setLogLevelFile, setLogsCount, setLogsDaysOld, setLogsOperator, setLogToDatabase, setLogToFile, setNodeGroup, setNodeID, setPendingSteps, setPriority, setProcessedSteps, setQueryCount, setRemoveOnExit, setRequestAbort, setRequestAbortStep, setResult, setRetry, setRunningOnClusterNode, setSendEmail, setSessionCurrency, setSessionLanguage, setSessionUser, setSingleExecutable, setStartTime, setStatus, setTriggers
-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, isSealed, setComments, setCreationtime, setModifiedtime
-
Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
_JOBCRONJOBRELATION
public static final java.lang.String _JOBCRONJOBRELATION
Generated relation code constant for relationJobCronJobRelationdefining source attributejobin extensionprocessing.- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
Generated constant - Attribute key ofWorkflow.nameattribute defined at extensionworkflow.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Generated constant - Attribute key ofWorkflow.descriptionattribute defined at extensionworkflow.- See Also:
- Constant Field Values
-
ACTIONS
public static final java.lang.String ACTIONS
Generated constant - Attribute key ofWorkflow.actionsattribute defined at extensionworkflow.- See Also:
- Constant Field Values
-
ATTACHMENTS
public static final java.lang.String ATTACHMENTS
Generated constant - Attribute key ofWorkflow.attachmentsattribute defined at extensionworkflow.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WorkflowModel
public WorkflowModel()
Generated constructor - Default constructor for generic creation.
-
WorkflowModel
public WorkflowModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
WorkflowModel
@Deprecated(since="4.1.1", forRemoval=true) public WorkflowModel(WorkflowTemplateModel _job)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_job- initial attribute declared by typeWorkflowat extensionworkflow
-
WorkflowModel
@Deprecated(since="4.1.1", forRemoval=true) public WorkflowModel(WorkflowTemplateModel _job, UserModel _owner)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_job- initial attribute declared by typeWorkflowat extensionworkflow_owner- initial attribute declared by typeWorkflowat extensionworkflow
-
-
Method Detail
-
getActions
@Accessor(qualifier="actions", type=GETTER) public java.util.List<WorkflowActionModel> getActions()
Generated method - Getter of theWorkflow.actionsattribute defined at extensionworkflow. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the actions
-
getAttachments
@Accessor(qualifier="attachments", type=GETTER) public java.util.List<WorkflowItemAttachmentModel> getAttachments()
Generated method - Getter of theWorkflow.attachmentsattribute defined at extensionworkflow. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the attachments - n-part of the WorkflowItemAttachmentRelation; holds a set of attachments (item references) belonging to the topic of workflow
-
getDescription
@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription()
Generated method - Getter of theWorkflow.descriptionattribute defined at extensionworkflow.- Returns:
- the description - global description of the workflow while each action has its own description
-
getDescription
@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription(java.util.Locale loc)
Generated method - Getter of theWorkflow.descriptionattribute defined at extensionworkflow.- Parameters:
loc- the value localization key- Returns:
- the description - global description of the workflow while each action has its own description
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
getJob
@Accessor(qualifier="job", type=GETTER) public WorkflowTemplateModel getJob()
Generated method - Getter of theCronJob.jobattribute defined at extensionprocessingand redeclared at extensionworkflow.- Overrides:
getJobin classCronJobModel- Returns:
- the job - related workflow template this workflow is created from (never changable)
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName()
Generated method - Getter of theWorkflow.nameattribute defined at extensionworkflow.- Returns:
- the name - name of the workflow
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName(java.util.Locale loc)
Generated method - Getter of theWorkflow.nameattribute defined at extensionworkflow.- Parameters:
loc- the value localization key- Returns:
- the name - name of the workflow
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
getOwner
@Accessor(qualifier="owner", type=GETTER) public UserModel getOwner()
Generated method - Getter of theItem.ownerattribute defined at extensioncoreand redeclared at extensionworkflow.
-
setActions
@Accessor(qualifier="actions", type=SETTER) public void setActions(java.util.List<WorkflowActionModel> value)
Generated method - Setter ofWorkflow.actionsattribute defined at extensionworkflow.- Parameters:
value- the actions
-
setAttachments
@Accessor(qualifier="attachments", type=SETTER) public void setAttachments(java.util.List<WorkflowItemAttachmentModel> value)
Generated method - Setter ofWorkflow.attachmentsattribute defined at extensionworkflow.- Parameters:
value- the attachments - n-part of the WorkflowItemAttachmentRelation; holds a set of attachments (item references) belonging to the topic of workflow
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value)
Generated method - Setter ofWorkflow.descriptionattribute defined at extensionworkflow.- Parameters:
value- the description - global description of the workflow while each action has its own description
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofWorkflow.descriptionattribute defined at extensionworkflow.- Parameters:
value- the description - global description of the workflow while each action has its own descriptionloc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
setJob
@Accessor(qualifier="job", type=SETTER) public void setJob(JobModel value)
Generated method - Initial setter ofCronJob.jobattribute defined at extensionprocessingand redeclared at extensionworkflow. Can only be used at creation of model - before first save. Will only accept values of typeWorkflowTemplateModel.- Overrides:
setJobin classCronJobModel- Parameters:
value- the job - related workflow template this workflow is created from (never changable)
-
setName
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value)
Generated method - Setter ofWorkflow.nameattribute defined at extensionworkflow.- Parameters:
value- the name - name of the workflow
-
setName
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofWorkflow.nameattribute defined at extensionworkflow.- Parameters:
value- the name - name of the workflowloc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
-