Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitForProcessInstanceState ¶
func WaitForProcessInstanceState(ctx context.Context, s PIWaiter, cfg *config.Config, log *slog.Logger, key string, desired d.States, opts ...services.CallOption) (d.State, d.ProcessInstance, error)
WaitForProcessInstanceState waits until the instance reaches one of the desired states. - Respects ctx cancellation/deadline; augments with cfg.Timeout if set - Returns nil on success or an error on failure/timeout.
Types ¶
type PIWaiter ¶
type PIWaiter interface {
GetProcessInstance(ctx context.Context, key string, opts ...services.CallOption) (d.ProcessInstance, error)
GetProcessInstanceStateByKey(ctx context.Context, key string, opts ...services.CallOption) (d.State, d.ProcessInstance, error)
}
Click to show internal directories.
Click to hide internal directories.