DecisionsDev / sample-blockchain-vehicle-lifecycle

This sample illustrates how IBM ODM can be used with HyperLedger Fabric and Composer to implement rule-based Smart Contracts
Apache License 2.0
20 stars 26 forks source link

Initializing the RES with latest version of XOM/Ruleapp when a peer is joining a network #22

Open stephane-mery opened 7 years ago

stephane-mery commented 7 years ago

Current version of the code sample assume all peers are running when deploying a given version of the rules. There is nothing that initializes the odm-runtime with latest version of the XOM and latest version of the rules. That's a missing feature.

The information is available in the World State, so we could do it, has to be done

stephane-mery commented 7 years ago

we need to write a client JS app that would be called when initializing the peer (may be in the startup phase of the odm-runtime container) which would use Composer CLI to read the registry and initialize the RES from information available in the registry, if any.

Using getAssetRegistry on the BusinessNetworkConnection object in CLI