How can i assign forms dynamically to different participants?

Confluence User - 03 Feb, 2024

I have to develop a task management application, where i should map participants dynamically to different tasks .

Here task1, task2, etc is representing different forms. If i map this forms using process builder, i have to consider every possible activities while creating the processflow. But that can't be done since there is no limit in the number of tasks that can be assigned. 

Dynamic partcipant mapping can be implemented using workflow variable, but dynamic form mapping with activityis not there in process builder. 

When i submit this taskform, it should iterate through this spredsheet and assign the forms dynamically. How this can be implemented?

forms;activity;mapping

1


05 Feb, 2024
confluenceUser
confluenceUser

You can use https://marketplace.joget.org/jw/web/userview/mp/mpp/_/vad?id=iterator-v7.0.4 to iterate through your grid's rows. Then use snippet code like below to start / interact with process activity.

This is sample code to start a new process instance.


import org.joget.workflow.model.service.WorkflowManager;
import org.joget.apps.app.service.AppUtil;
import java.util.HashMap;
import java.util.Map;


Map variables = new HashMap();
variables.put("approver", "cat");
WorkflowManager workflowManager = (WorkflowManager) AppUtil.getApplicationContext().getBean("workflowManager");

workflowManager.processStart("requestApp:latest:approval", null, variables, "admin", null, false);


Can also study the code at Multiple Approval

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print