{#if type == FlowStatusModule.type.WAITING_FOR_EVENTS}
Waiting to be resumed by resume events such as approvals
{:else if type == FlowStatusModule.type.WAITING_FOR_PRIOR_STEPS}
Waiting for prior steps to complete
{:else if type == FlowStatusModule.type.WAITING_FOR_EXECUTOR}
{#if scheduled_for && forLater(scheduled_for.toString())}
Job is scheduled to be executed at {displayDate(scheduled_for, true)}
{:else}
Job is waiting for an executor
{/if}
{:else if type == FlowStatusModule.type.SUCCESS}
Success
{:else if type == FlowStatusModule.type.FAILURE}
Failure
{/if}