diff --git a/packages/node-red-contrib-composer/README.md b/packages/node-red-contrib-composer/README.md
index 1688bf7..50c1db9 100644
--- a/packages/node-red-contrib-composer/README.md
+++ b/packages/node-red-contrib-composer/README.md
@@ -16,7 +16,7 @@ In this example we will create a participant, the participant .
2. Create a `hyperledger-composer-out node`
-3. Enter the `connection profile name`, `business network identifier`, `user Id`, and `user secret` on the `hyperledger-composer-out node`.
+3. On `Composer Card` click the pencil top add a new config node. Specify the `card name`, or use the drop down to use one previous created.
4. Use an inject node and set it to use `JSON` and enter the following JSON
@@ -33,8 +33,8 @@ A node red mid flow node that allows you to create, retrieve, update, or delete
This example follows on from the above example. It will retrieve the participant that was created above.
1. Create a `hyperledger-composer-mid node`
-
- 2. Enter the `connection profile name`, `business network identifier`, `user Id`, and `user secret` on the `hyperledger-composer-mid node`.
+
+ 2. On `Composer Card` click the pencil top add a new config node. Specify the `card name`, or use the drop down to use one previous created.
3. Use an `inject node` and set it to use JSON and enter the following JSON
@@ -46,3 +46,5 @@ This example follows on from the above example. It will retrieve the participant
##Hyperledger-Composer-In
A node red input node that subscribes to events from a blockchain
+
+1. On `Composer Card` click the pencil top add a new config node. Specify the `card name`, or use the drop down to use one previous created.
diff --git a/packages/node-red-contrib-composer/nodes/hyperledger-composer-config.html b/packages/node-red-contrib-composer/nodes/hyperledger-composer-config.html
index d54f007..714fe7b 100644
--- a/packages/node-red-contrib-composer/nodes/hyperledger-composer-config.html
+++ b/packages/node-red-contrib-composer/nodes/hyperledger-composer-config.html
@@ -2,34 +2,18 @@
RED.nodes.registerType('hyperledger-composer-config',{
category: 'config',
defaults: {
- connectionProfile: {value:"hlfv1",required:true},
- businessNetworkIdentifier: {value:"",required:true},
- userID: {value:"",required:true},
- userSecret: {value:"",required:true},
+ cardName: {value:"",required:true}
},
label: function() {
- return this.connectionProfile+":"+this.businessNetworkIdentifier;
+ return this.cardName;
}
});
diff --git a/packages/node-red-contrib-composer/nodes/hyperledger-composer-config.js b/packages/node-red-contrib-composer/nodes/hyperledger-composer-config.js
index 280546a..f26bdf3 100644
--- a/packages/node-red-contrib-composer/nodes/hyperledger-composer-config.js
+++ b/packages/node-red-contrib-composer/nodes/hyperledger-composer-config.js
@@ -1,10 +1,7 @@
module.exports = function(RED) {
function HyperledgerComposerConfigNode(n) {
RED.nodes.createNode(this,n);
- this.connectionProfile = n.connectionProfile;
- this.businessNetworkIdentifier = n.businessNetworkIdentifier;
- this.userID = n.userID;
- this.userSecret = n.userSecret;
+ this.cardName = n.cardName;
}
RED.nodes.registerType("hyperledger-composer-config",HyperledgerComposerConfigNode);
-}
\ No newline at end of file
+};
diff --git a/packages/node-red-contrib-composer/nodes/hyperledger-composer.html b/packages/node-red-contrib-composer/nodes/hyperledger-composer.html
index 82e2bed..638808a 100644
--- a/packages/node-red-contrib-composer/nodes/hyperledger-composer.html
+++ b/packages/node-red-contrib-composer/nodes/hyperledger-composer.html
@@ -21,8 +21,8 @@