yelyah.nodrog Posted May 17, 2018 Posted May 17, 2018 I am getting the following error when the outcome for a task 'More information required' is selected. flowcode ("s1"/"flowcode-07ca230e-2786-499e-f987-a499190ca29a") execute: at 1/125: "Uncaught TypeError: Cannot read property 'outcome' of null" ((function(s){ return true || s !== undefined? s: "" })(functions.getTaskParams("task-8974dc14-ec21-4bda-ec95-309f03ab4592").outcome))" ---------------------------------------- ((function(s){ return true || s !== undefined? s: "" })(functions.getTaskParams("task-8974dc14-ec21-4bda-ec95-309f03ab4592").outcome) I am assuming that the node where i am trying to update the request timeline with the custom outcome for the task is the issue here. I have set it as so: I believe the function is incorrect and prehaps the task code is the wrong one, if this is the case how do i find out what he task code is for that node? When i go to variable picker- tasks- i get 2 options 'get additional info' becasue i have 2 task nodes with the more information required button on them It doesnt matter which option i select they both come back with the same error? Jsut with the differnet Task code: flowcode ("s1"/"flowcode-07ca230e-2786-499e-f987-a499190ca29a") execute: at 1/125: "Uncaught TypeError: Cannot read property 'outcome' of null" ((function(s){ return true || s !== undefined? s: "" })(functions.getTaskParams("task-8974dc14-ec21-4bda-ec95-309f03ab4592").outcome))" ---------------------------------------- ((function(s){ return true || s !== undefined? s: "" })(functions.getTaskParams("task-8974dc14-ec21-4bda-ec95-309f03ab4592").outcome) Or flowcode ("s1"/"flowcode-07ca230e-2786-499e-f987-a499190ca29a") execute: at 1/125: "Uncaught TypeError: Cannot read property 'outcome' of null" ((function(s){ return true || s !== undefined? s: "" })(functions.getTaskParams("task-57c5d569-4a57-4801-25eb-59fd5a90f381").outcome))" ---------------------------------------- ((function(s){ return true || s !== undefined? s: "" })(functions.getTaskParams("task-57c5d569-4a57-4801-25eb-59fd5a90f381").outcome)) Hayley
Victor Posted May 17, 2018 Posted May 17, 2018 @yelyah.nodrog there is a fix in latest Admin tool which I believe it addresses this issue. Let me know if it doesn't. The admin tool update is automatic, which means the fix is already been deployed in your instance.
yelyah.nodrog Posted May 17, 2018 Author Posted May 17, 2018 Ta victor ill take a look, but also how do i find out what the correct flowcode is for a task? to make sure i am using the correct one? Hayley.
yelyah.nodrog Posted May 17, 2018 Author Posted May 17, 2018 Hey Victor i am still getting the error message even after the fix, Please can someone tell me how to resolvethis flowcode issue? Hayley.
Victor Posted May 17, 2018 Posted May 17, 2018 @yelyah.nodrog ok, I think I know what you trying to achieve... so, to make sure I get this right, you have an "authorisation" node, that has a "More Information Required" as a tentative outcome for the authorisation task. When this outcome is selected you want to capture the outcome details (the reason) in a custom field? If I understand this right then no, you cant achieve this I'm afraid because of the authorisation tasks not being available in the variable picker... On the other hand the variables and "Get Additional Info" tasks you see in the variable picker are from tasks that a) never happened because the process followed another route or b) never happened because the process did not reach it yet. This is why the error occurs... However, you can see them in the picker because a) the task that never happened could possibly have happened if the process followed a different route to authorisation or b) the task that never happened yet would have happened at some point and process then circle back to the authorisation node... I am happy to further explain this on the process you have configured if the above does not make much sense
yelyah.nodrog Posted May 18, 2018 Author Posted May 18, 2018 Hey Victor, we have been doing this for a while? Daniel Riley set it up 1 1/2 - 2 Yrs ago and it has been working until the last few days? It works further up in the BPM but doesn't appear to be working further down? Hayley. Unless we are getting our wires crossed?
Victor Posted May 18, 2018 Posted May 18, 2018 @yelyah.nodrog I had a thought it might be a bit difficult to explain this in words as the process is quite complex... so, I suggest we schedule a remote session to have a chat about this and explain what I meant .. I'll send you an email from the support request incident you raised on this issue.
yelyah.nodrog Posted May 18, 2018 Author Posted May 18, 2018 I have taken this node out of the process and it is till not working, so when we pick the tentative option on the change called "More info required" we get the error: flowcode ("s1"/"flowcode-07ca230e-2786-499e-f987-a499190ca29a") execute: at 1/125: "Uncaught TypeError: Cannot read property 'outcome' of null" ((function(s){ return true || s !== undefined? s: "" })(functions.getTaskParams("task-8974dc14-ec21-4bda-ec95-309f03ab4592").outcome))" ---------------------------------------- ((function(s){ return true || s !== undefined? s: "" })(functions.getTaskParams("task-8974dc14-ec21-4bda-ec95-309f03ab4592").outcome) It has been working untill the last few dayys so i cant tell from this error what it means has gone wrong?
Victor Posted May 18, 2018 Posted May 18, 2018 @yelyah.nodrog possibly because in the latest example the process is following a different path (there are many paths in the process), a path that does not go via any of the tasks that are used in the variable...
Victor Posted May 18, 2018 Posted May 18, 2018 @yelyah.nodrog give me the latest request reference where the issue occurs and I'll try and explain it here...
yelyah.nodrog Posted May 18, 2018 Author Posted May 18, 2018 https://live.hornbill.com/.../servicemanager/request/view/CH00049585/
yelyah.nodrog Posted May 18, 2018 Author Posted May 18, 2018 if not its fine we will have to arrange a date next week!(earlier the better as it breaks every change if that option is selected.
Victor Posted May 18, 2018 Posted May 18, 2018 @yelyah.nodrog for the CH00049585 example the issue occurs here: The task with ID 57c5d569-4a57-4801-25eb-59fd5a90f381 is not available to the process at that stage (Outcome - Custom P). This is why the error occurs. The task with ID 57c5d569-4a57-4801-25eb-59fd5a90f381 exists later in the process as "Get additional info", here: I assume it is used for the other "Outcome - Custom P" node (which is also wrong, but I'll explain it in a separate discussion). What it looks here is that this "Outcome - Custom P" node was copied from the location presented in the above screenshot to where it fails now: When it was copied, it's current settings were kept which are incorrect because it now refers to a task that did not occur yet. So, in the red highlighted node, where the process fails currently, what information you want to populate in "Custom P"? If it is the outcome of the "Local Authorisation (with Tentative Option)" authorisation task, you can't achieve this because authorisation tasks are simply not available in the variable picker. If is an outcome of a human task then you need to edit the value for "Custom P" and from the variable picker pick the task that you need. 2 hours ago, yelyah.nodrog said: Daniel Riley set it up 1 1/2 - 2 Yrs ago and it has been working until the last few days? Maybe not the version that exists now, as Custom P field (among others) was introduced this year...
yelyah.nodrog Posted May 21, 2018 Author Posted May 21, 2018 Ta Victor, i will take a look at it properly when i get 2 secs Hayley.
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