Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add comprehensive documentation for existing WeChat Enterprise workflow approval support #3687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
Copilot wants to merge 2 commits into develop
base: develop
Choose a base branch
Loading
from copilot/fix-3434

Conversation

Copy link
Contributor

@Copilot Copilot AI commented Aug 31, 2025
edited
Loading

This PR addresses the user inquiry about "新版的企业微信流程审批" (new version WeChat Enterprise workflow approval) by providing comprehensive documentation that clarifies WxJava already has full support for this functionality.

Issue Analysis

The user asked about support for the new version of WeChat Enterprise workflow approval referencing document 91853. After thorough investigation, it was discovered that:

  1. The main API endpoint /cgi-bin/oa/applyevent is already implemented in WxCpOaService.apply()
  2. The implementation already references the exact documentation URL (91853) provided in the issue
  3. Comprehensive approval workflow support exists across multiple service classes

What's Added

📖 Comprehensive Usage Guide (weixin-java-cp/APPROVAL_WORKFLOW_GUIDE.md)

A bilingual (Chinese/English) documentation covering:

  • Complete overview of existing approval workflow features
  • API endpoint mappings to implementation methods
  • Detailed usage examples with code snippets
  • Multi-account configuration guidance
  • References to official WeChat documentation

🎯 Complete Demo Implementation (WxCpApprovalWorkflowDemo.java)

A comprehensive demonstration class showing:

// Submit approval application
WxCpOaApplyEventRequest request = new WxCpOaApplyEventRequest()
 .setCreatorUserId("userId")
 .setTemplateId("templateId")
 .setApplyData(/* approval content */);
String spNo = wxCpService.getOaService().apply(request);
// Get approval details
WxCpApprovalDetailResult result = wxCpService.getOaService().getApprovalDetail(spNo);
// Batch operations and template management

Existing Implementation Coverage

The following APIs are already fully implemented:

  • ✅ Submit Approval Application (/cgi-bin/oa/applyevent) - Document 91853
  • ✅ Get Approval Details (/cgi-bin/oa/getapprovaldetail)
  • ✅ Batch Get Approval Numbers (/cgi-bin/oa/getapprovalinfo)
  • ✅ Approval Process Engine (/cgi-bin/corp/getopenapprovaldata)
  • ✅ Template Management (create, update, get details)
  • ✅ Third-party application support via WxCpTpOAService
  • ✅ Multi-account configuration support

Key Finding

No new implementation was required. The "new version" workflow approval functionality referenced in the issue is already comprehensively supported in WxJava. This documentation helps users discover and utilize the existing robust approval workflow capabilities.

Fixes #3434.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
@Copilot Copilot AI changed the title (削除) [WIP] 有对接新版的企业微信流程审批吗? (削除ここまで) (追記) Add comprehensive documentation for existing WeChat Enterprise workflow approval support (追記ここまで) Aug 31, 2025
@Copilot Copilot AI requested a review from binarywang August 31, 2025 15:01
Copilot finished work on behalf of binarywang August 31, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@binarywang binarywang Awaiting requested review from binarywang

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

有对接新版的企业微信流程审批吗?

AltStyle によって変換されたページ (->オリジナル) /