Skip to content
Merged
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
53 changes: 53 additions & 0 deletions ifrs17-template/Constants/Sharepoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"metadata": {
"authors": [],
"id": "FhSOUFpXwkCCDrVeJ6_P0g",
"kernelspec": {
"display_name": "Formula Framework",
"language": "C#",
"name": "C#"
},
"language_info": {
"file_extension": ".cs",
"mimetype": "text/plain",
"name": "C#"
}
},
"nbformat": 4,
"nbformat_minor": 5,
"cells": [
{
"cell_type": "markdown",
"source": [
"<p style=\"font-weight:bold;\"> <span style=\"font-size: 36px\"> Sharepoint Settings </span> </p>"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"This notebook allows to enter the details to connect the IFRS 17 calculation engine to your personal sharepoint. This allows the calculation engine to import data directly from your sharepoint and to export reports and other financial documents directly to your sharepoint."
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"public class Sharepoint{",
"\n public const string Sites = \"sites/XXX\"; //Sharepoint sites",
"\n public const string Tenant = \"systemorph.sharepoint.com\"; //Sharepoint tenant",
"\n public const string Root = \"Dev/\"; //Dev main directory",
"\n public const string PathToExport = Root + \"ExportFilesTest/\" //Target export directory ",
"\n public const string PathToImport = Root + \"ImportFiles/\"",
"\n}"
],
"metadata": {},
"execution_count": 0,
"outputs": []
}
]
}
51 changes: 51 additions & 0 deletions ifrs17-template/Export/ExportSettings.ipynb
Comment thread
andrey-katz-systemorph marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"metadata": {
"authors": [],
"id": "SW5aARBVpEi8-8zKI1xJoQ",
"kernelspec": {
"display_name": "Formula Framework",
"language": "C#",
"name": "C#"
},
"language_info": {
"file_extension": ".cs",
"mimetype": "text/plain",
"name": "C#"
}
},
"nbformat": 4,
"nbformat_minor": 5,
"cells": [
{
"cell_type": "markdown",
"source": [
"In order to allow direct export of the files into the sharepoint folder of choice, please comment out the first row of the following code and uncomment the rest of the code."
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"var pathToExport = \"\";",
"\n//#!import \"../Constants/Sharepoint\"",
"\n//var fileStorage = SharePoint.Site(Sharepoint.Sites, Sharepoint.Tenant);",
"\n//var pathToExport = Sharepoint.PathToExport",
"\n//Export.SetDefaultFileStorage(fileStorage);"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
""
],
"metadata": {},
"execution_count": 0,
"outputs": []
}
]
}
9 changes: 5 additions & 4 deletions ifrs17-template/Export/MapTemplate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
{
"cell_type": "code",
"source": [
"#!eval-notebook \"../Import/CloseImportTemplate\""
"#!eval-notebook \"../Import/CloseImportTemplate\"",
"\n#!eval-notebook \"ExportSettings\""
],
"metadata": {},
"execution_count": 0,
Expand Down Expand Up @@ -147,7 +148,7 @@
{
"cell_type": "code",
"source": [
"await Export.ToExcel(\"DataNodes\")",
"await Export.ToExcel(pathToExport + \"DataNodes\")",
"\n .WithSource(Workspace)",
"\n .PortfolioConfiguration<ReinsurancePortfolio>()",
"\n .PortfolioConfiguration<InsurancePortfolio>()",
Expand Down Expand Up @@ -235,7 +236,7 @@
{
"cell_type": "code",
"source": [
"await Export.ToExcel(\"DataNodeState\")",
"await Export.ToExcel(pathToExport + \"DataNodeState\")",
"\n .WithSource(Workspace)",
"\n .StateEnumConfiguration() ",
"\n .DataNodeStateConfiguration(dataNodeStates)",
Expand Down Expand Up @@ -323,7 +324,7 @@
{
"cell_type": "code",
"source": [
"await Export.ToExcel(\"DataNodeParameter\")",
"await Export.ToExcel(pathToExport + \"DataNodeParameter\")",
"\n .WithSource(Workspace)",
"\n .DataNodeParameterConfiguration(dataNodeParameters)",
"\n .MainTabConfiguration(partition)",
Expand Down
42 changes: 42 additions & 0 deletions ifrs17-template/Initialization/ImportSettings.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"metadata": {
"authors": [],
"id": "qm1URhtQPEmdOMumfNuQaQ",
"kernelspec": {
"display_name": "Formula Framework",
"language": "C#",
"name": "C#"
},
"language_info": {
"file_extension": ".cs",
"mimetype": "text/plain",
"name": "C#"
}
},
"nbformat": 4,
"nbformat_minor": 5,
"cells": [
{
"cell_type": "markdown",
"source": [
"In order to allow direct export of the files into the sharepoint folder of choice, please comment out the first row of the following code and uncomment the rest of the code. In order to ensure that the import proceeds without errors, please make sure that you sharepoint import folder has a structure, similar to the one of the Files folder in our template. "
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"var pathToImport = \"../Files/\";",
"\n//#!import \"../Constants/Sharepoint\"",
"\n//var fileStorage = SharePoint.Site(Sharepoint.Sites, Sharepoint.Tenant);",
"\n//var pathToImport = Sharepoint.PathToImport",
"\n//Import.SetDefaultFileStorage(fileStorage);"
],
"metadata": {},
"execution_count": 0,
"outputs": []
}
]
}
18 changes: 9 additions & 9 deletions ifrs17-template/Initialization/InitSystemorphBaseToMemory.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/DataNodes/DataNodes_FR.csv\")",
"await Import.FromFile(pathToImport + \"DataNodes/DataNodes_FR.csv\")",
"\n .WithFormat(ImportFormats.DataNode)",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
Expand All @@ -98,7 +98,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/DataNodes/DataNodeStates_FR_2020_12.csv\")",
"await Import.FromFile(pathToImport + \"DataNodes/DataNodeStates_FR_2020_12.csv\")",
"\n .WithFormat(ImportFormats.DataNodeState)",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
Expand All @@ -111,7 +111,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/DataNodes/DataNodeParameters_FR_2020_12.csv\")",
"await Import.FromFile(pathToImport + \"DataNodes/DataNodeParameters_FR_2020_12.csv\")",
"\n .WithFormat(ImportFormats.DataNodeParameter)",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
Expand All @@ -133,7 +133,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/DataNodes/DataNodes_ES.csv\")",
"await Import.FromFile(pathToImport + \"DataNodes/DataNodes_ES.csv\")",
"\n .WithFormat(ImportFormats.DataNode)",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
Expand All @@ -146,7 +146,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/DataNodes/DataNodeStates_ES_2020_12.csv\")",
"await Import.FromFile(pathToImport + \"DataNodes/DataNodeStates_ES_2020_12.csv\")",
"\n .WithFormat(ImportFormats.DataNodeState)",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
Expand All @@ -159,7 +159,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/DataNodes/DataNodeParameters_ES_2020_12.csv\")",
"await Import.FromFile(pathToImport + \"DataNodes/DataNodeParameters_ES_2020_12.csv\")",
"\n .WithFormat(ImportFormats.DataNodeParameter)",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
Expand All @@ -181,7 +181,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/DataNodes/DataNodes_CH.csv\")",
"await Import.FromFile(pathToImport + \"DataNodes/DataNodes_CH.csv\")",
"\n .WithFormat(ImportFormats.DataNode)",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
Expand All @@ -194,7 +194,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/DataNodes/DataNodeStates_CH_2020_12.csv\")",
"await Import.FromFile(pathToImport + \"DataNodes/DataNodeStates_CH_2020_12.csv\")",
"\n .WithFormat(ImportFormats.DataNodeState)",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
Expand All @@ -207,7 +207,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/DataNodes/DataNodeParameters_CH_2020_12.csv\")",
"await Import.FromFile(pathToImport + \"DataNodes/DataNodeParameters_CH_2020_12.csv\")",
"\n .WithFormat(ImportFormats.DataNodeParameter)",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
Expand Down
35 changes: 22 additions & 13 deletions ifrs17-template/Initialization/InitSystemorphRefDataToMemory.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"#!import \"ImportSettings\""
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
Expand Down Expand Up @@ -96,7 +105,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/Dimensions.csv\")",
"await Import.FromFile(pathToImport + \"Dimensions.csv\")",
"\n .WithType<Novelty>()",
"\n .WithType<AocType>()",
"\n .WithType<PnlVariableType>()",
Expand Down Expand Up @@ -127,7 +136,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/Dimensions.csv\")",
"await Import.FromFile(pathToImport + \"Dimensions.csv\")",
"\n .WithFormat(ImportFormats.AocConfiguration)",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
Expand All @@ -140,7 +149,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/ReportingNodes/ReportingNodes.csv\")",
"await Import.FromFile(pathToImport + \"ReportingNodes/ReportingNodes.csv\")",
"\n .WithType<ReportingNode>()",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
Expand All @@ -162,42 +171,42 @@
{
"cell_type": "code",
"source": [
"var log = await Import.FromFile(\"../Files/Parameters/YieldCurve_2019_12.csv\")",
"var log = await Import.FromFile(pathToImport + \"Parameters/YieldCurve_2019_12.csv\")",
"\n .WithFormat(ImportFormats.YieldCurve)",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
"\n .ExecuteAsync();",
"\nlog.Merge(await Import.FromFile(\"../Files/Parameters/YieldCurve_2020_1.csv\")",
"\nlog.Merge(await Import.FromFile(pathToImport + \"Parameters/YieldCurve_2020_1.csv\")",
"\n .WithFormat(ImportFormats.YieldCurve)",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
"\n .ExecuteAsync()",
"\n );",
"\nlog.Merge(await Import.FromFile(\"../Files/Parameters/YieldCurve_2020_3.csv\")",
"\nlog.Merge(await Import.FromFile(pathToImport + \"Parameters/YieldCurve_2020_3.csv\")",
"\n .WithFormat(ImportFormats.YieldCurve)",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
"\n .ExecuteAsync()",
"\n );",
"\nlog.Merge(await Import.FromFile(\"../Files/Parameters/YieldCurve_2020_12.csv\")",
"\nlog.Merge(await Import.FromFile(pathToImport + \"Parameters/YieldCurve_2020_12.csv\")",
"\n .WithFormat(ImportFormats.YieldCurve)",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
"\n .ExecuteAsync()",
"\n );",
"\nlog.Merge(await Import.FromFile(\"../Files/Parameters/YieldCurve_2021_3.csv\")",
"\nlog.Merge(await Import.FromFile(pathToImport + \"Parameters/YieldCurve_2021_3.csv\")",
"\n .WithFormat(ImportFormats.YieldCurve)",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
"\n .ExecuteAsync()",
"\n );",
"\nlog.Merge(await Import.FromFile(\"../Files/Parameters/YieldCurve_2021_6.csv\")",
"\nlog.Merge(await Import.FromFile(pathToImport + \"Parameters/YieldCurve_2021_6.csv\")",
"\n .WithFormat(ImportFormats.YieldCurve)",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
"\n .ExecuteAsync()",
"\n );",
"\nlog.Merge(await Import.FromFile(\"../Files/Parameters/YieldCurve_2021_12.csv\")",
"\nlog.Merge(await Import.FromFile(pathToImport + \"Parameters/YieldCurve_2021_12.csv\")",
"\n .WithFormat(ImportFormats.YieldCurve)",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
Expand All @@ -211,7 +220,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/Parameters/ExchangeRate.csv\")",
"await Import.FromFile(pathToImport + \"Parameters/ExchangeRate.csv\")",
"\n .WithType<ExchangeRate>()",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
Expand All @@ -224,7 +233,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/Parameters/PartnerRating.csv\")",
"await Import.FromFile(pathToImport + \"Parameters/PartnerRating.csv\")",
"\n .WithType<PartnerRating>()",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
Expand All @@ -237,7 +246,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/Parameters/CreditDefaultRate.csv\")",
"await Import.FromFile(pathToImport + \"Parameters/CreditDefaultRate.csv\")",
"\n .WithType<CreditDefaultRate>()",
"\n .WithTarget(DataSource)",
"\n .WithActivityLog()",
Expand Down
Loading