cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Workflow binding issues

former_member773803
Discoverer
0 Likes
1,074

Hi,

I have a problem in workflow with a binding of a value. We are collecting a value from the workflow header and binding it to several tasks in the workflow. The value in the header is constantly changing and it is showing the latest agent of a dialog step.

The binding we use looks like this: binding.png

The issue we are facing, as I understand it, is that upon workflow creation the value is empty, since no user dialog step has been executed. The binding seems not to allow empty values and WF ends up in error.

This is the error message we receive: error.png

I thought that it should be okay since we ticked in the boxes “No Action if Source Values is initial” and “ No Action if Source Value empty” in the Binding instruction display. I have never used them before so I am not really sure on what they do.

Do you guys have any idea on how to solve this?

BR
Ted

View Entire Topic
pokrakam
Active Contributor

The "source" here is the ID attribute, but the system has trouble identifying the object it belongs to.

i.e. You have a chain obj1.obj2.attr. It can't determine if attr is empty because obj2 doesn't exist so fails.

You could bind the lastagent object, or create an additional element for just the ID and add another binding in the task that assigns it.

former_member773803
Discoverer
0 Likes

Thanks for your answer. I came to the same conclusion. The object we were using to show the last agent of a dialog step is a virtual object and only gets created once a dialog step is excuted hence the object does not exist when the workflow is started and no dialog step has been executed. Therefore the binding did not work, and we need to come up with another solution.