public function createEnterWorkflowSequence($initalStatus, $sender)
	{
		$config = [
			'end'        => $initalStatus,
			'sender'  	 => $sender
		];
		return [

			////////// BEFORE //////////////////////////////////////////////////////////////

			'before' => [

				new WorkflowEvent(
					WorkflowEvent::beforeEnterWorkflow(),
					$config
					),
				new WorkflowEvent(
					WorkflowEvent::beforeEnterWorkflow($initalStatus->getWorkflowId()),
					$config
				),
				new WorkflowEvent(
					WorkflowEvent::beforeEnterStatus(),
					$config
				),
				new WorkflowEvent(
					WorkflowEvent::beforeEnterStatus($initalStatus->getId()),
					$config
				)
			],

			////////// AFTER  //////////////////////////////////////////////////////////////

			'after' => [
				new WorkflowEvent(
					WorkflowEvent::afterEnterWorkflow(),
					$config
					),
				new WorkflowEvent(
					WorkflowEvent::afterEnterWorkflow($initalStatus->getWorkflowId()),
					$config
				),
				new WorkflowEvent(
					WorkflowEvent::afterEnterStatus(),
					$config
				),
				new WorkflowEvent(
					WorkflowEvent::afterEnterStatus($initalStatus->getId()),
					$config
				)
			]
		];
	}
public function createEnterWorkflowSequence($initalStatus, $sender)
	{
		$config = [
			'end'        => $initalStatus,
			'sender'  	 => $sender
		];
		return [

			////////// BEFORE //////////////////////////////////////////////////////////////

			'before' => [

				new WorkflowEvent(
					WorkflowEvent::beforeEnterWorkflow(),
					$config
					),
				new WorkflowEvent(
					WorkflowEvent::beforeEnterWorkflow($initalStatus->getWorkflowId()),
					$config
				),
				new WorkflowEvent(
					WorkflowEvent::beforeEnterStatus(),
					$config
				),
				new WorkflowEvent(
					WorkflowEvent::beforeEnterStatus($initalStatus->getId()),
					$config
				)
			],

			////////// AFTER  //////////////////////////////////////////////////////////////

			'after' => [
				new WorkflowEvent(
					WorkflowEvent::afterEnterWorkflow(),
					$config
					),
				new WorkflowEvent(
					WorkflowEvent::afterEnterWorkflow($initalStatus->getWorkflowId()),
					$config
				),
				new WorkflowEvent(
					WorkflowEvent::afterEnterStatus(),
					$config
				),
				new WorkflowEvent(
					WorkflowEvent::afterEnterStatus($initalStatus->getId()),
					$config
				)
			]
		];
	}
public function createEnterWorkflowSequence ( $ initalStatus , $ sender ) { $ config = [ 'end' => $ initalStatus , 'sender' => $ sender ] ; return [ ////////// BEFORE ////////////////////////////////////////////////////////////// 'before' => [ new WorkflowEvent ( WorkflowEvent :: beforeEnterWorkflow ( ) , $ config ) , new WorkflowEvent ( WorkflowEvent :: beforeEnterWorkflow ( $ initalStatus -> getWorkflowId ( ) ) , $ config ) , new WorkflowEvent ( WorkflowEvent :: beforeEnterStatus ( ) , $ config ) , new WorkflowEvent ( WorkflowEvent :: beforeEnterStatus ( $ initalStatus -> getId ( ) ) , $ config ) ] , ////////// AFTER  ////////////////////////////////////////////////////////////// 'after' => [ new WorkflowEvent ( WorkflowEvent :: afterEnterWorkflow ( ) , $ config ) , new WorkflowEvent ( WorkflowEvent :: afterEnterWorkflow ( $ initalStatus -> getWorkflowId ( ) ) , $ config ) , new WorkflowEvent ( WorkflowEvent :: afterEnterStatus ( ) , $ config ) , new WorkflowEvent ( WorkflowEvent :: afterEnterStatus ( $ initalStatus -> getId ( ) ) , $ config ) ] ] ; }
Produces the following event sequence when a model enters a workflow.

- beforeEnterWorkflow(*)
- beforeEnterWorkflow(WID)
- beforeEnterStatus(*)
- beforeEnterStatus(ID)

- afterEnterWorkflow(*)
- afterEnterWorkflow(WID)
- afterEnterStatus(*)
- afterEnterStatus(ID)

Where WID is the workflow Id and ID is the status Id.

@see \raoul2000\workflow\events\IEventSequence::createEnterWorkflowSequence()
Produces the following event sequence when a model enters a workflow .