How to Pass recordId When Starting a Process from a List Hyperlink in Joget?

Confluence User - 09 Feb, 2025

I am working on a Joget application where I have a list of customers, and I want to add an action to start a process when a user clicks on a hyperlink in the list. However, instead of directly deleting the record, I want the process to require admin approval before the deletion is finalized.

datalists;process

3


09 Feb, 2025
confluenceUser
confluenceUser
09 Feb, 2025
confluenceUser
confluenceUser

Didier Testelin Currently, if I use Run Process in UI Builder, the user has to click Delete, then manually submit a form, which feels redundant.

Is there a way to start the process immediately when the user clicks "Delete" without requiring another form submission?

10 Feb, 2025
confluenceUser
confluenceUser

Nguyen Xuan Dai You can use the beanshell datalist action plugin and write code initiate the process automatically. 

Refer:

Start a process from bean shell tool
Bean Shell Programming Guide#UseasDatalistAction

Utility and Service Methods


AppService appService = (AppService) AppUtil.getApplicationContext().getBean("appService");
WorkflowManager workflowManager = (WorkflowManager) AppUtil.getApplicationContext().getBean("workflowManager");
      
//get process
WorkflowProcess process = appService.getWorkflowProcessForApp(appDef.getAppId(), appDef.getVersion().toString(), "emailReminderScheduler");
     
//start process
WorkflowProcessResult result = workflowManager.processStart(process.getId(), null, variables, null, recordId, false);
    


RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print