Jump to content

Task Outcome Error


Recommended Posts

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:

Capture11.PNG.55a6fd4612eac434a7fa8150ea759202.PNGCapture22.thumb.PNG.0e69e297964a9fcb187cbb2e3256a9a9.PNG

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

Capture33.PNG.01dc04954a540755405c78b7d8e44636.PNG

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

 

Link to comment
Share on other sites

@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 :)

 

Link to comment
Share on other sites

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? 

Link to comment
Share on other sites

@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.

Link to comment
Share on other sites

 

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?

 

Link to comment
Share on other sites

@yelyah.nodrog for the CH00049585 example the issue occurs here:

image.png

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:

 image.png

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:

image.png

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... 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...