Skip to main content
Known Participant
Jul 9, 2024 5:01 PM UTC
Question

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

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
Brainy
Jul 9, 2024 5:05 PM UTC

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

Known Participant
Jul 10, 2024 7:01 AM UTC

Attaching tomcat logs for your reference.

venkatrea696188
Inspiring
Jul 9, 2024 5:14 PM UTC
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?

Known Participant
Jul 10, 2024 7:00 AM UTC

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

venkatrea696188
Inspiring
Jul 10, 2024 7:13 AM UTC

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
Brainy
Jul 9, 2024 10:38 PM UTC

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

Known Participant
Jul 10, 2024 7:00 AM UTC

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

Inspiring
Jul 10, 2024 8:26 AM UTC

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.

Participating Frequently
Jul 10, 2024 10:41 AM UTC

Maybe there is an issue with the constant configuration.

Known Participant
Jul 10, 2024 11:56 AM UTC

No that is not the case

Known Participant
Jul 10, 2024 12:28 PM UTC

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.

Inspiring
Jul 10, 2024 12:41 PM UTC

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

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

Known Participant
Jul 10, 2024 12:52 PM UTC

Both are coming as null.