I need to produce a different task details form in Alfresco Share for each user task in my process. How do you achieve this in Alfresco Share? I have been trying to use the activiti:formKey attribute and linking that to the form id in Share, but that does not seem to work. Do I have to develop a task model and tie it to the user task that way? If so, How do I make my user tasks of that task type?
You should create a task-model (content-model XML) for your process. The names of the types should be the form-keys of the userTasks in your bpmn20.xml file. on top of that, you need a form-config in share (config-evaluator) for the task-form rendering.
Thanks for the reply … That's the connection I was missing. I have another follow up question regarding the wf:reviewOutcome field that uses the activiti-transitions.ftl. Do the buttons that it generates set a process variable that the process instance can access or does it store the value on the Alfresco object model? If its on the Alfresco object model, how does the workflow get access to this value?
All properties related to tasks and processes are stored as process-variables. The content-model is only used for generating form-model, but you can have other properties (not defined on model) in your process as well, for usage in your code or scripts.