How to debug profile level workflow - kwantu/platformconfiguration GitHub Wiki
Created by Rob Worthington on Oct 12, 201. Copied from Kwantu Wiki on 2018-12-17.
Steps for debugging data for PROFILE level workflow:
-
Open profile
-
Run on console
dao.get("_local/"+app.profile._id + ":processes:local")
.then(function(s){console.log(JSON.stringify(s)); }).catch(function(s){console.log(s)})
- Run on console
dao.get(app.profile._id + ":processes")
.then(function(s){console.log(JSON.stringify(s)); }).catch(function(s){console.log(s)})
- Copy response of command 2 & 3 in a file and send us for debugging.
Step to clear PROFILE level workflow issue:
-
Open profile
-
Run command on console
dao.deleteDocument("_local/"+app.profile._id + ":processes:local")
.then(function(s){console.log(s); }).catch(function(s){console.log(s)})
- Go back to profile listing page and open the profile again
Steps for debugging data for SUB_PROFILE level workflow:
-
Open profile
-
Open subprofile node on which the problem is
-
Run on console
dao.get("_local/"+app.profile.subprofileId + ":processes:local")
.then(function(s){console.log(JSON.stringify(s)); }).catch(function(s){console.log(s)})
- Run on console
dao.get(app.profile.subprofileId + ":processes")
.then(function(s){console.log(JSON.stringify(s)); }).catch(function(s){console.log(s)})
- Copy response of command 3 & 4 in a file and send us for debugging.
Step to clear SUB_PROFILE level workflow issue:
-
Open profile
-
Open subprofile node on which the problem is
-
Run command on console
dao.deleteDocument("_local/"+app.profile.subprofileId + ":processes:local")
.then(function(s){console.log(s); }).catch(function(s){console.log(s)})
- Go back to profile listing page and open the profile again