public function createLeaveWorkflowSequence($finalStatus, $sender)
{
$config = ['start' => $finalStatus, 'sender' => $sender];
return ['before' => [new WorkflowEvent(WorkflowEvent::beforeLeaveWorkflow($finalStatus->getWorkflowId()), $config)], 'after' => [new WorkflowEvent(WorkflowEvent::afterLeaveWorkflow($finalStatus->getWorkflowId()), $config)]];
}