7
7
"time"
8
8
9
9
"github.com/cschleiden/go-workflows/backend"
10
- "github.com/cschleiden/go-workflows/internal/core"
11
- "github.com/cschleiden/go-workflows/internal/history"
12
- "github.com/cschleiden/go-workflows/internal/task"
10
+ "github.com/cschleiden/go-workflows/backend/history"
11
+ "github.com/cschleiden/go-workflows/core"
13
12
"github.com/cschleiden/go-workflows/workflow"
14
13
)
15
14
@@ -39,7 +38,7 @@ func NewMonoprocessBackend(b backend.Backend) *monoprocessBackend {
39
38
return mb
40
39
}
41
40
42
- func (b * monoprocessBackend ) GetWorkflowTask (ctx context.Context ) (* task. Workflow , error ) {
41
+ func (b * monoprocessBackend ) GetWorkflowTask (ctx context.Context ) (* backend. WorkflowTask , error ) {
43
42
// loop until either we find a task or the context is cancelled
44
43
for {
45
44
if w , err := b .Backend .GetWorkflowTask (ctx ); w != nil || err != nil {
@@ -55,7 +54,7 @@ func (b *monoprocessBackend) GetWorkflowTask(ctx context.Context) (*task.Workflo
55
54
}
56
55
}
57
56
58
- func (b * monoprocessBackend ) GetActivityTask (ctx context.Context ) (* task. Activity , error ) {
57
+ func (b * monoprocessBackend ) GetActivityTask (ctx context.Context ) (* backend. ActivityTask , error ) {
59
58
// loop until either we find a task or the context is cancelled
60
59
for {
61
60
if a , err := b .Backend .GetActivityTask (ctx ); a != nil || err != nil {
@@ -81,7 +80,7 @@ func (b *monoprocessBackend) CreateWorkflowInstance(ctx context.Context, instanc
81
80
82
81
func (b * monoprocessBackend ) CompleteWorkflowTask (
83
82
ctx context.Context ,
84
- task * task. Workflow ,
83
+ task * backend. WorkflowTask ,
85
84
instance * workflow.Instance ,
86
85
state core.WorkflowInstanceState ,
87
86
executedEvents , activityEvents , timerEvents []* history.Event ,
0 commit comments