I am working on a case with a process, and I have a requirement to add a functionality that seems challenging. Here’s the scenario:
- Goal:
- I want to add an action to the three dots menu (which, when empty, says “No available actions”) of a user task in the process.
- This action should:
- Close the current process.
- Transition to a stage on the case level to set specific case-level flags.
- Close the case entirely.
- What I’ve Tried:
- On the case level, I’ve successfully implemented manual activations and user event listeners for similar actions. However, I can’t replicate this behavior at the process level for the user task.
- Currently, I have an outcome button for the user task, but I want to move this functionality to the three dots menu instead of displaying it as a normal outcome button.
- Challenges:
- I am unable to figure out how to add custom actions to the three dots menu of the user task without showing them elsewhere.
- I also need to ensure that this action effectively communicates with the case to trigger the appropriate transitions and actions.
- Possible Alternatives:
- Alternative 1: Add an action at the case level and expose it to the user task in the process.
- Alternative 2: Create an action at the user task level that can:
- Close the process.
- Transition to a case-level stage to set the necessary variables.
- Close the case.
I’m looking for guidance on the following:
- Is it possible to add actions to the three dots menu in a user task?
- If yes, how can I implement such an action to achieve the desired functionality?
- Are there better approaches to achieve this functionality that I might have overlooked?