I’ve had issues passing the
Workbook
instance from Workflow to Activity.
Are you creating Workbook
in workflow code? You could offload its creation to activity and would not have to pass it in as input.
Is there any way to pass non serializable classes to activities?
You can pass them as input to activity impl constructor when you register activity with worker. You could write a custom data converter for your type if you need to pass it as input (by default it would need to be serializable to json using jackson).
Once you parse the workbook do you iterate through each entry and perform actions? If so you might want to use “iterator workflow pattern” mentioned in this forum post.