def initialize domain, request_options, data
@domain = domain
@request_options = request_options
@task_token = data['taskToken']
workflow_id = data['workflowExecution']['workflowId']
run_id = data['workflowExecution']['runId']
@workflow_execution = WorkflowExecution.new(domain, workflow_id, run_id)
name = data['workflowType']['name']
version = data['workflowType']['version']
@workflow_type = WorkflowType.new(domain, name, version)
@previous_started_event_id = data['previousStartedEventId']
@started_event_id = data['startedEventId']
@next_token = data['nextPageToken']
@events = data['events']
@decisions = []
super
end