Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecuteExportWorkflowInput ¶
type ExecuteExportWorkflowInput struct {
ScheduledTaskID string
TenantID string
EnvID string
UserID string // User who triggered the workflow (empty for scheduled runs)
// Optional custom time range for force runs
CustomStartTime *time.Time
CustomEndTime *time.Time
}
ExecuteExportWorkflowInput represents input for the export workflow
type ExecuteExportWorkflowOutput ¶
type ExecuteExportWorkflowOutput struct {
TaskID string
FileURL string
RecordCount int
Success bool
}
ExecuteExportWorkflowOutput represents output from the export workflow
func ExecuteExportWorkflow ¶
func ExecuteExportWorkflow(ctx workflow.Context, input ExecuteExportWorkflowInput) (*ExecuteExportWorkflowOutput, error)
ExecuteExportWorkflow performs the complete export workflow This is the single unified workflow that: 1. Fetches scheduled task configuration 2. Creates a task record 3. Exports the data 4. Updates both task and scheduled task statuses
Click to show internal directories.
Click to hide internal directories.