cancel
Showing results for 
Search instead for 
Did you mean: 

Default value in StartEvent/TaskUser Form properties

sandroredi
Champ in-the-making
Champ in-the-making
Hi,
I'm using Activiti 5.19 and I'm trying to set default value on a StartEvent/TaskUser form.

Using Eclipse Designer Plugin I could do it and the code is this the following:


<startEvent id="avvio_nuova_richiesta" name="Richiesta" activiti:initiator="initiator" activiti:formKey="Form avvio nuova richiesta">
      <extensionElements>
        <activiti:formProperty id="titolo_richiesta" name="Titolo" type="string" variable="titolo_richiesta" [b]default="titolo"[/b] required="true"></activiti:formProperty>
      </extensionElements>
    </startEvent>

But, when I tryed to do it using activiti Web Modeler, I couldn't find any field to set default properties.

Have you in mind to improve this feature in the next release of Activiti?
If not, could you explain to me the right way to add the the default value on angularjs interfaces and on Java classes to perform the correct transformation in the XML BMPN?

Thank you.
Regards

Sandro
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
I'm not 100% sure, but I believe this has been fixed in the v6 UI (but dont think it's backported).

sandroredi
Champ in-the-making
Champ in-the-making
Hi Joram,
thank you for your reply.
I've just installed Activiti 6 to check it. But I haven't identified the default field.

I send you two attachment.

This is the "Visual Editor" form compiler…
https://drive.google.com/open?id=0Byh9fYG1HbAUVEZlUzV5b3lUblk

and this is the textfield editor popup in the new "Form Editor" page.
https://drive.google.com/file/d/0Byh9fYG1HbAUaE91cFlDdTJocHM/view?usp=sharing

Am I searching it in a wrong form edit popup?

Thank you for your help.
Regards.

Sandro

jbarrez
Star Contributor
Star Contributor
Hmm no indeed, thanks for validating that.
I think we still need to port that fix to the UI (cause I've seen it in the past)