cancel
Showing results for 
Search instead for 
Did you mean: 

Populating a start-form with values

mikeblum
Champ in-the-making
Champ in-the-making
I'm looking to do the following scenario:

1. An application creates a map of keys and values that match the field-ids in an Activiti start-form.
2. We bring the user to Activiti and show them the start-form populated with the passed in values.

Looking at the documentation I can programatically fetch and complete a start-form with:

GET api/enterprise/process-definitions/{process-definition-id}/start-form

followed by POST api/enterprise/process-instances

But I don't want to start the process instance until the user has seen this view (mocked up):

[img]http://i.imgur.com/j4CFGYI.png[/img]

I think this will involve this url that I see when manually starting a process with a start-form:

http://localhost:8080/activiti-app/workflow/#/processes?mode=start

1. Is there a way to route to a particular process instance start form like the is with task-ids and process-instance-ids in the Enterprise app?

2. How would we pass things like strings, dates, file ids from the Activiti file upload endpoints?

It looks like the Share Connector can do this.

Thanks!
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
1. No, only tasks/process instances currently. I've added that to our 1.4 backlog

2. That is done by some custom code in the share connector. For files,  you need to upload the file, and you can use the id you get back to populate the variable on the form. You can also pre populate the other values, but you'll have to resort to some custom coding (one way would be to use the javascript extension mechanism, see the docs section on it).