def __init__()

in src/stepfunctions/workflow/stepfunctions.py [0:0]


    def __init__(self, workflow, execution_arn, start_date, status, client=None, name=None, stop_date=None):
        """
        Args:
            workflow (Workflow): Step Functions workflow instance.
            execution_arn (str): The Amazon Resource Name (ARN) of the workflow execution.
            start_date (datetime.datetime): The date the workflow execution was started.
            status (RunStatus): Status of the workflow execution.
            client (SFN.Client, optional): boto3 client to use for running and managing the workflow executions on Step Functions. If no client is provided, the boto3 client from the parent workflow will be used. (default: None)
            name (str, optional): Name for the workflow execution. (default: None)
            stop_date (datetime.datetime, optional): The date the workflow execution was stopped, if applicable. (default: None)
        """
        self.name = name
        self.workflow = workflow
        self.execution_arn = execution_arn
        self.start_date = start_date
        self.stop_date = stop_date
        self.status = status
        if client:
            self.client = client
            append_user_agent_to_client(self.client)
        else:
            self.client = self.workflow.client