@@ -1603,8 +1603,8 @@ type GetVersionOptions struct {
16031603// }
16041604//
16051605// The code above supports replaying of workflow execution with both versions DefaultVersion and 1.
1606- // All new workflow executions will execute foo activity, because
1607- // GetVersion with the ExecuteWithVersion option returns DefaultVersion, that will be recorded into the workflow history
1606+ // All new workflow executions will execute foo activity, because GetVersion with ExecuteWithMinVersion option
1607+ // returns DefaultVersion, that will be recorded into the workflow history.
16081608//
16091609// 2. Enable execution of bar activity
16101610//
@@ -1617,7 +1617,7 @@ type GetVersionOptions struct {
16171617//
16181618// The code above supports replaying of workflow execution with both versions DefaultVersion and 1.
16191619// All new workflow executions will execute bar activity, because
1620- // GetVersion returns the maximum supported version - 1, that will be recorded into the workflow history
1620+ // GetVersion returns the maximum supported version - 1, that will be recorded into the workflow history.
16211621//
16221622// 3. Remove a support of foo activity:
16231623//
@@ -1626,23 +1626,16 @@ type GetVersionOptions struct {
16261626//
16271627// When there are no workflow executions running DefaultVersion the support of foo activity can be removed.
16281628//
1629- // The ExecuteWithVersion option is useful when you want to ensure that your changes can be safely rolled back if needed.
1629+ // ExecuteWithVersion option is useful when you want to ensure that your changes can be safely rolled back if needed.
16301630func ExecuteWithVersion (version Version ) GetVersionOptions {
16311631 return GetVersionOptions {
16321632 CustomVersion : & version ,
16331633 }
16341634}
16351635
16361636// ExecuteWithMinVersion forces minSupported version to be returned when GetVersion is executed for the first time,
1637- // instead of returning maxSupported version. This option can be used when you want to separate
1638- // the versioning of the workflow code and activation of the new logic in the workflow code,
1639- // to ensure that your changes can be safely rolled back, if needed.
1640- // 2 options below are equivalent to each other:
1641- //
1642- // GetVersion(ctx, "fooChange", 1, 2, ExecuteWithVersion(1))
1643- // GetVersion(ctx, "fooChange", 1, 2, ExecuteWithMinVersion())
1644- //
1645- // Check the ExecuteWithVersion documentation for more details on how to use ExecuteWithMinVersion.
1637+ // instead of returning maxSupported version. The option is equivalent to ExecuteWithVersion(minSupportedVersion).
1638+ // Check the ExecuteWithVersion documentation for more details.
16461639func ExecuteWithMinVersion () GetVersionOptions {
16471640 return GetVersionOptions {
16481641 UseMinVersion : true ,
0 commit comments