@ Service public Workflow getExecutionStatus ( String workflowId , boolean includeTasks ) { Workflow workflow = executionService . getExecutionStatus ( workflowId , includeTasks ) ; if ( workflow == null ) { throw new ApplicationException ( ApplicationException . Code . NOT_FOUND , String . format ( "Workflow with Id: %s not found." , workflowId ) ) ; } return workflow ; }
Gets the workflow by workflow Id .