How to get the process name in an Instantiation form ?

1
0
-1

Hello,

I have an instantiation form which is used by many different processes.

On the form, I need to know which process is concerned.

Since there's no context for an instantiation form, I don't how to do that.

Has someone any idea ?

Regards,

Thierry.

1 answer

1
+1
-1
This one is the BEST answer!

Hi,

You can use the id parameter of a process instantiation form url that correspond to the processDefinitionId.

  • Add a variable in your form of type URL Parameter with name processDefinitionId and URL parameter name to id.
  • Add another variable processDefinition of type External API with the following API call:
    ../API/bpm/process/{{processDefinitionId}}

You can then use {{processDefinition.displayName}} to retrieve the name of the current process.

HTH
Romain

Comments

Submitted by brt6178_1422639 on Tue, 03/02/2021 - 09:27

Thank you very much !

It helps me a lot thumbs_up.png

Notifications