Cam variables

Dear Team,

I have 10 cam-varaibles which these are common for multiple processes.

Could you please let me know is there any way Need to maintain in common area.

Appreciate your help.

Regards,
Suhaib

Hi Suhaib,

for me it is not clear what you are asking.

What do you mean with “common for multiple processes”.
You need this variables in different process instances?

Need to maintain in common area.

What do you mean with this statement?

Please refine/clarify your question.

Greets,
Chris

Hi Chris,

Thanks for reply.

I have 10 variables var1…10. These variables I need to include in multiple process. If any addition and deletion I will add or delete.

So, that it has to reflect all processes. Is there anyway to achive this.

Regards,
Suhaib.

Hi Suhaib,

thanks for your reply.

You can start an process instance with RuntimeService#startProcessInstanceById and pass your variables in,
see the JavaDoc.

If you have a new variable you could use RuntimeService#setVariable with the corresponding process instance id
and pass the variable to the process instance, see JavaDoc for this method.

Does this answer your question?

Greets,
Chris

Hi Chris,

Thanks for reply. Let me put this way.

I have 5 tasks in the process. In each task I have 10 common variables. I don’t want include all these 10 variables in each and every form. I want be import these 10 common variables in each form.

Is there any way for this?

Regards,
Suhaib

Hi Suhaib,

since you can use external or embedded forms, I think it should be easy to reuse some
HTML or JS structures in your forms. See the documentation of the Embedded Forms for more information.

Greets
Chris

Hi

I have multiple forms (embedded) which have many fields in common . I am trying to put the common fields in one form and include it in other forms.
For example i have two forms a.html(form with common fields) and b.html.
I am making ajax call from b.html to fetch values from a.html.I am not able to get the url for the form a.html to make ajax call to get the response.

  1. How can i get the url to read the form inside tomcat/webapps.

  2. Is there any way to override camunda ui to make it accept multiple forms.

Thanks.

Regards,
Vinu

Hi Chris,

I am also having same issue.If you have any git code, could you please share reference.

Regards,
K