diff --git a/src/main/java/com/uber/cadence/migration/MigrationActivities.java b/src/main/java/com/uber/cadence/migration/MigrationActivities.java index 2520eae1e..2af3db9df 100644 --- a/src/main/java/com/uber/cadence/migration/MigrationActivities.java +++ b/src/main/java/com/uber/cadence/migration/MigrationActivities.java @@ -22,9 +22,20 @@ import com.uber.cadence.activity.ActivityMethod; public interface MigrationActivities { + /** + * Starts a new workflow execution in a new domain. + * + * @param request The request to start the workflow in new domain. + * @return A response indicating the status of the operation. + */ @ActivityMethod StartWorkflowInNewResponse startWorkflowInNewDomain(StartWorkflowExecutionRequest request); + /** + * Cancels a workflow execution in the current domain. + * + * @param request The request to cancel the workflow. + */ @ActivityMethod void cancelWorkflowInCurrentDomain(RequestCancelWorkflowExecutionRequest request); } diff --git a/src/main/java/com/uber/cadence/migration/StartWorkflowInNewResponse.java b/src/main/java/com/uber/cadence/migration/StartWorkflowInNewResponse.java index 511f274a8..36167dd08 100644 --- a/src/main/java/com/uber/cadence/migration/StartWorkflowInNewResponse.java +++ b/src/main/java/com/uber/cadence/migration/StartWorkflowInNewResponse.java @@ -21,10 +21,10 @@ public class StartWorkflowInNewResponse { StartWorkflowExecutionResponse startWorkflowExecutionResponse; - String message; + String status; StartWorkflowInNewResponse(StartWorkflowExecutionResponse startWorkflowResponse, String msg) { startWorkflowExecutionResponse = startWorkflowResponse; - message = msg; + status = msg; } }