DougA Posted May 4, 2017 Posted May 4, 2017 I'm in the process of converting our written procedures into Hornbill. Most of them are a single activity which is working well for us. However, I'm now into the more complex procedures where multiple activities are required, assigned to different teams but occur concurrently. Unless I'm very much mistaken activities are sequential. I did try putting the activities into a parallel process but I was getting a rather complex error when completing an activity Here is the error message returned for this workflow: decision ("585d6fbe-21a1-8429-7be9-b722f46e52bd"/"decision-5d2fa708-96cd-4598-cd5d-7c68c0e563c2") execute: at 1/497: "Uncaught TypeError: Cannot read property 'tasks' of undefined" (function(){ var outcome=false;if(functions.pcf===undefined){functions.pcf = function(formId,questionId){ var pcfForms = {}; if(typeof global["flowcode"]["syspcfanswers"] ==="string") {try{ pcfForms = JSON.parse(global["flowcode"]["syspcfanswers"]); if(typeof pcfForms[formId] === "object"){if(pcfForms[formId].hasOwnProperty(questionId)){return pcfForms[formId][questionId];}}}catch(e){};}return "";}};var task=global["TASKS"][global["currentStage"]]["task-2477fae1-3912-4872-f324-ba97f114a583"]["tasks"][0];if(task["response"] && task["response"]["result"] && task["response"]["result"]["params"]) { if(task["response"]["result"]["params"]["status"]=="expired"){ outcome="expired"; } else{ outcome=task["response"]["result"]["params"]["outcome"]; }}" ---------------------------------------- (function(){ var outcome=false;if(functions.pcf===undefined){functions.pcf = function(formId,questionId){ var pcfForms = {}; if(typeof global["flowcode"]["syspcfanswers"] ==="string") {try{ pcfForms = JSON.parse(global["flowcode"]["syspcfanswers"]); if(typeof pcfForms[formId] === "object"){if(pcfForms[formId].hasOwnProperty(questionId)){return pcfForms[formId][questionId];}}}catch(e){};}return "";}};var task=global["TASKS"][global["currentStage"]]["task-2477fae1-3912-4872-f324-ba97f114a583"]["tasks"][0];if(task["response"] && task["response"]["result"] && task["response"]["result"]["params"]) { if(task["response"]["result"]["params"]["status"]=="expired"){ outcome="expired"; } else{ outcome=task["response"]["result"]["params"]["outcome"]; }} return [(outcome== "Cancelled") == true,(true) == true]; })() Is there a way to accomplish parallel activities? Thanks Doug
Steve Giller Posted May 4, 2017 Posted May 4, 2017 Asssuming pcf = Progressive Capture Form (or Flow) this looks like you're trying to make a decision on a question that hasn't been answered.
DougA Posted May 5, 2017 Author Posted May 5, 2017 That's exactly what was wrong. Thanks for the tip although I still can't figure out what the error meant! Much appreciated Doug
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now