cancel
Showing results for 
Search instead for 
Did you mean: 

Setting form property required/writable/readable attribute values with an expression

jim1
Champ on-the-rise
Champ on-the-rise
Is it possible to do the following, or something similar?

<activiti:formProperty id="someProperty" name="Some Property" type="boolean" required="${isRequired}" readable="${isReadable}" writable="${isWritable}"></activiti:formProperty>
(assuming the variables in the expressions have been set up correctly)

My investigation so far suggest it isn't possible to do this, but I just wanted to check I wasn't missing a trick somewhere before writing the idea off.

Thanks.
4 REPLIES 4

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Jim,

I think you are right


  protected boolean readable = true;
  protected boolean writeable = true;
  protected boolean required;

The values are resolved during parsing. (are not evaluated during runtime.
You can change implementation easily.

Regards
Martin

jim1
Champ on-the-rise
Champ on-the-rise
Thanks Martin, will take a look.

schmke
Champ in-the-making
Champ in-the-making
Jim,

Did you do anything in this area?

I have a situation where completing a task can cause the process instance to take one of several paths and certain form properties are required for one of the paths.  So I'd like to be able to conditionally say they are required depending on the action specified.  Is there a way to do this?

jbarrez
Star Contributor
Star Contributor
The typical bpmn way would be to use an exclusive gateway with conditions on the outgoing sequence flow.