02-22-2019 02:41 AM
Hi,
This is my first time to customize an Activiti workflow. I built the workflow by reusing the tasks defined in workflowModel.xml, but want to change the task name displayed in share task page. How can I define them?
Thanks.
02-25-2019 02:20 PM
Hi Charles,
In Share you can control the name with a property named title of the content type that define your task in the workflow content model. This is a problem for you since you're are reusing the out-of-the-box tasks which have its properties predefined.
When is nevesary to do any customization , even a litle one, i think the best way to do it is to extend alfresco with a custom workflow model in which you would have full control.
You could define the correspondent localization files and set the custom labels. This labels can be defined with this format:
<model_prefix>_<model_name>.type.<model_prefix>_<type_name>.title=
Regards
02-22-2019 04:35 AM
The name displayed in Activiti Explorer comes from the 'name' attribute in the task definition.
e.g <userTask id="shipOrder" name="Ship Order">
You can also use the <documentation> element to add more detail.
02-24-2019 08:39 PM
I am using the Activiti embedded in Alfresco Community. The name defined in BPMN does not displayed in the task page. I did some study and found the message properties file in the SDK platform module controls the display. But I did find the documentation describes the format and usage.
02-22-2019 10:24 AM
Hello Charles,
Are you talking about APS or the Activiti engine embedded in ACS?
Regadrs
02-24-2019 08:34 PM
Hi Roberto,
I am using Alfresco Community, I think the Activiti engine is embedded in it.
Charles
02-25-2019 02:20 PM
Hi Charles,
In Share you can control the name with a property named title of the content type that define your task in the workflow content model. This is a problem for you since you're are reusing the out-of-the-box tasks which have its properties predefined.
When is nevesary to do any customization , even a litle one, i think the best way to do it is to extend alfresco with a custom workflow model in which you would have full control.
You could define the correspondent localization files and set the custom labels. This labels can be defined with this format:
<model_prefix>_<model_name>.type.<model_prefix>_<type_name>.title=
Regards
02-25-2019 08:13 PM
Thank you, it works.
Explore our Alfresco products with the links below. Use labels to filter content by product module.