'Closes the workflow execution and records a WorkflowExecutionCompleted
event in the history'

def complete_workflow_execution(self, result=None):

    o = {}
    o['decisionType'] = 'CompleteWorkflowExecution'
    attrs = o['completeWorkflowExecutionDecisionAttributes'] = {}
    if (result is not None):
        attrs['result'] = result
    self._data.append(o)
