Skip to content

Improve ibc mover templates #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"## Analysis Mover using Content CLI\n",
"## Process Analytics Analysis Mover using Content CLI\n",
"\n",
"\n",
"### This tutorial shows how to copy an analysis from one team/workspace to another one"
"### This tutorial shows how to copy an analysis from one team/process analytics workspace to another one\n",
"\n",
"<blockquote>\n",
" <strong>NOTE:</strong> This tutorial is intended for use with <strong>Process Analytics</strong> analyses. To pull data from <strong>Studio</strong> Analyses, see our <a href=\"../02_asset_mover.ipynb\">Asset Mover Template</a>\n",
"</blockquote>"
]
},
{
Expand All @@ -16,10 +21,10 @@
"metadata": {},
"outputs": [],
"source": [
"source_team_url = 'https://your_team.celonis.cloud/'\n",
"source_api_key = 'your_api_token'\n",
"destination_team_url = 'https://your_team.celonis.cloud/'\n",
"destination_api_key = 'your_api_token'"
"source_team_url = 'INSERT TEAM URL HERE' #ex. https://your_team.celonis.cloud/\n",
"source_api_key = 'API TOKEN HERE'\n",
"destination_team_url = 'INSERT TEAM URL HERE' #ex. https://your_team.celonis.cloud/\n",
"destination_api_key = 'API TOKEN HERE'"
]
},
{
Expand All @@ -35,6 +40,7 @@
"metadata": {},
"outputs": [],
"source": [
"# DO NOT MODIFY THIS CELL\n",
"import os\n",
"os.environ['TEAM_URL'] = source_team_url\n",
"os.environ['API_TOKEN'] = source_api_key\n"
Expand All @@ -47,6 +53,14 @@
"### Pull analysis from the source team"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"<blockquote>Looking for the analysis ID? Open to the analysis and view the browser URL <br>(ex. https://<area>team.cluster.celonis.cloud/process-mining/analysis/<strong>dd277835-1140-4f30-98ea-1b190bd21cec</strong>/)</blockquote>"
]
},
{
"cell_type": "code",
"execution_count": 3,
Expand All @@ -61,7 +75,7 @@
}
],
"source": [
"!content-cli pull analysis --id 'insert analysis id here'"
"!content-cli pull analysis --id 'ANALYSIS ID HERE'"
]
},
{
Expand All @@ -78,17 +92,21 @@
"metadata": {},
"outputs": [],
"source": [
"# DO NOT MODIFY THIS CELL\n",
"os.environ['TEAM_URL'] = destination_team_url\n",
"os.environ['API_TOKEN'] = destination_api_key"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"### Push analysis to the destination team\n",
"\n",
"Hint: Press tab while writing the file name to auto complete"
"Hint: Press tab while writing the file name to auto complete\n",
"\n",
"<blockquote>Looking for the workspace id? Open process analytics, select the workspace, and view the browser URL <br>(ex. https://<area>team.cluster.celonis.cloud/process-mining/ui?workspaces=<strong>694c4a6a-af11-4fb1-90e7-ffbc609cce4f</strong>)</blockquote>"
]
},
{
Expand All @@ -105,7 +123,7 @@
}
],
"source": [
"!content-cli push analysis --workspaceId 'insert workspace id here' --file 'insert_downloaded_file_in_the_previous_step_here'"
"!content-cli push analysis --workspaceId 'WORKSPACE ID TO PUSH TO HERE' --file 'DOWLOADED FILE FROM THE PREVIOUS STEP HERE' #ex. analysis_6b2166e2-0c40-43e2-b3e6-62996c7dae11.json"
]
}
],
Expand All @@ -130,4 +148,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"metadata": {},
"outputs": [],
"source": [
"source_team_url = 'https://your_team.celonis.cloud/'\n",
"source_api_key = 'your_api_token'\n",
"destination_team_url = 'https://your_team.celonis.cloud/'\n",
"destination_api_key = 'your_api_token'"
"source_team_url = 'INSERT TEAM URL HERE' #ex. https://your_team.celonis.cloud/\n",
"source_api_key = 'API TOKEN HERE'\n",
"destination_team_url = 'INSERT TEAM URL HERE' #ex. https://your_team.celonis.cloud/\n",
"destination_api_key = 'API TOKEN HERE'"
]
},
{
Expand All @@ -35,16 +35,20 @@
"metadata": {},
"outputs": [],
"source": [
"# DO NOT MODIFY THIS CELL\n",
"import os\n",
"os.environ['TEAM_URL'] = source_team_url\n",
"os.environ['API_TOKEN'] = source_api_key"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"### Pull data pool from the source team"
"### Pull data pool from the source team\n",
"\n",
"<blockquote>Looking for the data pool ID? Open to the pool and view the browser URL <br>(ex. https://<area>team.cluster.celonis.cloud/integration/ui/pools/<strong>52f73644-9369-4604-a050-92cb493f2025</strong>)</blockquote>"
]
},
{
Expand All @@ -61,7 +65,7 @@
}
],
"source": [
"!content-cli pull data-pool --id 'id_of_your_data_pool'"
"!content-cli pull data-pool --id 'DATA POOL ID HERE'"
]
},
{
Expand All @@ -78,6 +82,7 @@
"metadata": {},
"outputs": [],
"source": [
"# DO NOT MODIFY THIS CELL\n",
"import os\n",
"os.environ['TEAM_URL'] = destination_team_url\n",
"os.environ['API_TOKEN'] = destination_api_key"
Expand Down Expand Up @@ -105,7 +110,7 @@
}
],
"source": [
"!content-cli push data-pool --file 'the_file_that_got_downloaded_in_the_previous_step'"
"!content-cli push data-pool --file 'DOWLOADED FILE FROM THE PREVIOUS STEP HERE' #ex. data-pool_7796633e-c2db-4524-92ec-85ae5fe65282.json"
]
}
],
Expand All @@ -130,4 +135,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"## Asset Mover using Content CLI\n",
"\n",
"### This script moves an Asset (skill, view, analysis, knowledge model etc. in the studio) from one team to another "
"### This script moves any asset in Studio (skill, view, analysis, knowledge model etc.) from one team to another "
]
},
{
Expand All @@ -15,10 +16,10 @@
"metadata": {},
"outputs": [],
"source": [
"source_team_url = 'https://your_team.celonis.cloud/'\n",
"source_api_key = 'your_api_token'\n",
"destination_team_url = 'https://your_team.celonis.cloud/'\n",
"destination_api_key = 'your_api_token'"
"source_team_url = 'INSERT TEAM URL HERE' #ex. https://your_team.celonis.cloud/\n",
"source_api_key = 'API TOKEN HERE'\n",
"destination_team_url = 'INSERT TEAM URL HERE' #ex. https://your_team.celonis.cloud/\n",
"destination_api_key = 'API TOKEN HERE'"
]
},
{
Expand All @@ -34,16 +35,20 @@
"metadata": {},
"outputs": [],
"source": [
"# DO NOT MODIFY THIS CELL\n",
"import os\n",
"os.environ['TEAM_URL'] = source_team_url\n",
"os.environ['API_TOKEN'] = source_api_key"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"### Pull asset from the source team"
"### Pull asset from the source team\n",
"\n",
"<blockquote>Looking for the asset key? Locate the asset, open the <strong>...</strong> menu, and click <strong>Key</strong></blockquote>"
]
},
{
Expand All @@ -60,7 +65,7 @@
}
],
"source": [
"!content-cli pull asset --key 'insert_asset_key_here'"
"!content-cli pull asset --key 'ASSET KEY HERE' #ex. test.testview"
]
},
{
Expand All @@ -77,16 +82,20 @@
"metadata": {},
"outputs": [],
"source": [
"# DO NOT MODIFY THIS CELL\n",
"os.environ['TEAM_URL'] = destination_team_url\n",
"os.environ['API_TOKEN'] = destination_api_key"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"### Push asset to the destination team\n",
"Hint: Press tab to autocomplete the file name"
"Hint: Press tab to autocomplete the file name\n",
"\n",
"<blockquote>Looking for the package key? Locate the package, open the <strong>...</strong> menu, and click <strong>Key</strong></blockquote>"
]
},
{
Expand All @@ -103,15 +112,8 @@
}
],
"source": [
"!content-cli push asset --file 'insert_downloaded_asset_file_name' --package 'package_key_to_push_the_asset_to'"
"!content-cli push asset --file 'DOWLOADED FILE FROM THE PREVIOUS STEP HERE' --package 'PACKAGE KEY TO PUSH THE ASSET TO HERE' #example file: asset_mykm.yml"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -135,4 +137,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"metadata": {},
"outputs": [],
"source": [
"source_team_url = 'https://your_team.celonis.cloud/'\n",
"source_api_key = 'your_api_token'\n",
"destination_team_url = 'https://your_team.celonis.cloud/'\n",
"destination_api_key = 'your_api_token'"
"source_team_url = 'INSERT TEAM URL HERE' #ex. https://your_team.celonis.cloud/\n",
"source_api_key = 'API TOKEN HERE'\n",
"destination_team_url = 'INSERT TEAM URL HERE' #ex. https://your_team.celonis.cloud/\n",
"destination_api_key = 'API TOKEN HERE'"
]
},
{
Expand All @@ -34,6 +34,7 @@
"metadata": {},
"outputs": [],
"source": [
"# DO NOT MODIFY THIS CELL\n",
"import os\n",
"os.environ['TEAM_URL'] = source_team_url\n",
"os.environ['API_TOKEN'] = source_api_key"
Expand All @@ -60,7 +61,7 @@
}
],
"source": [
"!content-cli pull workflow --id 'insert_workflow_id_here'"
"!content-cli pull workflow --id 'WORKFLOW ID HERE'"
]
},
{
Expand All @@ -77,6 +78,7 @@
"metadata": {},
"outputs": [],
"source": [
"# DO NOT MODIFY THIS CELL\n",
"os.environ['TEAM_URL'] = destination_team_url\n",
"os.environ['API_TOKEN'] = destination_api_key"
]
Expand Down Expand Up @@ -104,15 +106,8 @@
}
],
"source": [
"!content-cli push workflow --file 'insert_downloaded_file_in_the_previous_step_here'"
"!content-cli push workflow --file 'DOWLOADED FILE FROM THE PREVIOUS STEP HERE'"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -136,4 +131,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}
Loading