PDFtoServiceCatalog: Difference between revisions

From SMTX Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 11: Line 11:
<br>
<br>
- value: D:\Temp\Maturity Review-#REPLACE-STEP-PROCESS-DateStarted-yyyyMMdd#-#REPLACE-FORMFIELD-serviceguid#.pdf
- value: D:\Temp\Maturity Review-#REPLACE-STEP-PROCESS-DateStarted-yyyyMMdd#-#REPLACE-FORMFIELD-serviceguid#.pdf
<br>
<br>
3. added a step of the type 'save file', before the step where you add the document to the SC
3. added a step of the type 'save file', before the step where you add the document to the SC
<br>
- content: #REPLACE-PDFREPORTCONTENT-61# <br>
- Location : use the variable from step 2
<br>
<br>
4. in the step 'add report to SC', use the variable from step 2 as documentpath
4. in the step 'add report to SC', use the variable from step 2 as documentpath
<br>
<br>
5. Finally, a step to remove the local file form the server
- WS: Services: add document <br>
- DocumentPath: use variable from step 2
<br>
 
5. Finally, a step to remove the local file form the server<br>
- Step name: Sample proces:Remove report from filesystem <br>
- Step type: Execure application <br>
- Location: cmd.exe<br>
- Parameters: /c del "#REPLACE-VARIABLE-2741-Report local filename#"
 


Sample proces:
Sample process: https://ssp-test.auto.contiwan.com/Workflow/Admin/ProcessAddEdit.aspx?genericid=4624

Latest revision as of 07:34, 8 June 2022

So, you made a PDF in the process, but now it needs to go to the ServiceCatalog. Just using the created link will not get it over there :(

what you need to do :

1. Create folder on the server : “D:\Temp”
2. Added variable that stores the location of the file
- name: Report local filename
- value: D:\Temp\Maturity Review-#REPLACE-STEP-PROCESS-DateStarted-yyyyMMdd#-#REPLACE-FORMFIELD-serviceguid#.pdf

3. added a step of the type 'save file', before the step where you add the document to the SC

- content: #REPLACE-PDFREPORTCONTENT-61# 
- Location : use the variable from step 2


4. in the step 'add report to SC', use the variable from step 2 as documentpath
- WS: Services: add document
- DocumentPath: use variable from step 2

5. Finally, a step to remove the local file form the server
- Step name: Sample proces:Remove report from filesystem
- Step type: Execure application
- Location: cmd.exe
- Parameters: /c del "#REPLACE-VARIABLE-2741-Report local filename#"


Sample process: https://ssp-test.auto.contiwan.com/Workflow/Admin/ProcessAddEdit.aspx?genericid=4624