Skip to main content
June 3, 2024
Question

Not being able to get updated value after process run

  • June 3, 2024
  • 5 replies
  • 0 views

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
June 3, 2024

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

June 3, 2024

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

June 3, 2024

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

mikes0011
Brainy
June 3, 2024

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