@@ -167,6 +167,8 @@ def _to_proto(data_converter)
167167 :args ,
168168 :id ,
169169 :task_queue ,
170+ :static_summary ,
171+ :static_details ,
170172 :execution_timeout ,
171173 :run_timeout ,
172174 :task_timeout ,
@@ -186,6 +188,14 @@ def _to_proto(data_converter)
186188 # @return [String] Unique identifier for the workflow execution.
187189 # @!attribute task_queue
188190 # @return [String] Task queue to run the workflow on.
191+ # @!attribute static_summary
192+ # @return [String, nil] Fixed single-line summary for this workflow execution that may appear in CLI/UI.
193+ # This can be in single-line Temporal markdown format. This is currently experimental.
194+ # @!attribute static_details
195+ # @return [String, nil] Fixed details for this workflow execution that may appear in CLI/UI. This can be in
196+ # Temporal markdown format and can be multiple lines. This is a fixed value on the workflow that cannot be
197+ # updated. For details that can be updated, use {Workflow.current_details=} within the workflow. This is
198+ # currently experimental.
189199 # @!attribute execution_timeout
190200 # @return [Float, nil] Total workflow execution timeout in seconds including retries and continue as new.
191201 # @!attribute run_timeout
@@ -212,6 +222,12 @@ class << self
212222 # @param args [Array<Object>] Arguments to the workflow.
213223 # @param id [String] Unique identifier for the workflow execution.
214224 # @param task_queue [String] Task queue to run the workflow on.
225+ # @param static_summary [String, nil] Fixed single-line summary for this workflow execution that may appear
226+ # in CLI/UI. This can be in single-line Temporal markdown format. This is currently experimental.
227+ # @param static_details [String, nil] Fixed details for this workflow execution that may appear in CLI/UI.
228+ # This can be in Temporal markdown format and can be multiple lines. This is a fixed value on the workflow
229+ # that cannot be updated. For details that can be updated, use {Workflow.current_details=} within the
230+ # workflow. This is currently experimental.
215231 # @param execution_timeout [Float, nil] Total workflow execution timeout in seconds including retries and
216232 # continue as new.
217233 # @param run_timeout [Float, nil] Timeout of a single workflow run in seconds.
@@ -225,6 +241,8 @@ def new(
225241 *args ,
226242 id :,
227243 task_queue :,
244+ static_summary : nil ,
245+ static_details : nil ,
228246 execution_timeout : nil ,
229247 run_timeout : nil ,
230248 task_timeout : nil ,
@@ -238,6 +256,8 @@ def new(
238256 args :,
239257 id :,
240258 task_queue :,
259+ static_summary :,
260+ static_details :,
241261 execution_timeout :,
242262 run_timeout :,
243263 task_timeout :,
@@ -251,11 +271,14 @@ def new(
251271
252272 # @!visibility private
253273 def self . _from_proto ( raw_info , data_converter )
274+ ( summary , details ) = Internal ::ProtoUtils . from_user_metadata ( raw_info . user_metadata , data_converter )
254275 StartWorkflow . new (
255276 raw_info . workflow_type . name ,
256277 *data_converter . from_payloads ( raw_info . input ) ,
257278 id : raw_info . workflow_id ,
258279 task_queue : raw_info . task_queue . name ,
280+ static_summary : summary ,
281+ static_details : details ,
259282 execution_timeout : Internal ::ProtoUtils . duration_to_seconds ( raw_info . workflow_execution_timeout ) ,
260283 run_timeout : Internal ::ProtoUtils . duration_to_seconds ( raw_info . workflow_run_timeout ) ,
261284 task_timeout : Internal ::ProtoUtils . duration_to_seconds ( raw_info . workflow_task_timeout ) ,
@@ -280,7 +303,8 @@ def _to_proto(data_converter)
280303 retry_policy : retry_policy &._to_proto ,
281304 memo : Internal ::ProtoUtils . memo_to_proto ( memo , data_converter ) ,
282305 search_attributes : search_attributes &._to_proto ,
283- header : Internal ::ProtoUtils . headers_to_proto ( headers , data_converter )
306+ header : Internal ::ProtoUtils . headers_to_proto ( headers , data_converter ) ,
307+ user_metadata : Internal ::ProtoUtils . to_user_metadata ( static_summary , static_details , data_converter )
284308 )
285309 )
286310 end
0 commit comments