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:
Serializable
Generated model class for type Workflow first defined at extension workflow.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated relation code constant for relationJobCronJobRelationdefining source attributejobin extensionprocessing.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofWorkflow.actionsattribute defined at extensionworkflow.static final StringGenerated constant - Attribute key ofWorkflow.attachmentsattribute defined at extensionworkflow.static final StringGenerated constant - Attribute key ofWorkflow.descriptionattribute defined at extensionworkflow.static final StringGenerated 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, CURRENTRETRY, CURRENTSTEP, EMAILADDRESS, EMAILNOTIFICATIONTEMPLATE, ENDTIME, ERRORMODE, FILESCOUNT, FILESDAYSOLD, FILESOPERATOR, JOB, LOGFILES, LOGLEVELDATABASE, LOGLEVELFILE, LOGS, LOGSCOUNT, LOGSDAYSOLD, LOGSOPERATOR, LOGTEXT, LOGTODATABASE, LOGTOFILE, NODEGROUP, NODEID, NUMBEROFRETRIES, PENDINGSTEPS, PRIORITY, PROCESSEDSTEPS, QUERYCOUNT, REMOVEONEXIT, REQUESTABORT, REQUESTABORTSTEP, RESULT, RETRY, RUNNINGONCLUSTERNODE, SENDEMAIL, SESSIONCONTEXTVALUES, SESSIONCURRENCY, SESSIONLANGUAGE, SESSIONUSER, SINGLEEXECUTABLE, STARTTIME, STATUS, TIMETABLE, TRIGGERS, USEREADONLYDATASOURCEFields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.Generated constructor - Default constructor for creation with existing contextDeprecated, 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
Modifier and TypeMethodDescriptionGenerated method - Getter of theWorkflow.actionsattribute defined at extensionworkflow.Generated method - Getter of theWorkflow.attachmentsattribute defined at extensionworkflow.Generated method - Getter of theWorkflow.descriptionattribute defined at extensionworkflow.getDescription(Locale loc) Generated method - Getter of theWorkflow.descriptionattribute defined at extensionworkflow.getJob()Generated method - Getter of theCronJob.jobattribute defined at extensionprocessingand redeclared at extensionworkflow.getName()Generated method - Getter of theWorkflow.nameattribute defined at extensionworkflow.Generated method - Getter of theWorkflow.nameattribute defined at extensionworkflow.getOwner()Generated method - Getter of theItem.ownerattribute defined at extensioncoreand redeclared at extensionworkflow.voidsetActions(List<WorkflowActionModel> value) Generated method - Setter ofWorkflow.actionsattribute defined at extensionworkflow.voidGenerated method - Setter ofWorkflow.attachmentsattribute defined at extensionworkflow.voidsetDescription(String value) Generated method - Setter ofWorkflow.descriptionattribute defined at extensionworkflow.voidsetDescription(String value, Locale loc) Generated method - Setter ofWorkflow.descriptionattribute defined at extensionworkflow.voidGenerated method - Initial setter ofCronJob.jobattribute defined at extensionprocessingand redeclared at extensionworkflow.voidGenerated method - Setter ofWorkflow.nameattribute defined at extensionworkflow.voidGenerated method - Setter ofWorkflow.nameattribute defined at extensionworkflow.voidGenerated 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, getCurrentRetry, getCurrentStep, getEmailAddress, getEmailNotificationTemplate, getEndTime, getErrorMode, getFilesCount, getFilesDaysOld, getFilesOperator, getLogFiles, getLogLevelDatabase, getLogLevelFile, getLogs, getLogsCount, getLogsDaysOld, getLogsOperator, getLogText, getLogToDatabase, getLogToFile, getNodeGroup, getNodeID, getNumberOfRetries, getPendingSteps, getPriority, getProcessedSteps, getQueryCount, getRemoveOnExit, getRequestAbort, getRequestAbortStep, getResult, getRetry, getRunningOnClusterNode, getSendEmail, getSessionCurrency, getSessionLanguage, getSessionUser, getSingleExecutable, getStartTime, getStatus, getTimeTable, getTriggers, getUseReadOnlyDatasource, setActive, setActiveCronJobHistory, setAlternativeDataSourceID, setChangeRecordingEnabled, setCode, setCronJobHistoryEntries, setCurrentRetry, setEmailAddress, setEmailNotificationTemplate, setEndTime, setErrorMode, setFilesCount, setFilesDaysOld, setFilesOperator, setLogFiles, setLogLevelDatabase, setLogLevelFile, setLogsCount, setLogsDaysOld, setLogsOperator, setLogToDatabase, setLogToFile, setNodeGroup, setNodeID, setNumberOfRetries, setPendingSteps, setPriority, setProcessedSteps, setQueryCount, setRemoveOnExit, setRequestAbort, setRequestAbortStep, setResult, setRetry, setRunningOnClusterNode, setSendEmail, setSessionCurrency, setSessionLanguage, setSessionUser, setSingleExecutable, setStartTime, setStatus, setTriggers, setUseReadOnlyDatasourceMethods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, isSealed, setComments, setCreationtime, setModifiedtimeMethods 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 Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
_JOBCRONJOBRELATION
Generated relation code constant for relationJobCronJobRelationdefining source attributejobin extensionprocessing.- See Also:
-
NAME
Generated constant - Attribute key ofWorkflow.nameattribute defined at extensionworkflow.- See Also:
-
DESCRIPTION
Generated constant - Attribute key ofWorkflow.descriptionattribute defined at extensionworkflow.- See Also:
-
ACTIONS
Generated constant - Attribute key ofWorkflow.actionsattribute defined at extensionworkflow.- See Also:
-
ATTACHMENTS
Generated constant - Attribute key ofWorkflow.attachmentsattribute defined at extensionworkflow.- See Also:
-
-
Constructor Details
-
WorkflowModel
public WorkflowModel()Generated constructor - Default constructor for generic creation. -
WorkflowModel
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
WorkflowModel
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 Details
-
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 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
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
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:
IllegalArgumentException- if localization key cannot be mapped to data language
-
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
Generated method - Getter of theWorkflow.nameattribute defined at extensionworkflow.- Returns:
- the name - name of the workflow
-
getName
Generated method - Getter of theWorkflow.nameattribute defined at extensionworkflow.- Parameters:
loc- the value localization key- Returns:
- the name - name of the workflow
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getOwner
Generated method - Getter of theItem.ownerattribute defined at extensioncoreand redeclared at extensionworkflow. -
setActions
Generated method - Setter ofWorkflow.actionsattribute defined at extensionworkflow.- Parameters:
value- the actions
-
setAttachments
@Accessor(qualifier="attachments", type=SETTER) public void setAttachments(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
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(String value, 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:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setJob
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
Generated method - Setter ofWorkflow.nameattribute defined at extensionworkflow.- Parameters:
value- the name - name of the workflow
-
setName
Generated method - Setter ofWorkflow.nameattribute defined at extensionworkflow.- Parameters:
value- the name - name of the workflowloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setOwner
Generated method - Setter ofItem.ownerattribute defined at extensioncoreand redeclared at extensionworkflow. Will only accept values of typeUserModel.
-