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 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).
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.