Documentation
¶
Index ¶
- func SimpleDSLWorkflow(ctx workflow.Context, dslWorkflow Workflow) ([]byte, error)
- type ActivityInvocation
- type Parallel
- type SampleActivities
- func (a *SampleActivities) SampleActivity1(ctx context.Context, input []string) (string, error)
- func (a *SampleActivities) SampleActivity2(ctx context.Context, input []string) (string, error)
- func (a *SampleActivities) SampleActivity3(ctx context.Context, input []string) (string, error)
- func (a *SampleActivities) SampleActivity4(ctx context.Context, input []string) (string, error)
- func (a *SampleActivities) SampleActivity5(ctx context.Context, input []string) (string, error)
- type Sequence
- type Statement
- type Workflow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActivityInvocation ¶
ActivityInvocation is used to express invoking an Activity. The Arguments defined expected arguments as input to the Activity, the result specify the name of variable that it will store the result as which can then be used as arguments to subsequent ActivityInvocation.
type Parallel ¶
type Parallel struct {
Branches []*Statement
}
Parallel can be a collection of Statements that runs in parallel.
type SampleActivities ¶
type SampleActivities struct { }
func (*SampleActivities) SampleActivity1 ¶
func (*SampleActivities) SampleActivity2 ¶
func (*SampleActivities) SampleActivity3 ¶
func (*SampleActivities) SampleActivity4 ¶
func (*SampleActivities) SampleActivity5 ¶
type Sequence ¶
type Sequence struct {
Elements []*Statement
}
Sequence consist of a collection of Statements that runs in sequential.
type Statement ¶
type Statement struct { Activity *ActivityInvocation Sequence *Sequence Parallel *Parallel }
Statement is the building block of dsl workflow. A Statement can be a simple ActivityInvocation or it could be a Sequence or Parallel.
Click to show internal directories.
Click to hide internal directories.