Skip to main content
Known Participant
Jun 3, 2024 1:39 PM UTC
Question

Not being able to get updated value after process run

a!startProcess(
    processModel: cons!CE_GERAR_PIX,
    processParameters: {
      token: local!token,
      idSolicitacao: ri!idSolicitacao,
      valorPrevisto: local!value_for_payment,
      fileHistoricoContrib: local!uploaded_contrib_history_file[1],
      result: null
    },
    onSuccess: a!save(
      local!test, fv!processInfo.pv
    )
)

The result is not being updated from process model

As it's a portal, I can't use a form inside the process model. At the Output, as you can see, the result is being stored. The process instance stores the variable, but it doesn't load the `Result` for the interface

The instance:

So what should I do to accomplish it? Any documentation into that? the interface onSuccess calling doesn't fully load the values I am expecting

5 replies

stefanhelzle0001
Brainy
Jun 3, 2024 2:16 PM UTC

Did you enable process chaining up to the node that modifies the process variables?

Known Participant
Jun 3, 2024 2:19 PM UTC

I am not being able to find it on the setup tab. Please, what should I do?

Known Participant
Jun 3, 2024 2:20 PM UTC

As this one is not a parameter, but I am expecting to pass back as result of the integration

mikes0011
Brainy
Jun 3, 2024 5:32 PM UTC

AFAIK apart from enabling chaining, you will also want to call "fv!processInfo.pv.Result" here if you wish to access the value of "pv!Result".

The Expression Guru