Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align java examples with scala ones #236

Merged
merged 1 commit into from
Jul 6, 2023
Merged

Align java examples with scala ones #236

merged 1 commit into from
Jul 6, 2023

Conversation

honnix
Copy link
Member

@honnix honnix commented Jul 6, 2023

TL;DR

Align java examples with scala ones, for the subworkflow related things.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

It is a bit confusing that SubWorkflow in Java and Scala carries different meaning for different purpose. So we align the Java one with Scala.

Tracking Issue

NA

Follow-up issue

NA

import org.flyte.flytekit.jackson.JacksonSdkType;

@AutoService(SdkWorkflow.class)
public class SubWorkflow extends SdkWorkflow<SubWorkflow.Input, SubWorkflow.Output> {
public class SubWorkflow extends SdkWorkflow<WelcomeWorkflow.Input, WelcomeWorkflow.Output> {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This becomes exactly the same as Scala.

import org.flyte.flytekit.jackson.JacksonSdkType;

@AutoService(SdkWorkflow.class)
public class SumWorkflow extends SdkWorkflow<SumWorkflow.Input, SumWorkflow.Output> {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was previously SubWorkflow in Java.

@@ -24,7 +24,7 @@
import org.flyte.flytekit.jackson.JacksonSdkType;

@AutoService(SdkWorkflow.class)
public class UberWorkflow extends SdkWorkflow<UberWorkflow.Input, SubWorkflow.Output> {
public class UberWorkflow extends SdkWorkflow<UberWorkflow.Input, SumWorkflow.Output> {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SubWorkflow to SumWorkflow change.

@@ -26,7 +26,7 @@

/** Example workflow that takes a name and outputs a welcome message. */
@AutoService(SdkWorkflow.class)
public class WelcomeWorkflow extends SdkWorkflow<WelcomeWorkflow.Input, AddQuestionTask.Output> {
public class WelcomeWorkflow extends SdkWorkflow<WelcomeWorkflow.Input, WelcomeWorkflow.Output> {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To align with Scala implementation.

@honnix honnix requested a review from pablocasares July 6, 2023 09:17
@honnix honnix merged commit 54a94b4 into master Jul 6, 2023
3 checks passed
@honnix honnix deleted the align-examples branch July 6, 2023 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants