cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti Form

nishant23
Champ in-the-making
Champ in-the-making
Hi,

I am new to Activiti and facing some problems in it.
I want to add a file to the form key of a user task. I added the file to the form key but when I deploy my bpmn to activiti-explorer I don't see any form there. I had attached the forms to my zip file along with my bpmn file which I deployed to activiti-explorer.
My query regarding this are:
- Do I need to manually create fields of name/amount etc.
-If not then the form which I have written which has Name and amount as input type, why aren't they coming on the deployed screen.

Can you help me with it?
15 REPLIES 15

frederikherema1
Star Contributor
Star Contributor
Activiti-explorer doesn't use the "old" way of form-rendering since 5.6 or 5.7 (using a form-key and a resource in the XML). It now uses form-properties instead (see user guide). However, you can still write your own UI that uses the forms in the deployment with the "form-key".

nishant23
Champ in-the-making
Champ in-the-making
Hi,

Thanks for your response.

You said :-
"However, you can still write your own UI that uses the forms in the deployment with the "form-key"."

Can you elaborate on this or provide me with a sample tutorial or guide ?

jbarrez
Star Contributor
Star Contributor
There is not much 'tutorial' about this. You set the form key in the process definition. You fetch the form key programmatically trough the Activiti API. You use that form key somehow in your custom ui …. and that's it.

simple
Champ in-the-making
Champ in-the-making
Can you please elaborate and provide a snippet on this since we are using activiti 5.13 and have to create form like "Hello.form" and associate it with the form property so that form can be visible on activiti-explorer on a user task.

frederikherema1
Star Contributor
Star Contributor
Activiti-explorer doesn't support using the "form key" approach. rather, it uses form-proeprties. Read the user guide, there is a section on how to use form-properties with snippets of XML… Please consult the user guide prior to asking a question on the forum, as it can save the people who answer these questions time.

rockstrom
Champ in-the-making
Champ in-the-making
Hello,
I use the version no. 5.12 of Activiti Explorer and still cannot fix this problem.

Please could you tell me how to link any user task with any form I created by myself.

I tried to zip the bpmn file with the form I created and got no result. I also put the key form in the start event:

          startEvent id="startEvent" name="Start" activiti:formKey="forms/myform.form"

And also got no result.

Any help will be appreciated.

Thanks.

trademak
Star Contributor
Star Contributor
What are you trying to do exactly? What behavior do you expect?
When you include a form key in a start event nothing will happen in the Activiti Explorer.

Best regards,

rockstrom
Champ in-the-making
Champ in-the-making
Thanks for your reply trademak,

I'm trying to assign a user task to [kermit] user and linking this user task with HTML form, by using [Form key] in the [Main config] tab. After uploading the process, nothing appears to kermit!

I just want you to help me linking a user task with HTML form in the version No. 5.12 of Activiti Explorer.

Thanks.

rockstrom
Champ in-the-making
Champ in-the-making
Actually, I read the activiti in action book and set the form key in start event based on a section in the following:
activiti_in_action.pdf -> appendix B "BPMN 2.0 supported elements in activiti" -> None start event page 39

It says that "The none start event is the simplest start event element that can be started using the Activiti API" …
…..
and its properties are activiti:formKey and activiti:initiator

Please take a look:
http://imageshack.us/scaled/landing/534/cnu6.png

For this reason I used the form key in start event.

thanks for your help.