Skip to content

Conversation

@GSmithApps
Copy link
Owner

@GSmithApps GSmithApps commented Oct 2, 2025

Sample cloud workflow export

Copy link

@alice-yin alice-yin left a comment

Choose a reason for hiding this comment

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

Wondering have you run the tool locally for testing? I haven't wrote java for a long time. So may not catch a lot of issue by reading.


public final class Constants {

public static final String QUERY = "CloseTime<=\"2025-09-30T19:43:00.000Z\"";

Choose a reason for hiding this comment

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

Consider this to be one of the input?

Choose a reason for hiding this comment

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

Also consider the query to be startTime, closeTime.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Consider this to be one of the input?

@alice-yin what do you mean? Are you saying it should be a command line arg?

Also consider the query to be startTime, closeTime.

@alice-yin I thought the export was based on close time, right?

Copy link

@alice-yin alice-yin Oct 20, 2025

Choose a reason for hiding this comment

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

I think if we allow startTime and closeTime as both in command line arg. On a second thought, how about we just allow QUERY as the whole input? As for query, user could directly get the input from the UI. That's probably easier for user as well.

.addAllItems(allExecutions)
.build();

byte[] binary = executions.toByteArray();

Choose a reason for hiding this comment

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

Should we serialize to JSON before writing?

Copy link
Owner Author

Choose a reason for hiding this comment

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

@alice-yin I think the intent of this sample is to match what the cloud export feature exports... and its export is proto, not json, right?


public final class Constants {

public static final String QUERY = "CloseTime<=\"2025-09-30T19:43:00.000Z\"";

Choose a reason for hiding this comment

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

For the query, should we also consider loading the workflow status to ExecutionStatus != Running?

Copy link
Owner Author

Choose a reason for hiding this comment

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

@alice-yin if the query has a close time, wouldn't it already be not running?

Choose a reason for hiding this comment

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

That's true. It's just in our backend, we usually call it out more specifically

child.clearSearchAttributes();
eb.setStartChildWorkflowExecutionInitiatedEventAttributes(child);
}

Choose a reason for hiding this comment

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

I think there is another case for Continue as new case.See https://github.com/temporalio/temporal/blob/main/service/history/api/get_history_util.go#L360

If this is what trying for.

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.

3 participants