Package com.axelor.meta.db
Class MetaWorkflowRun
java.lang.Object
com.axelor.db.Model
com.axelor.auth.db.AuditableModel
com.axelor.meta.db.MetaWorkflowRun
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the givenMetaWorkflowNodeRunitem to thenodeRunscollection.voidClear thenodeRunscollection.booleanThe call or boundary node in the parent run that started this one.The parent's park this run wakes when it ends; null when nothing waits on it.getId()Custom model name; null for a real entity.The last node the run reached.getModel()The run that started this one; null for a top-level run.What started the run; null for a call's child or a boundary's escape branch.Id of the definition that ran.Revision the run is pinned to.inthashCode()voidRemove the givenMetaWorkflowNodeRunitem from thenodeRunscollection.voidsetCallerNode(String callerNode) voidsetCallerParkKey(String callerParkKey) voidsetEndedAt(LocalDateTime endedAt) voidsetEpisode(Long episode) voidsetErrorMessage(String errorMessage) voidvoidsetJsonModel(String jsonModel) voidsetLastNode(String lastNode) voidvoidsetNodeRuns(List<MetaWorkflowNodeRun> nodeRuns) voidsetParentRun(MetaWorkflowRun parentRun) voidsetRecordId(Long recordId) voidsetStartedAt(LocalDateTime startedAt) voidsetStartedBy(User startedBy) voidsetStatus(WorkflowRunStatus status) voidsetTriggerType(WorkflowTrigger triggerType) voidsetWorkflow(String workflow) voidsetWorkflowName(String workflowName) voidsetWorkflowRevision(Integer workflowRevision) toString()Methods inherited from class com.axelor.auth.db.AuditableModel
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOnMethods inherited from class com.axelor.db.Model
getArchived, getCid, getImportId, getVersion, isSelected, setArchived, setCid, setImportId, setSelected, setVersion
-
Constructor Details
-
MetaWorkflowRun
public MetaWorkflowRun()
-
-
Method Details
-
getId
-
setId
-
getWorkflow
Id of the definition that ran.- Returns:
- the property value
-
setWorkflow
-
getWorkflowRevision
Revision the run is pinned to.- Returns:
- the property value
-
setWorkflowRevision
-
getWorkflowName
-
setWorkflowName
-
getModel
-
setModel
-
getJsonModel
Custom model name; null for a real entity.- Returns:
- the property value
-
setJsonModel
-
getRecordId
-
setRecordId
-
getTriggerType
What started the run; null for a call's child or a boundary's escape branch.- Returns:
- the property value
-
setTriggerType
-
getStartedBy
-
setStartedBy
-
getEpisode
-
setEpisode
-
getStatus
-
setStatus
-
getStartedAt
-
setStartedAt
-
getEndedAt
-
setEndedAt
-
getLastNode
The last node the run reached.- Returns:
- the property value
-
setLastNode
-
getErrorMessage
-
setErrorMessage
-
getNodeRuns
-
setNodeRuns
-
addNodeRun
Add the givenMetaWorkflowNodeRunitem to thenodeRunscollection.It sets
item.run = thisto ensure the proper relationship.- Parameters:
item- the item to add
-
removeNodeRun
Remove the givenMetaWorkflowNodeRunitem from thenodeRunscollection.- Parameters:
item- the item to remove
-
clearNodeRuns
public void clearNodeRuns()Clear thenodeRunscollection. -
getParentRun
The run that started this one; null for a top-level run.- Returns:
- the property value
-
setParentRun
-
getCallerNode
The call or boundary node in the parent run that started this one.- Returns:
- the property value
-
setCallerNode
-
getCallerParkKey
The parent's park this run wakes when it ends; null when nothing waits on it.- Returns:
- the property value
-
setCallerParkKey
-
equals
-
hashCode
public int hashCode() -
toString
-