Implements a loadPetriNetUris4Dbg method to retrieve and log the petriNetProcessUris and their respective state to the console
@@ -12,6 +12,7 @@ import { connect2Redux } from "../won-utils.js";
import { attach, delay } from "../utils.js";
import {
fetchAgreementProtocolUris,
+ fetchPetriNetUris,
fetchMessage,
} from "../won-message-utils.js";
import { actionCreators } from "../actions/actions.js";
@@ -352,6 +353,20 @@ function genComponentConf() {
});
}
+ //TODO: THIS IS SOLELY FOR TESTING PURPOSES
+ loadPetriNetUris4Dbg() {
+ const connectionUri = this.connection && this.connection.get("uri");
+ if (connectionUri) {
+ fetchPetriNetUris(connectionUri)
+ .then(response => {
+ console.log("Response: ", response);
+ })
+ .catch(error => {
+ console.error("Error: ", error);
+ });
+ }
+ }
+
ensureAgreementDataIsLoaded(forceFetch = false) {
delay(0).then(() => {
if (
