Accessing Variables in the Form Builder

1
0
-1

Hi,

i have searched here for quite a bit. I found way's to use business aswell as process variables in the ui form builder.

I'm having trouble, because i'm iterating on the activity containing the ui form. The iterator goes over a list of applications, which are loaded into a process variable from a database. But i can't access the iterator in any way within the ui form designer. (Which works fine if i'm iterating on business data)

Or in Short: How to access local variables within the ui designer?

Version: Subscription 7.1

Any help would be appreciated.

Regards
Philipp

1 answer

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

Hi,

You have to use the REST API using ActivityVariable or CaseVariable. Read here: http://documentation.bonitasoft.com/?page=bpm-api#toc13

Bye.

Comments

Submitted by philipp.heuer on Fri, 12/02/2016 - 09:54

That definitly is the right way.

But i can't find a way to get the activityId within the ui designer. Does someone have an idea?

Submitted by dbravo on Fri, 12/02/2016 - 15:18

Hi,

In all forms (forms not pages) you have the taskId variable always available, if you don't, you have to get the parameter, create a new variable on the UI designer with URL parameter type, and on the name of the parameter use id, this parameter tells to Bonita what is the activity that has to open.

Bye.

Notifications