Your Resource objects must be associated to an InputObject (a container if you will). This InputObject must be set as “InputObject” in the “GenerateExcelDoc” Java action. I suppose that you did set your “ExcelResourceDocument” as input instead.
Edit: adding screenshots:
Domain model should look something like this:
Java Action should be configured like this: