Created
February 28, 2022 18:45
-
-
Save percybolmer/5d03f67dd910b0354468232e44e6732f to your computer and use it in GitHub Desktop.
Cadence-register workflows and activites
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func init() { | |
// init will be called once the workflow file is imported | |
// this will Register the workflow to the Worker service | |
workflow.Register(workflowGreetings) | |
// Register the activities also | |
activity.Register(activityGreetings) | |
activity.Register(activityStoreCustomer) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment