# TODO source, destination
metadata = {'custom_attributes': {'my-attribute': 1}}
resources = {'resource-label': '/Users/barry/Desktop/Ovation Demo Files/results.txt'}

workflow_id = input('Workflow ID: ')

activity_label = input('Activity label: ')

"""
Explanation: Upload Activity results
Workflow activities are (optionally) uniquely labeled by the Workflow Definition. This label allows clients to upload metadata and files to activities by label. In this example, we create a new XX activity within an existing workflow.
End of explanation
"""


workflow = s.get(s.path('workflows', workflow_id))
pprint(workflow.workflow)

"""
Explanation: For illustration, we view the Workflow, showing links.activity_label.related, the URL where create_activity will POST the new Activity data
End of explanation
"""


activity = workflows.create_activity(s, workflow_id, activity_label, data=metadata, resources=resources, progress=tqdm)

"""
Explanation: Now, let's create the activity.
End of explanation
"""


