cancel
Showing results for 
Search instead for 
Did you mean: 

Populating activiti workflow fields

mdj
Champ in-the-making
Champ in-the-making
Hi,

How can one populate the activiti workflow fields before workflow is started (when start workflow form is displayed)?

The scenario I'm trying to accomplish is as follows: user starts a workflow on a document, which causes document properties to be reflected in workflow fields.
There's an option for setting the default value, but value should be dynamically set (instead of having one fixed pre-set value).

Thank you!
3 REPLIES 3

abarisone
Star Contributor
Star Contributor
Hi,
here you can find a lot of info about Activiti workflow http://ecmarchitect.com/images/articles/alfresco-workflow/

Regards,
Andrea

mdj
Champ in-the-making
Champ in-the-making
Hi Andrea,

Thank you for your response! This is a great material for understanding alfresco activiti workflows.

Once when in workflow, it is not a problem to populate all of the document' properties. This works great. But the problem is how to deal with field values before workflow is started. I'm referring to fields on initial workflow start form (this form is defined as activiti$myNiceLittleWorkflow in custom config file).

Best regards!

mstein
Champ in-the-making
Champ in-the-making
Since the work flow hasn't started yet, workflow customization will not help. I think the only means for this would be customizing the form itself. You can run queries using freemarker, so creating custom controls that perform lookups for you based on the document is my suggestion.

Good luck,
Max