Running WFSTAT and WFRETRY For Oracle Purchasing Workflows (文档 ID 134960.1) 转到底部转到底部 In this Docum


转到底部转到底部

In this Document

Purpose
 Troubleshooting Steps
 Running WFSTAT and WFRETRY
 Instructions to run wfstat
 Requisition:
 Purchase Order:
 Purchase Order Release:
 Instructions to run wfretry
 Requisition:
 Purchase Order:
 Purchase Order Release:
 Alternate retry method
 Instructions to run wfstat for Createpo workflow
 Instructions to run wfstat for Account Generator Workflow
 Still Have Questions?
 References

APPLIES TO:

Oracle Purchasing - Version 11.5.10 to 12.2 [Release 11.5 to 12.2]
IBM AIX on POWER Systems (32-bit)
Oracle Solaris on SPARC (32-bit)
HP Tru64 UNIX
Linux x86
z*OBSOLETE: Microsoft Windows 2000
HP-UX PA-RISC (64-bit)
IBM AIX on POWER Systems (64-bit)
z*OBSOLETE: IBM AIX 4.3 Based Systems (64-bit)
HP-UX PA-RISC (32-bit)
Obsolete Linux Intel (64-bit)
Oracle Solaris on SPARC (64-bit)

PURPOSE

 

 

The purpose of this article is to explain the use of the script wfstat and wfretry in order to monitor and retry workflow processes.

File wfstat.sql is a script that can be run to determine why a document is stuck. It usually provides the user with information that can be used to resolve the stuck document. Once the problem has been resolved, wfretry can be executed on the stuck document to get it moving through the system again. 

In addition to instructions on running wfstat.sql and wfretry.sql, this document provides details about how to get the values necessary to run wfstat.sql for purchase orders, release, requisitions and account generator.

TROUBLESHOOTING STEPS

In order to run wfstat and wfretry, the user must have access to the APPS schema. 

To run wfstat and wfretry, the following system tools and access are required:

  • Login capabilities to the database server and $APPL_TOP
  • Access to sqlplus on the database server - APPS schema
  • Write permissions for a spool file to be created via sqlplus

Running WFSTAT and WFRETRY

Instructions to run wfstat

Run wfstat to determine why a document is stuck in In Process / Pre-Approved or a workflow process has failed. This script comes seeded with the Oracle Applications and can be found in the $FND_TOP/sql directory residing on your database server machine.

1. Login to SQL*Plus in the APPS schema and enter username/password. 

2. Identify the parameter values. The wfstat script requires two values: wf_item_type and wf_item_key. The following scripts will return their values. Run one of the following queries, entering the problematic Purchase Order Number or Requisition Number, (be sure to enclose the number in single quotes):

Requisition:
SQL > select hr.name, prh.segment1, prh.wf_item_type, prh.wf_item_key
from 
po_requisition_headers_all prh,
hr_all_organization_units hr
where 
prh.org_id = hr.organization_id and
prh.segment1 = '&Enter_Req_Number';

 

Purchase Order:
SQL > select hr.name, poh.segment1, poh.wf_item_type, poh.wf_item_key
from 
po_headers_all poh,
hr_all_organization_units hr
where 
poh.org_id = hr.organization_id and
poh.segment1 = '&Enter_PO_Number';

 

Purchase Order Release:
SQL > select hr.name, poh.segment1, por.release_num, por.wf_item_type, por.wf_item_key
from 
po_headers_all poh,
po_releases_all por,
hr_all_organization_units hr
where 
poh.org_id = hr.organization_id and
por.org_id = poh.org_id and
poh.po_header_id = por.po_header_id and
poh.segment1 = '&Enter_PO_Number' and
por.release_num = '&Enter_Release_Num';

 

3. Run the script and create an output file:

3.1 Start spooling an output file: 
SQL> spool wfstat.lst 

3.2 Run wfstat.sql, using the results from the appropriate query above as parameters: SQL> @$FND_TOP/sql/wfstat.sql

For example:
'Enter a value for 1: ' <enter the wf_item_type> 
'Enter a value for 2: ' <enter the wf_item_key>

End the spooled output file: 
SQL> spool off 
SQL> exit 

Review the output and take appropriate corrective action. If you need assistance with file output, upload the file to the service request in My Oracle Support.

Note: The  PO Approval analyzer incorporates the same information as the wfstat.sql script plus other validations to troubleshoot issues with the approval process, including employee authority checks, critical patches, invalid objects, data integrity validations and more. Reference  Note 1525670.1 for instructions to download and run the script.

 


Instructions to run wfretry

When a workflow errors, once the cause of the error is resolved, you MUST always resubmit it, the system will not automatically process it again. If you implement the POERROR workflow, it will automatically retry certain document manager errors. Refer to Note:224028.1 - Oracle Purchasing POERROR Workflow Setup and Usage Guide White Paper for implementation details. This script comes seeded with the Oracle Applications and can be found in the $FND_TOP/sql directory residing on your database server machine.

1. Login to SQL*Plus in the APPS schema and enter username/password. 

2. Identify the parameter values. The wfretry script requires wf_item_type and wf_item_key. The following scripts will return their values. Run one of the following queries, entering the problematic Purchase Order Number or Requisition Number, (be sure to enclose the number in single quotes): 

Requisition:
SQL > select hr.name, prh.segment1, prh.wf_item_type, prh.wf_item_key
from
po_requisition_headers_all prh,
hr_all_organization_units hr
where
prh.org_id = hr.organization_id and
prh.segment1 = '&Enter_Req_Number';

 

Purchase Order:
SQL > select hr.name, poh.segment1, poh.wf_item_type, poh.wf_item_key
from
po_headers_all poh,
hr_all_organization_units hr
where
poh.org_id = hr.organization_id and
poh.segment1 = '&Enter_PO_Number';

 

Purchase Order Release:

 

SQL > select hr.name, poh.segment1, por.release_num, por.wf_item_type, por.wf_item_key
from
po_headers_all poh,
po_releases_all por,
hr_all_organization_units hr
where
poh.org_id = hr.organization_id and
por.org_id = poh.org_id and
poh.po_header_id = por.po_header_id and
poh.segment1 = '&Enter_PO_Number' and
por.release_num = '&Enter_Release_Num';

 

3. Run the script wfretry with the following parameters:

a- wf_item_type (retrieved from above script)

b- wf_item_key (retrieved from above script)

c- Label: The label field is used to call the workflow startup process for the document type in question. This can be located in the Oracle Purchasing application.

Responsibility Purchasing Super User: Navigation: Setup -> Purchasing -> Document Types 
Select the document type for which you are going to run the wfretry script, and take note of the value which resides in the Workflow Startup Process field. Usually, but not always, this value will be 'MAIN_REQAPPRV_PROCESS' for purchase requisitions and 'POAPPRV_TOP' for purchase orders; confirmation of this value should be made by navigating to the Document Types form. 

d- Command: Uses the value of 'RETRY' in this scenario. 
e- Result: Does not require a value in this scenario. Press return

 For example:
'Enter a value for 1: ' <enter the wf_item_type>
'Enter a value for 2: ' <enter the wf_item_key>
accept activity prompt "Label:" POAPPRV_TOP for purchase orders MAIN_REQAPPRV_PROCESS for requisitions 
accept comflag prompt "Command:" (RETRY)
accept result prompt "Result:" (NULL) 

 

Alternate retry method


1. First determine the document's wf_item_type and wf_item_key values for the document type that is affected, using the scripts listed above.

2. Then with the above wf_item_type and wf_item_key values, retry the approval from SQLPLUS as follows, when run it will prompt you for the values obtained above in step 1:

SQL> exec wf_engine.handleError('&WF_ITEM_TYPE','&WF_ITEM_KEY'); 
SQL> commit; 

3. Run the Workflow Background program as now the approval workflow for this document will be run in a background process:

Responsibility System Administrator: Navigation: Sysadmin -> Request -> Run

Set the parameters 
Item Type = PO Approval or Requisition Approval; 
Processed Deferred = Yes; 
Process Time Out = Yes. 
Process Stuck = Yes, if the Process Stuck parameter is available 

4. Check if the document gets approved now.

Instructions to run wfstat for Createpo workflow


1. Substitute the requisition number and the requisition's org_id for when you are prompted in the statement below: 

select requisition_header_id 
from po_requisition_headers_all 
where segment1 = '&Enter_Req_Number'
and org_id = &org_id;



Segment1 will represent the requisition number which was not created into the Standard Purchase Order 


2. Substitute the requisition_header_id from script 1 when prompted in script 2 below: 


select item_type, Item_key 
from wf_items 
where item_key like '&REQ_HDR_ID'||'%' 
and item_type='CREATEPO' 
and root_activity = 'OVERALL_AUTOCREATE_PROCESS';



The results of this script will deliver an item_key and item_type this represents the first values that will be used for wfstat. The output from this wfstat represents a text explanation for the overall Create Documents process. 

3. It is now necessary to get the item_type and item_key for the two sub-processes called during the Overall Create Documents Top Process. We know these processes as 'Verify Req Line Information' and 'Launch Process to Create/Approve PO or Release'. You will substitute the value wf_item_key obtained from the script that was run in step 2. 


select item_type, Item_key 
from wf_items 
where parent_item_type='CREATEPO' 
and parent_item_key = '&WF_ITEM_KEY';



This process will return two or more records (depending on the number of document lines) . These values will be used to obtain the wfstat outputs for the sub-processes 'Verify Req Line Information' as well as 'Create And Approve Purchase Order/Release'.  

After you have retrieved the 2 or 3 sets of item_types and item_keys  (one set from step 2 and two or more possible sets from step 3), run the wfstat.sql file.

SQL> @wfstat <item_type> <item_key>
Replace item_type and item_key using the values retrieved in steps 2 and 3.

 

Note: An alternate method to obtain the workflow data for createpo workflow is through the data collection script from  CREATEPO Workflow - Data Collection Script  Note 1415918.1.

 

 

 

Instructions to run wfstat for Account Generator Workflow


1. Set the following personal profiles:

Account Generator: Purge Runtime Data = NO 
Account Generator: Run in Debug Mode = YES 

2. Create a purchase order, and drill down to the Distributions region. 

3. Click in the Charge Account field and allow the system to attempt to build the charge account. If errors are received during this process, please choose the OK button through all errors. 

4. Do no exit the Distributions form yet. Instead, choose Help/Tools/Examine and enter the following: 
Block: Parameter 
Field: charge_acc_wf_itemkey 
Value: (this value will be returned when moving from 'Field' to 'Value') 

Take note of what is returned for 'Value'. 

5. From the database server, login to SQL*Plus using the APPS username/password. 

6. Create an output file in the home directory using the following command in 
SQL*Plus: 
SQL> spool $HOME/acctgen.txt 

7. Run wfstat.sql as follows: 
SQL> @$FND_TOP/sql/wfstat.sql 

When prompted with 'Enter value for 1', type: POWFPOAG 
When prompted with 'Enter value for 2', type the numeric value that was returned in step 4. 

8. Once the script completes, end the spooled output file: 
SQL> spool off 

9. Reset the profile options changed in step 1 above. 

10. Upload the output to the SR (Upload to Support link on SR update page) .

Still Have Questions?

Join our growing Oracle Procurement Community and learn from your peers and Oracle on how to address your unique issues in Procurement.

You can access the main Oracle Communities page at http://communities.oracle.com (If you are enrolled, the Procurement community will be listed on your left. If you're not already enrolled in the Procurement community, you can do so by clicking on the link Edit Subscriptions).

OR

From "My Oracle Support" as follows:

  1. Log into My Oracle Support
  2. Click on the 'Community' link at the top of the page
  3. Click in 'Find a Community' field and enter Procurement
  4. Double click on Procurement in the list
  5. Click on the 'Create a Community Post' button and submit your question.

 



基于深度学习CNN网络+pytorch框架实现遥感图像滑坡识别源码+数据集+训练好的模型,个人经导师指导并认可通过的高分设计项目,评审分99分,代码完整确保可以运行,小白也可以亲自搞定,主要针对计算机相关专业的正在做大作业的学生和需要项目实战练习的学习者,可作为毕业设计、课程设计、期末大作业,代码资料完整,下载可用。 基于深度学习CNN网络+pytorch框架实现遥感图像滑坡识别源码+数据集+训练好的模型基于深度学习CNN网络+pytorch框架实现遥感图像滑坡识别源码+数据集+训练好的模型基于深度学习CNN网络+pytorch框架实现遥感图像滑坡识别源码+数据集+训练好的模型基于深度学习CNN网络+pytorch框架实现遥感图像滑坡识别源码+数据集+训练好的模型基于深度学习CNN网络+pytorch框架实现遥感图像滑坡识别源码+数据集+训练好的模型基于深度学习CNN网络+pytorch框架实现遥感图像滑坡识别源码+数据集+训练好的模型基于深度学习CNN网络+pytorch框架实现遥感图像滑坡识别源码+数据集+训练好的模型基于深度学习CNN网络+pytorch框架实现遥感图像滑坡识别源码+数据集+训练好的模型基于深度学习CNN网络+pytorch框架实现遥感图像滑坡识别源码+数据集+训练好的模型基于深度学习CNN网络+pytorch框架实现遥感图像滑坡识别源码+数据集+训练好的模型基于深度学习CNN网络+pytorch框架实现遥感图像滑坡识别源码+数据集+训练好的模型基于深度学习CNN网络+pytorch框架实现遥感图像滑坡识别源码+数据集+训练好的模型基于深度学习CNN网络+pytorch框架实现遥感图像滑坡识别源码+数据集+训练好的模型基于深度学习CNN网络+pytorch框架实现遥感图像滑坡识别源码+数据集+训练好的模型基于深度学习CNN网络+pytorch框架实现
内容概要:本文深入介绍了HarmonyOS文件系统及其在万物互联时代的重要性。HarmonyOS自2019年发布以来,逐步覆盖多种智能设备,构建了庞大的鸿蒙生态。文件系统作为其中的“数字管家”,不仅管理存储资源,还实现多设备间的数据协同。文章详细介绍了常见的文件系统类型,如FAT、NTFS、UFS、EXT3和ReiserFS,各自特点和适用场景。特别强调了HarmonyOS的分布式文件系统(hmdfs),它通过分布式软总线技术,打破了设备界限,实现了跨设备文件的无缝访问。此外,文章对比了HarmonyOS与Android、iOS文件系统的差异,突出了其在架构、跨设备能力和安全性方面的优势。最后,从开发者视角讲解了开发工具、关键API及注意事项,并展望了未来的技术发展趋势和对鸿蒙生态的影响。 适合人群:对操作系统底层技术感兴趣的开发者和技术爱好者,尤其是关注物联网和多设备协同的用户。 使用场景及目标:①理解HarmonyOS文件系统的工作原理及其在多设备协同中的作用;②掌握不同文件系统的特性和应用场景;③学习如何利用HarmonyOS文件系统进行应用开发,提升跨设备协同和数据安全。 阅读建议:本文内容详实,涵盖了从基础概念到高级开发技巧的多个层次,建议读者结合自身需求,重点关注感兴趣的部分,并通过实践加深理解。特别是开发者可参考提供的API示例和开发技巧,尝试构建基于HarmonyOS的应用。
<think>嗯,用户之前已经问过如何使用VSCode的Markdown PDF插件转换MD到PDF,现在他们想了解其他能转换MD到PDF的工具。我需要先理清楚用户的需求。他们可能对现有的插件遇到了一些问题,或者想寻找更多替代方案来比较功能。 首先,我应该考虑不同的平台和方式,比如在线工具、桌面软件、命令行工具等,这样用户可以根据自己的使用场景选择。比如,有些用户可能更喜欢在线转换,不需要安装任何软件;而开发者可能更倾向于命令行工具,便于自动化。 接下来,我需要列举每个工具的优缺点,帮助用户做出决策。例如,Pandoc功能强大但需要学习命令行,而Typora则更用户友好但部分功能需要付费。还要注意提到数学公式的支持,因为用户之前的提问中涉及LaTeX,所以这个点很重要。 另外,用户可能关心是否免费、是否需要注册、是否支持中文排版等。比如,Markdown Preview Enhanced在VSCode中可能更适合开发者,而Obsidian适合笔记较多的用户。同时,需要提到一些工具的高级功能,比如自定义CSS,这对需要特定格式的用户很有帮助。 还要注意检查是否有遗漏的常见工具,比如GitBook、Docsify,但可能它们更偏向于文档发布而非直接转PDF。而Visual Studio Code的其他插件可能也有类似功能,但用户已经知道一个,可能需要更多不同的选项。 最后,总结部分需要强调根据需求选择,比如重视格式控制选Pandoc,追求便捷用在线工具等。同时提醒数学公式需要工具支持LaTeX渲染,这点用户之前遇到过问题,所以特别重要。</think>以下是其他可将 Markdown 转换为 PDF 的常用工具及分步说明,涵盖在线、本地、命令行等多种场景: --- ### 一、**在线工具(无需安装)** #### 1. **Markdown to PDF (https://markdowntopdf.com)** **步骤**: 1. 访问网站 → 粘贴 Markdown 代码或上传 `.md` 文件 2. 点击 `Convert to PDF` → 直接下载 **优点**: - 支持基础 LaTeX 公式(需用 `$$...$$` 包裹) - 完全免费,无需注册 #### 2. **Pandoc + Browser (组合方案)** **步骤**: 1. 用 Pandoc 将 `.md` 转为 `.html`: ```bash pandoc input.md -o output.html --mathjax ``` 2. 浏览器打开 `.html` → 按 `Ctrl+P` 打印 → 选择「另存为 PDF」 **优点**: - 完美支持复杂数学公式(通过 MathJax) --- ### 二、**桌面软件** #### 1. **Typora (https://typora.io)** **步骤**: 1. 安装 Typora → 打开 `.md` 文件 2. 点击菜单栏 `File → Export → PDF` **优点**: - 实时预览 + 原生 LaTeX 公式支持 - 可自定义主题与 CSS **注意**: - 导出 PDF 需付费($15,买断制) #### 2. **Obsidian (https://obsidian.md)** **步骤**: 1. 安装 Obsidian → 打开或新建 Markdown 文档 2. 安装插件 **Enhanced Export** → 一键导出 PDF **优点**: - 免费 + 支持双向链接、数学公式 - 适合笔记管理场景 --- ### 三、**命令行工具** #### 1. **Pandoc (https://pandoc.org)** **步骤**: 1. 安装 Pandoc 和 LaTeX 引擎(如 MiKTeX/MacTeX) 2. 运行命令: ```bash pandoc input.md -o output.pdf --pdf-engine=xelatex -V CJKmainfont="Noto Sans CJK SC" ``` **优点**: - 极致自定义(通过 YAML 元数据、LaTeX 模板) - 支持多语言(中文需指定字体) #### 2. **md-to-pdf (Node.js 库)** **步骤**: 1. 安装 Node.js → 运行: ```bash npm install -g md-to-pdf ``` 2. 转换文件: ```bash md-to-pdf input.md --highlight-style atom-one-light ``` **优点**: - 可编程控制(支持 CSS 注入、代码高亮) --- ### 四、**VS Code 其他插件** #### 1. **Markdown Preview Enhanced** **步骤**: 1. 安装插件 → 右键 Markdown 文件选择 `Markdown Preview Enhanced: Open Preview` 2. 预览界面右键 → `Chrome (Puppeteer) → Export to PDF` **优点**: - 支持 Mermaid 流程图、LaTeX 公式 #### 2. **PDFCrowd** **步骤**: 1. 安装 PDFCrowd 插件 → 注册获取 API Key 2. 按 `F1` → 输入 `PDFCrowd: Convert to PDF` **优点**: - 云端渲染,避免本地环境问题 --- ### 五、**GitHub 集成方案** #### 1. **GitHub Actions 自动生成** **步骤**: 1. 在仓库中添加 `.github/workflows/pdf.yml`: ```yaml - name: Generate PDF uses: docker://pandoc/latex:latest run: | pandoc README.md -o README.pdf --pdf-engine=xelatex ``` 2. 推送代码 → 自动生成 PDF **优点**: - 适合持续集成(CI/CD)场景 --- ### 工具对比总结 | 工具类型 | 典型工具 | 数学公式支持 | 中文兼容性 | 学习成本 | |----------------|----------------|--------------|------------|----------| | **在线工具** | MarkdowntoPDF | 基础 | 一般 | 低 | | **桌面软件** | Typora | 优秀 | 优秀 | 中 | | **命令行** | Pandoc | 完美 | 需配置字体 | 高 | | **VS Code插件**| Markdown PDF | 需启用 LaTeX | 优秀 | 低 | --- ### 选择建议: - **追求便捷**:在线工具或 Typora - **需要精准控制格式**:Pandoc + LaTeX - **开发者自动化**:md-to-pdf 或 GitHub Actions - **数学公式必选**:确保工具支持 MathJax 或原生 LaTeX 渲染
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值