Web application context base url

I am sending email using mail connector when the user task is created.
I want to put the complete url to the task, so that user can work on the task.

Question: How do I get my web app context url from within Camunda classes (Task Listner or Execution Listner) to add it in my email message? I have this as a spring application.

For eg:

I have it hard coded as
http://localhost:8080//default/#/task/"

Thanks,
adat

1 Like

Hi Adat,

maybe this post can solve your issue.

Best regards,
Philipp

Thank you. I will check it out

@Niall Can you help here please.
How to get base url of camunda engine in javascript.
So that i can append it to process instance id and prepare url for process instance.
Example: base_url + “/camunda/app/cockpit/default/#/process-instance/” + execution.getProcessInstanceId();

Thank you