Skip to content

Commit

Permalink
Use package.json for business network
Browse files Browse the repository at this point in the history
  • Loading branch information
dselman committed Mar 8, 2017
1 parent 26d571f commit eb25cad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit eb25cad

Please sign in to comment.