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!
I everybody! I have the same problem, but I can't find the solution like yours.I want to show a message in case of success/error from a processModel, but if I put the a!save into the onSuccess/onError, it returns me immediately the onSuccess message. Consider that the integration gives me error after 10 seconds.