I created a step function with 4 different activities which run one after other and also integrated to trigger this step function from a java application. Flow
I created a SAM project and created a simple hello world lambda. After executing: sam package --template-file template.yaml --output-template-file output.yaml