From eb25cadd8804e6fabdd1fd8d9223d60b968d858d Mon Sep 17 00:00:00 2001 From: Dan Selman Date: Wed, 8 Mar 2017 21:48:29 +0000 Subject: [PATCH] Use package.json for business network --- packages/composer-playground/src/app/editor/editor.component.ts | 2 +- .../src/app/services/samplebusinessnetwork.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/composer-playground/src/app/editor/editor.component.ts b/packages/composer-playground/src/app/editor/editor.component.ts index 2c19435e46..695a1ce918 100644 --- a/packages/composer-playground/src/app/editor/editor.component.ts +++ b/packages/composer-playground/src/app/editor/editor.component.ts @@ -131,7 +131,7 @@ export class EditorComponent implements OnInit { let metaData = sourceBusinessNetworkDefinition.getMetadata().getREADME(); - let businessNetworkDefinition = new BusinessNetworkDefinition(sourceBusinessNetworkDefinition.getName() + '@' + sourceBusinessNetworkDefinition.getVersion(), sourceBusinessNetworkDefinition.getDescription(), metaData); + let businessNetworkDefinition = new BusinessNetworkDefinition(sourceBusinessNetworkDefinition.getName() + '@' + sourceBusinessNetworkDefinition.getVersion(), sourceBusinessNetworkDefinition.getDescription(), null, metaData); sourceBusinessNetworkDefinition.getModelManager().getModelFiles() .map((modelFile) => { return modelFile.getDefinitions(); diff --git a/packages/composer-playground/src/app/services/samplebusinessnetwork.service.ts b/packages/composer-playground/src/app/services/samplebusinessnetwork.service.ts index 67ef5cb34f..b12fb174e8 100644 --- a/packages/composer-playground/src/app/services/samplebusinessnetwork.service.ts +++ b/packages/composer-playground/src/app/services/samplebusinessnetwork.service.ts @@ -420,7 +420,7 @@ export class SampleBusinessNetworkService { let metaData = results[3]; let packageContents = results[4]; - let businessNetworkDefinition = new BusinessNetworkDefinition(packageContents.name + '@' + packageContents.version, packageContents.description, metaData.data); + let businessNetworkDefinition = new BusinessNetworkDefinition(null, null, packageContents, metaData.data); let modelManager = businessNetworkDefinition.getModelManager(); modelManager.addModelFiles(models);