Skip to content

Commit b7c3965

Browse files
muralisrinighaskins
authored andcommitted
args serdes should adhere to this SDKs protocol
Args typically are serialized and deserialized using objarray-> and args-> (defined in temporal.internal.utils) so that data-conversion can transparently work with arbitrary data. Schedule should adhere to this protocol and apply objarray-> on arguments so as to satisfy the args-> call when workflow is executed. TODO: enhance UT to actually launch a workflow when base java library adds proper schedule support to its "testing" framework. Signed-off-by: Srinivasan Muralidharan <[email protected]>
1 parent a092857 commit b7c3965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/temporal/internal/schedule.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
(def schedule-action-start-workflow-spec->
5757
{:options #(.setOptions ^ScheduleActionStartWorkflow$Builder %1 (w/wf-options-> %2))
5858
:arguments (fn [^ScheduleActionStartWorkflow$Builder builder value]
59-
(.setArguments builder (to-array [(stringify-keys value)])))
59+
(.setArguments builder (u/->objarray value)))
6060
:workflow-type (fn [^ScheduleActionStartWorkflow$Builder builder value]
6161
(if (string? value)
6262
(.setWorkflowType builder ^String value)

0 commit comments

Comments
 (0)