Documentation ¶
Index ¶
- func CreateExpenseActivity(ctx context.Context, expenseID string) error
- func PaymentActivity(ctx context.Context, expenseID string) error
- func SampleExpenseWorkflow(ctx workflow.Context, expenseID string) (result string, err error)
- func WaitForDecisionActivity(ctx context.Context, expenseID string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateExpenseActivity ¶
func SampleExpenseWorkflow ¶
SampleExpenseWorkflow workflow definition
func WaitForDecisionActivity ¶
waitForDecisionActivity waits for the expense decision. This activity will complete asynchronously. When this method returns error activity.ErrResultPending, the Temporal Go SDK recognize this error, and won't mark this activity as failed or completed. The Temporal server will wait until Client.CompleteActivity() is called or timeout happened whichever happen first. In this sample case, the CompleteActivity() method is called by our dummy expense server when the expense is approved.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.