Activiti Forms, initial value for form property

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2012 09:11 AM
I'm using activiti 5.9 and I want to be able to set initial value for an specific form property.
this initial value should be used when variable with given id does not exist in process, and might be overwritten when user task gets completed by user and new value will stored in process variable.
I thought that Expression is for this purpose but I couldn't do that.
this initial value should be used when variable with given id does not exist in process, and might be overwritten when user task gets completed by user and new value will stored in process variable.
I thought that Expression is for this purpose but I couldn't do that.
Labels:
- Labels:
-
Archive
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2012 03:30 AM
Hi,
You can't configure a form field with an initial value that should only be used when a specific variable does not exist.
What you can do is set a process variable before executing the user task and use another process variable value or an initial value and use this for the form field.
Best regards,
You can't configure a form field with an initial value that should only be used when a specific variable does not exist.
What you can do is set a process variable before executing the user task and use another process variable value or an initial value and use this for the form field.
Best regards,

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2012 04:05 AM
Thanks for your reply
But what I means was exactly what default property of a form property does. I was unaware about that because Activiti designer does not support it.
My problem now is, when I manually set default for form property in xml representation of my bpmn file, next time I use Activiti Designer to edit it, Designer will remove default property.
But what I means was exactly what default property of a form property does. I was unaware about that because Activiti designer does not support it.
My problem now is, when I manually set default for form property in xml representation of my bpmn file, next time I use Activiti Designer to edit it, Designer will remove default property.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2012 04:30 AM
Hi,
Thanks for replying, I think I misunderstood the question and you are absolutely right about that.
I'll fix this now and add the default property to a form field in the Activiti Designer.
Best regards,
Thanks for replying, I think I misunderstood the question and you are absolutely right about that.
I'll fix this now and add the default property to a form field in the Activiti Designer.
Best regards,

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2012 06:14 AM
thanks, fixing this would be great.
I have another question that I think is related to this, form property has a property called value, I can't completely get its purpose, the documentation is not so complete yet. what't the difference between value and default?
Also I was skimming through activiti engine java code, and I think value property never used in the code. Am I right?
I have another question that I think is related to this, form property has a property called value, I can't completely get its purpose, the documentation is not so complete yet. what't the difference between value and default?
Also I was skimming through activiti engine java code, and I think value property never used in the code. Am I right?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2012 11:05 AM
I have the same question about value. In DefaultFormHandler, it looks like it is not parsed. Is this field designed for some other form handler to use?
