Flooux - Monday, June 11, 2012 9:58 AM:
Hi,
I'm sure it's a stupid thing but I don't find how to do it.
I have created an item type, linked a workflow to it. So when I created an item, the linked workflow is launched. This workflow process as a name automatically generated and I want to change it in order that this workflow process has the same name as the item.
How I can do that?
I hope i'm clear enough.
Thanks
Brian - Tuesday, June 12, 2012 8:35 AM:
Hi Duranton,
1) Do you mean you want each workflow instance to have the same name as the newly created Item?
2) Or do you mean you can't find where to change the name of the Workflow Map?
If 1) you will need to write some code to find the workflow process based on the controlled item being 'carried' by the workflow. There is a piece of code in the community projects for "workflow automation" that has a method called "get controlled item" or similar. This will show you the relationship between the workflow process and the controlled item. Once you have found the workflow process you can give it a new name.
If 2) this is on the main screen of the workflow map. Click on the canvas area but not on one of the Activities or Paths. The name attribute is in the middle of the screen.
Hope this helps.
Brian.
Flooux - Tuesday, June 12, 2012 8:45 AM:
Hi,
Thanks for your reply, I will detail my issue.
On the following screenshot (it's under _Administration/Workflow Processes)you can see that the name of the process in the first line is autogenerate and have no added value, but the 6th line have a readable name.
The first line is related to a item type that I have created, the 6th line is related to an OOTB item type.
I want to know how to do it.
thanks
Brian - Tuesday, June 12, 2012 8:41 PM:
Hi Duranton,
YOu need to set the "Keyed Name Order" for the Item type that the workflow is processing.
Edit the Item type and look for the "Keyed Name Order" column in the Properties tab.
Type "1" in the field that you want to be the "Keyed Name" for this Item type.
YOu can have up to 10 fields in the Keyed name. Put "1" in the First, 2 in the Second etc.
Hope this helps,
Brian.
Flooux - Wednesday, June 13, 2012 4:23 AM:
Hi Brian,
It works fine, thanks a lot
