Skip to main content
July 9, 2024
Question

Process model is not initiating on click of button from a!gridLayout()

  • July 9, 2024
  • 21 replies
  • 1 view

I am trying to execute a process model on click of button which one of the  component in editable grid. Unfortunately. the PM is not getting initiated.

Can anyone help what could be the reason.

a!buttonLayout(
primaryButtons: {
a!buttonWidget(
label: "Save",
saveInto: a!startProcess(
processModel:cons!TRA_WriteRecordsPM,
processParameters: {recordTRA:fv!item},
onSuccess: a!save(local!success,fv!processInfo),
/*onError: a!save(local!data)*/

),
submit: true()
)
}
),

21 replies

stefanhelzle0001
July 9, 2024

I do not see anything wrong with your code. Did you try to check the tomcat-stdout log file?

July 10, 2024

Attaching tomcat logs for your reference.

venkatrea696188
July 9, 2024
submit: true()

What's happening after clicking the button?? . when we set Submit = true, it try's to move away from current interface but it's an editable grid and the action is for the current row.Try removing it.

--edit-- Sorry , it's working fine  with submit set to true. Only thing to check is, are you passing all the required process variables?

July 10, 2024

I have tried removing submit:true as well. Its not getting initiated.

venkatrea696188
July 10, 2024

Do the reverse engineering check the following

1. Do you have at least initiator access to the process Model.

2. Check the Constant Defined Properly and the process Model Configured Properly(Published version).

3. Check whether you are passing each Required Parameter (With Exact names)

4.Record Mappings with Source  are proper

davidj137213
July 9, 2024

are you sure the model is not initiated? did you check process monitor and tomcat-stdout.log?

July 10, 2024

Yes, i am sure, model is not getting initiated and  when i checked the tomcat log file, it showed me this error. But i am confused what this error means. Can someone please guide

July 10, 2024

Hi, check on the process parameters. 

Either create a really simple process model with no parameters, or add a simple text variable to the existing process model and try and kick that off. It might be the record mapping.

July 10, 2024

Maybe there is an issue with the constant configuration.

July 10, 2024

No that is not the case

July 10, 2024

Basically, i have used a foreach loop in editable grid. And for each row this button is populating , so when i am clicking on button a particular row to save updated entry in DB (via process model). Its not working i.e. PM is not getting initiated.

July 10, 2024

what, if anything, gets stored in the local!success variable?

and could you add the onError property here as well and check?

July 10, 2024

Both are coming as null.