Workflow and Associated Task Form Names
-
07-12-2019 - |
문제
I have question regarding the InfoPath Forms that autogenerated by the Workflow Tasks. I was wondering if it is possible to give these forms more meaingful names.
The current problem example: If I create a custom task process called "BTP Review", the InfoPath form that will generate for it will be name "Task_x0028_6_x0029.xsn", instead of a descriptive name like the iniation form is.
Have others had this problem?
해결책
Though I did not get a chance to to it, you can try following:
- Open site in SPD. Close the workflow designer (if it is open)
- Go to All Files - Workflows - Click on Name of your workflow (if you don't see all files, it might be SPD permission and configuration issue)
- SPD will show all the files that the workflow consists of including rules and infopath forms
- Rename the XSN files
- Those XSN files would have been referred in at least *.wfconfig.xml file. Open the XML file(s) which refer them and rename them
Save everything and try opening the workflow again.
다른 팁
Building on Ashish Patel's answer, if you were to just do those changes alone, then exported the workflow, it would not work. To get this to work
- Save workflow as template then download file from site assets
- Change file extension *.wsp -> *.cab. Extract using iZarc
- inside the Instances folder, change any reference to the old file name in Elements.xml and Feature.xml
- Inside Files/workflows/%WORKFLOW_NAME% change file extension *.xsn -> *.cab. Extract using iZarc
- Change any reference to the old name in manifest file
- Using iZarc, recreate the cab files with the new file names. (*Note: Don't highlight the files you want and then archive it, start with iZarc, create a new file, then select the files. Doing it the other way will add a folder to the structure)
Good luck, took me a freaking long time to figure this out...