Hello,
I have a problem with an interface.
When I press a button I have to invoke a process to retrieve some data and paint a table but when I run it returns the following error.
Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error [evaluation ID = AXPRUFNG] : An error occurred while executing a save: java.lang.IllegalStateException: A Value should not be the result of activation
The code is:
saveInto: a!save( local!prueba, a!startProcess( processModel: cons!PROCESO_PRUEBA, processParameters: {entrada: ri!entrada }, onSuccess: { a!httpResponse( statusCode: 200, headers: { a!httpHeader( name: "Content-Type", value: "application/json" ) }, body: fv!processInfo.pv.ListaResultados ) } ) )
Launching the process separately recovers:
If I look at the monitoring I see that the process is running, it seems like the problem is to recover the data but I don't know if that is it or something else.
Do you know why this happens?
Regards, and thank you very much
Discussion posts and replies are publicly visible
In your current configuration, you seem to be saving your a!startProcess() call into a local variable. As far as I know this is incorrect (and probably the cause of your issue) - your a!startProcess() call should stand alone within the saveInto, more like this:
saveInto: { a!startProcess( processModel: cons!PROCESO_PRUEBA, processParameters: { entrada: ri!entrada }, ... ) }
Hi Mike,but I need to save the result of the startProcess in some variable and then use it to paint the table.
sandrap845 said:but I need to save the result of the startProcess in some variable
Yes, and for this you would use the onSuccess parameter of the link and add a save that captures the data you want into your local values.
This was the solution thank you very much!
Hi ,
I have the same issue , I could not see the fv!process.pv values in Interface once the process model execution is done on Sucess parameter.
Any help is appreciated.
make sure that you have done activity-chaining to all nodes in your process model
We have used the same thing in our UI, but we are receiving the response some times but sometimes no response. Any help is appreciated.
Thanks,
Nupoor