Skip to main content
August 2, 2023
Question

Getting error in Interface configured for User Input Task: An Error Has Occurred, An error was encountered while processing your request.

  • August 2, 2023
  • 8 replies
  • 0 views

I've configured User Input Task in a process where I've used an Interface in which I'm using StartProcess smart service to invoke a process, Please find the code snippet below:

a!buttonWidget(
label: "Approve1",
saveInto: {
a!startProcess(
processModel: cons!PA_ProcessConstant(),
processParameters: {
currentWorkstep: local!currentWorkstep,
temp: "Test Param",
workCount: local!workstepCount,
worksteps: local!worksteps
},
onSuccess: a!save(
local!outPut,
"Process started successfully"
),
onError: a!save(local!outPut, "Process failed to start")
)
},
submit: true,
style: "PRIMARY",
showWhen: { if(ri!workstepcount = 0, false, true) }
)

The above code is resulting in the error as shown below: 

If I will comment the saveInto parameter of buttonWidget from the above code snippet the interface works fine. Please let me know If there is any issue in the code.

8 replies

stefanhelzle0001
Brainy
August 2, 2023

Is there a specific reason to start a process in a submit button?

August 2, 2023

Yes, Based on condition I want to have another User Input Task in the process I will be executing from Interface.

stefanhelzle0001
Brainy
August 2, 2023

That's a bad idea. Why not just add some more nodes to the process?

ponnuchama617877
Known Participant
August 4, 2023

Hi,

  I have recreated the scenario. Can you remove the parentheses from process model's constant and try again? PFA for your reference. Thanks!