In your microflow only pass the Credentials parameter. Your first activity in the microflow will be a retrieve over association to get (a list of) filedocuments. If you are certain it's only one document, your next activity should be a list operation HEAD which will give you the FileDocument. Now you have your 2 parameters for your next activity, the java action
Good luck.