Package com.yworkflow.instance.store
Class WorkflowInstanceStoreEntity
java.lang.Object
com.yworkflow.instance.store.WorkflowInstanceStoreEntity
Represents a workflow instance store entity. WorkflowInstanceStoreEntity encapsulates the core
information needed to store and manage workflow instances in the store layer, including tenant
information, workflow reference, and status.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowInstanceStoreEntity(TenantId tenantId, WorkflowInstanceId id, WorkflowDefinitionId workflowDefinitionId, WorkflowInstanceStatus status) Creates a new WorkflowInstanceStoreEntity with the specified parameters leaving processing (transition ID and started at) data empty.WorkflowInstanceStoreEntity(TenantId tenantId, WorkflowInstanceId id, WorkflowDefinitionId workflowDefinitionId, WorkflowInstanceStatus status, TransitionId transitionId, OffsetDateTime startedAt) Creates a new WorkflowInstanceStoreEntity with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptiongetId()Gets the workflow instance ID.Gets the date time at which the transition has been startedGets the current workflow instance status.Gets the tenant ID.Gets the transition ID of the in progress transitionGets the workflow definition ID.
-
Constructor Details
-
WorkflowInstanceStoreEntity
public WorkflowInstanceStoreEntity(TenantId tenantId, WorkflowInstanceId id, WorkflowDefinitionId workflowDefinitionId, WorkflowInstanceStatus status, TransitionId transitionId, OffsetDateTime startedAt) Creates a new WorkflowInstanceStoreEntity with the specified parameters.- Parameters:
tenantId- the tenant ID for multi-tenancy supportid- the workflow instance IDworkflowDefinitionId- the workflow definition IDstatus- the current workflow instance statustransitionId- transition ID in progressstartedAt- start date time of transition in progress
-
WorkflowInstanceStoreEntity
public WorkflowInstanceStoreEntity(TenantId tenantId, WorkflowInstanceId id, WorkflowDefinitionId workflowDefinitionId, WorkflowInstanceStatus status) Creates a new WorkflowInstanceStoreEntity with the specified parameters leaving processing (transition ID and started at) data empty.- Parameters:
tenantId- the tenant ID for multi-tenancy supportid- the workflow instance IDworkflowDefinitionId- the workflow definition IDstatus- the current workflow instance status
-
-
Method Details
-
getId
Gets the workflow instance ID.- Returns:
- the workflow instance ID
-
getWorkflowDefinitionId
Gets the workflow definition ID.- Returns:
- the workflow definition ID
-
getStatus
Gets the current workflow instance status.- Returns:
- the workflow instance status
-
getTenantId
Gets the tenant ID.- Returns:
- the tenant ID
-
getStartedAt
Gets the date time at which the transition has been started- Returns:
- the date time
-
getTransitionId
Gets the transition ID of the in progress transition- Returns:
- the date time
-