List of options in BDM?

1
0
-1

Hello,

I'm new to Bonita and I'm wondering why it's possible to create a list of options variable as a process variable but not as a BDM object attribute? Is there a way to do it?

Thanks.

4 answers

1
0
-1

Hi,

It is not possible to create enum-like type in the BDM. To achieve this you can just create your own referential types and/or use String attributes.

HTH

Romain

1
0
-1

I don't think that I was able to convey what I'm trying to achieve. Let me try this, I'm basically looking for the equivalent functionality described here in Bizagi:

https://help.bizagi.com/bpm-suite/en/index.html?select_parameter_value.htm

I want to be able to define a list of possible values for a certain parameter during the data modeling phase, not the form building phase (nor the process design phase). For a low-code BPM solution, I'm expecting to be able to graphically input the list of possible values, and then, when building a form, the list should auto-magically be populated with the possible values. Am I asking for too much?

1
0
-1

1
0
-1

Hello,

It's easy to do that. In your Bonita Studio, just near the BDM varriable, you have one other 'window' that's called : 'Process varriables'.
In this window, you can create variable without BDM.

Regards,

Comments

Submitted by patrick.dubois_... on Fri, 02/21/2020 - 14:45

Yes, I know about that but that's not what I want. I want to be able to define the list of options in the BDM, on one of my attribute. Is it possible?

Submitted by bastien.laurent... on Fri, 02/21/2020 - 15:38

So, if i understand, you need to create a processVariable, that have a BDM object in attribute?

Submitted by patrick.dubois_... on Fri, 02/21/2020 - 16:09

I don't want to create any process variable. I was just giving that as an example of the functionality I'm looking for with regards to list of options.

When we create an attribute in BDM, we have this list of type options:

UCD6h9M.png

When we create a pool variable, we have different types. I'm not sure I quite understand yet why it's not the same type choices as BDM and why I can't get a List of options in BDM.

zJ5SelR.png

I basically want some enums in my BDM. Isn't there a way to achieve that? In my perhaps overly simplified view, I would like to simply be able to define some BDM attributes as some kind of enum and when this attribute is used on a form, then I can automagically use either a drop-down list of option or radio buttons, depending on the look-and-feel I'm looking for. But then all the behind the scene code would be handled for me.

I don't quite understand how I can enforce that some attributes in the BDM really only can have a fixed number of options. It's probably just because I'm so new with Bonita and I don't quite grasp all the concepts yet.

Submitted by rtumminelli_1394599 on Fri, 02/21/2020 - 16:26

Is there something preventing you from just using a list of strings or list of objects?

Submitted by bastien.laurent... on Fri, 02/21/2020 - 16:27

Ahh ok,
The type in the BDM haven't the same name ( maybe by convention ). But you can make the correspondence between BDM attribute type and process variable type.
STRING and TEXT in BDM, it's like Text in process type.
So, if you want to create an 'Enum' type, just create a list of 'Text' and the when you select one in your form, add it the BDM attribute

Notifications