Class WorkflowInstanceStoreEntity

java.lang.Object
com.yworkflow.instance.store.WorkflowInstanceStoreEntity

public class WorkflowInstanceStoreEntity extends Object
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 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 support
      id - the workflow instance ID
      workflowDefinitionId - the workflow definition ID
      status - the current workflow instance status
      transitionId - transition ID in progress
      startedAt - 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 support
      id - the workflow instance ID
      workflowDefinitionId - the workflow definition ID
      status - the current workflow instance status
  • Method Details

    • getId

      public WorkflowInstanceId getId()
      Gets the workflow instance ID.
      Returns:
      the workflow instance ID
    • getWorkflowDefinitionId

      public WorkflowDefinitionId getWorkflowDefinitionId()
      Gets the workflow definition ID.
      Returns:
      the workflow definition ID
    • getStatus

      public WorkflowInstanceStatus getStatus()
      Gets the current workflow instance status.
      Returns:
      the workflow instance status
    • getTenantId

      public TenantId getTenantId()
      Gets the tenant ID.
      Returns:
      the tenant ID
    • getStartedAt

      public OffsetDateTime getStartedAt()
      Gets the date time at which the transition has been started
      Returns:
      the date time
    • getTransitionId

      public TransitionId getTransitionId()
      Gets the transition ID of the in progress transition
      Returns:
      the date time