5
5
"time"
6
6
7
7
"github.com/cschleiden/go-workflows/backend"
8
- "github.com/cschleiden/go-workflows/core"
9
8
a "github.com/cschleiden/go-workflows/internal/args"
10
9
"github.com/cschleiden/go-workflows/internal/converter"
10
+ "github.com/cschleiden/go-workflows/internal/core"
11
11
"github.com/cschleiden/go-workflows/internal/fn"
12
12
"github.com/cschleiden/go-workflows/internal/history"
13
13
"github.com/cschleiden/go-workflows/workflow"
@@ -20,9 +20,9 @@ type WorkflowInstanceOptions struct {
20
20
}
21
21
22
22
type Client interface {
23
- CreateWorkflowInstance (ctx context.Context , options WorkflowInstanceOptions , wf workflow.Workflow , args ... interface {}) (core .WorkflowInstance , error )
23
+ CreateWorkflowInstance (ctx context.Context , options WorkflowInstanceOptions , wf workflow.Workflow , args ... interface {}) (workflow .WorkflowInstance , error )
24
24
25
- CancelWorkflowInstance (ctx context.Context , instance core .WorkflowInstance ) error
25
+ CancelWorkflowInstance (ctx context.Context , instance workflow .WorkflowInstance ) error
26
26
27
27
SignalWorkflow (ctx context.Context , instanceID string , name string , arg interface {}) error
28
28
}
@@ -37,7 +37,7 @@ func New(backend backend.Backend) Client {
37
37
}
38
38
}
39
39
40
- func (c * client ) CreateWorkflowInstance (ctx context.Context , options WorkflowInstanceOptions , wf workflow.Workflow , args ... interface {}) (core .WorkflowInstance , error ) {
40
+ func (c * client ) CreateWorkflowInstance (ctx context.Context , options WorkflowInstanceOptions , wf workflow.Workflow , args ... interface {}) (workflow .WorkflowInstance , error ) {
41
41
inputs , err := a .ArgsToInputs (converter .DefaultConverter , args ... )
42
42
if err != nil {
43
43
return nil , errors .Wrap (err , "could not convert arguments" )
@@ -65,7 +65,7 @@ func (c *client) CreateWorkflowInstance(ctx context.Context, options WorkflowIns
65
65
return wfi , nil
66
66
}
67
67
68
- func (c * client ) CancelWorkflowInstance (ctx context.Context , instance core .WorkflowInstance ) error {
68
+ func (c * client ) CancelWorkflowInstance (ctx context.Context , instance workflow .WorkflowInstance ) error {
69
69
return c .backend .CancelWorkflowInstance (ctx , instance )
70
70
}
71
71
0 commit comments