How to enable a certain outcome action

A task can have certain outcomes. For ex: Submit instead or Complete. I want to enable submit action only after attaching a document. If a document is attached then Submit/Complete action needs to get enabled.

Is this possible in flowable or not? Can I get some clarity?