@@ -12,7 +12,6 @@ import (
12
12
"time"
13
13
14
14
"github.com/cschleiden/go-workflows/backend"
15
- "github.com/cschleiden/go-workflows/backend/task"
16
15
"github.com/cschleiden/go-workflows/converter"
17
16
"github.com/cschleiden/go-workflows/internal/contextpropagation"
18
17
"github.com/cschleiden/go-workflows/internal/core"
@@ -315,7 +314,7 @@ func (b *mysqlBackend) SignalWorkflow(ctx context.Context, instanceID string, ev
315
314
}
316
315
317
316
// GetWorkflowInstance returns a pending workflow task or nil if there are no pending worflow executions
318
- func (b * mysqlBackend ) GetWorkflowTask (ctx context.Context ) (* task. Workflow , error ) {
317
+ func (b * mysqlBackend ) GetWorkflowTask (ctx context.Context ) (* backend. WorkflowTask , error ) {
319
318
tx , err := b .db .BeginTx (ctx , & sql.TxOptions {
320
319
Isolation : sql .LevelReadCommitted ,
321
320
})
@@ -393,7 +392,7 @@ func (b *mysqlBackend) GetWorkflowTask(ctx context.Context) (*task.Workflow, err
393
392
}
394
393
}
395
394
396
- t := & task. Workflow {
395
+ t := & backend. WorkflowTask {
397
396
ID : wfi .InstanceID ,
398
397
WorkflowInstance : wfi ,
399
398
WorkflowInstanceState : core .WorkflowInstanceStateActive ,
@@ -469,7 +468,7 @@ func (b *mysqlBackend) GetWorkflowTask(ctx context.Context) (*task.Workflow, err
469
468
// completed or other workflow instances.
470
469
func (b * mysqlBackend ) CompleteWorkflowTask (
471
470
ctx context.Context ,
472
- task * task. Workflow ,
471
+ task * backend. WorkflowTask ,
473
472
instance * workflow.Instance ,
474
473
state core.WorkflowInstanceState ,
475
474
executedEvents , activityEvents , timerEvents []* history.Event ,
@@ -617,7 +616,7 @@ func (b *mysqlBackend) ExtendWorkflowTask(ctx context.Context, taskID string, in
617
616
}
618
617
619
618
// GetActivityTask returns a pending activity task or nil if there are no pending activities
620
- func (b * mysqlBackend ) GetActivityTask (ctx context.Context ) (* task. Activity , error ) {
619
+ func (b * mysqlBackend ) GetActivityTask (ctx context.Context ) (* backend. ActivityTask , error ) {
621
620
tx , err := b .db .BeginTx (ctx , & sql.TxOptions {
622
621
Isolation : sql .LevelReadCommitted ,
623
622
})
@@ -671,7 +670,7 @@ func (b *mysqlBackend) GetActivityTask(ctx context.Context) (*task.Activity, err
671
670
return nil , fmt .Errorf ("locking activity: %w" , err )
672
671
}
673
672
674
- t := & task. Activity {
673
+ t := & backend. ActivityTask {
675
674
ID : event .ID ,
676
675
WorkflowInstance : core .NewWorkflowInstance (instanceID , executionID ),
677
676
Event : event ,
0 commit comments