Closed ddavidyuk closed 3 months ago
The UI "Decode History" is designed for human consumption not SDK consumption and is not intended to be compatible with SDKs so it is not expected to work. Our docs generally recommend downloading history from the CLI or SDK to replay https://docs.temporal.io/develop/java/testing-suite#replay.
We do also plan to add utilities inside the SDK to make it easier to decode encrypted payloads in history to make replay easier as well.
Expected Behavior
WorkflowHistoryLoader
should be able to load history from a file downloaded via Temporal UI / Temporal Cloud UI with "Decode History" option.Actual Behavior
WorkflowHistoryLoader
fails when loading a file downloaded via Temporal UI / Temporal Cloud UI with "Decode History" option.Steps to Reproduce the Problem
WorkflowHistoryLoader
API:WorkflowHistoryLoader.readHistory(<path to the history JSON file>)
WorkflowHistoryLoader
fails with this exception (the actual payload replaced with ..., cannot provide it here):Specifications
Additional details
We are testing our encrypting / compressing DataConverter, and would like to be able to download decoded event history for local testing with WorkflowReplayer class (to make sure the changes we make to our workflows are compatible with prior event histories).