Rust sdk register_actity_type
Hey, I am using the core_sdk in rust. I registered an activity, which should be able to consume following ts type:
functionName: string, parameters: any, second: any (data attached in screenshot).
My rust code:
worker.register_activity("echo_activity", |_ctx: ActContext, parameters: Value| async move { (Value is from type of serde value)
If I use the code above, parameters is just the data of second -> { "second": true}, so the last object in the array data is parsend into parameters.
I also tried to use Vec<Value>, but then the activity just stuck and nothing happens. I also got no error and the workflow is also stuck in state Running
2 Replies