Workflow Management

Level: Intermediate Module: General Foundation 11 min read Lesson 15 of 47

Overview

  • What you’ll learn: How to configure document workflows, build approval processes, understand workflow nodes and transitions, and automate business operations using iDempiere’s workflow engine.
  • Prerequisites: Lessons 1-12 (Beginner level)
  • Estimated reading time: 25 minutes

Introduction

Every time you click “Complete” on a Sales Order, “Prepare” on an Invoice, or “Process” on a Payment, you are triggering a workflow. iDempiere’s workflow engine orchestrates document processing, approval routing, and automated actions across the entire system. Understanding workflows is essential because they govern how documents move through their lifecycle and how business rules are enforced during state transitions.

This lesson covers the workflow engine from the ground up: the data model, workflow types, node configuration, approval chains, and hands-on creation of a custom approval workflow.

Workflow Architecture

The workflow engine is built on four core tables:

  • AD_Workflow — The workflow definition (header). Defines the type, starting node, and overall configuration.
  • AD_WF_Node — Individual steps within a workflow. Each node represents an action, decision, or subprocess.
  • AD_WF_NodeNext — Transitions between nodes. Defines the sequence and conditions for moving from one node to the next.
  • AD_WF_Responsible — Defines who is responsible for approving or acting on workflow nodes.

At runtime, two additional tables track execution:

  • AD_WF_Process — A running instance of a workflow (one per document being processed).
  • AD_WF_Activity — A running instance of a node within a process (the current step).

Workflow Types

iDempiere supports three workflow types, each serving a different purpose:

Document Process Workflow

This is the most common type. It defines the state machine for document processing — the sequence of steps a document goes through when you click Complete, Void, Close, or other DocAction buttons. Every document type (Order, Invoice, Payment, etc.) has a Document Process workflow assigned to its document type (C_DocType.AD_Workflow_ID).

The standard document processing flow looks like this:

Draft (DR) → In Progress (IP) → Completed (CO)
                                      ↓
                                 Closed (CL)

Completed (CO) → Reversed (RE)
Draft (DR) → Voided (VO)

Document Value Workflow

Triggered automatically when a document meets certain conditions, regardless of user action. These workflows fire on specific column value changes and are used for approval routing. For example: “When a Purchase Order total exceeds $10,000, route to the VP of Purchasing for approval.”

Document Value workflows are configured with:

  • Table: Which table triggers the workflow (e.g., C_Order).
  • Column: Which column change triggers it (e.g., DocStatus).
  • Value: The specific value that triggers it (e.g., “CO” for Completed).

General Workflow (Manufacturing)

Used primarily in manufacturing for routing operations — defining the sequence of work center steps needed to produce a product. These workflows are beyond the scope of this general foundation lesson.

The Document Processing Workflow in Detail

Let us examine how a standard document processing workflow is structured. Open Workflow > Workflow and look at the “Process_Order” workflow as an example.

Workflow Header (AD_Workflow)

Name:           Process_Order
Workflow Type:  Document Process
Table:          C_Order
Start Node:     (DocAuto)
Duration:       0
Entity Type:    D (Dictionary - core)
Publish Status: Released

Key fields on the workflow header:

  • Workflow Type: Determines behavior — Document Process, Document Value, or General.
  • Table: The table this workflow operates on.
  • Start Node: The first node executed when the workflow launches.
  • Priority: When multiple workflows could apply, priority determines which runs first.
  • Valid From / Valid To: Date-based activation for seasonal or temporary workflows.
  • Publish Status: Must be “Released” for the workflow to be active.

Workflow Nodes (AD_WF_Node)

Each node represents a step in the workflow. A Document Process workflow typically has nodes for each document action:

Node: (DocPrepare)
  Action: Document Action
  Document Action: Prepare

Node: (DocComplete)
  Action: Document Action
  Document Action: Complete

Node: (DocVoid)
  Action: Document Action
  Document Action: Void

Node: (DocClose)
  Action: Document Action
  Document Action: Close

Node: (DocReverse)
  Action: Document Action
  Document Action: Reverse - Correct

Node action types include:

  • Document Action: Executes a document action (Prepare, Complete, Void, etc.).
  • User Choice: Presents the user with approval options (Approve/Reject).
  • Set Variable: Sets a column value on the document.
  • User Window: Opens a window for user interaction.
  • Process: Runs an AD_Process.
  • Sub Workflow: Launches another workflow.
  • Wait (Sleep): Pauses execution for a specified duration.
  • EMail: Sends an email notification.

Node Transitions (AD_WF_NodeNext)

Transitions define how execution flows from one node to the next:

From: (DocPrepare) → To: (DocComplete)
  Sequence: 10
  Is Standard Transition: Yes

From: (DocComplete) → To: (DocClose)
  Sequence: 100

From: (DocComplete) → To: (DocReverse)
  Sequence: 110

Transition configuration:

  • Sequence: When multiple transitions exist from the same node, sequence determines evaluation order.
  • Transition Code: An optional SQL condition. If the condition evaluates to true, this transition is taken. If blank, the transition is unconditional.
  • Is Standard Transition: Marks the “normal” path. Non-standard transitions represent exception paths (like approval rejection routing).

Approval Workflows

Approval workflows are one of the most practically useful features in iDempiere. They route documents to designated approvers based on rules you define.

AD_WF_Responsible (Workflow Responsible)

Defines who handles workflow activities:

  • Human: A specific user must act.
  • Organization: Any user in the specified organization can act.
  • Role: Any user with the specified role can act.
  • Invoker: The person who triggered the workflow is responsible (common for document processing).

Approval Hierarchy

iDempiere supports approval routing based on the organizational hierarchy. Each user can have a Supervisor defined (AD_User.Supervisor_ID). When a document requires approval:

  1. The system checks the document amount against the user’s approval threshold.
  2. If the amount exceeds the threshold, the document is routed to the user’s supervisor.
  3. The supervisor’s threshold is checked. If still exceeded, it escalates further up the chain.
  4. This continues until a user with sufficient authority approves or the top of the chain is reached.

Creating a Custom Approval Workflow: Step by Step

Let us build a Purchase Order approval workflow that requires manager approval for orders over $5,000.

Step 1: Create the Workflow Header

Navigate to Workflow > Workflow and create a new record:

Name:            PO Approval Over 5000
Workflow Type:   Document Value
Table:           C_Order
Document Value:  DocStatus = CO
Priority:        5
Publish Status:  Released
Duration:        1 (days)
Entity Type:     User Maintained

Step 2: Define the Workflow Responsible

Navigate to Workflow > Workflow Responsible and create:

Name:              PO Approval Manager
Responsible Type:  Human
User:              (Select the approving manager)

Step 3: Create Workflow Nodes

Switch to the Node tab and create three nodes:

Node 1: Check Amount
  Action:     User Choice
  Column:     GrandTotal
  Workflow Responsible: PO Approval Manager
  Duration:   1

Node 2: Approved
  Action:     Set Variable
  Column:     IsApproved
  Value:      Y

Node 3: Rejected
  Action:     Set Variable
  Column:     DocStatus
  Value:      DR

Step 4: Create Transitions

Switch to the Node Next (Transition) tab:

Transition 1:
  From: Check Amount → To: Approved
  Sequence: 10
  Description: Approved path

Transition 2:
  From: Check Amount → To: Rejected
  Sequence: 20
  Description: Rejected path

Step 5: Set the Start Node

Back on the workflow header, set Start Node to “Check Amount”.

Step 6: Configure the Trigger

On the workflow header, configure the Document Value trigger:

Column:  DocStatus
Value:   CO

This means the workflow fires when a Purchase Order’s DocStatus changes to “CO” (Completed) and the GrandTotal exceeds the user’s approval limit.

Priority and Escalation

Each workflow and each node can have a priority setting (0-9, where 0 is highest). Priority affects:

  • Processing order: Higher-priority workflows are processed first by the workflow processor.
  • User notification: High-priority activities appear prominently in the user’s workflow inbox.
  • Escalation: You can configure a Duration and Duration Unit on each node. If the activity is not completed within the specified time, it escalates — either to the next user in the hierarchy or to a designated escalation user.
-- Node escalation configuration
Duration:       2
Duration Unit:  Day
-- If not acted upon in 2 days, escalate to supervisor

Email Notifications

iDempiere can send email notifications at various workflow stages:

  • When an activity is assigned: The responsible user receives an email that a document needs their attention.
  • When an activity is escalated: The escalation target is notified.
  • When a workflow completes: The originator can be notified of the outcome.

Email templates are configured on the workflow node. The system uses the Mail Template (R_MailText) associated with the node. Template variables give you access to document fields:

Subject: Purchase Order @DocumentNo@ requires your approval
Body: A purchase order for @GrandTotal@ from @C_BPartner_ID@
      requires your approval. Please review in your workflow inbox.

Workflow History and Logs

Every workflow execution is fully auditable:

  • AD_WF_Process: Records the overall workflow execution — when it started, current state, which document.
  • AD_WF_Activity: Records each step — which node was executed, who acted, when, and the result (Approved/Rejected/Completed).
  • AD_WF_EventAudit: Detailed event log with timestamps for fine-grained auditing.

To review workflow history, navigate to Workflow > Workflow Activities for pending items, or Workflow > Workflow Process for completed workflows. You can also access workflow history directly from a document using the toolbar’s workflow status icon.

Testing Workflows

Follow this process to test a new workflow:

  1. Set Publish Status to “Test” initially. This allows you to iterate without affecting production.
  2. Create a test document that meets your trigger conditions.
  3. Process the document and observe whether the workflow fires.
  4. Check Workflow Process to see the execution state, which node is active, and any errors.
  5. Act on pending activities from the Workflow Activities window.
  6. Review logs for any issues. Common problems include:
    • Missing Workflow Responsible assignment.
    • Incorrect transition conditions.
    • Start Node not set.
    • Publish Status not set to “Released” (for production).
  7. Set Publish Status to “Released” when testing is complete.

Common Workflow Patterns

Sequential Approval

Document flows through a chain of approvers in order: Department Manager, then Finance Director, then CFO. Each approver’s node transitions to the next only on approval.

Parallel Approval

Multiple approvers must all approve. Create separate approval nodes that all transition from the same predecessor, then converge on a “join” node that requires all incoming activities to complete.

Conditional Routing

Use transition conditions to route documents differently based on amount, type, or other criteria:

-- Transition condition: orders over 10000 go to VP
GrandTotal > 10000

-- Transition condition: orders under 10000 auto-approve
GrandTotal <= 10000

Auto-Approval with Threshold

Skip the approval step entirely for small amounts. The first node checks the amount and transitions directly to “Approved” if below threshold, or to the approval node if above.

Key Takeaways

  • iDempiere’s workflow engine powers document processing, approval routing, and automated actions.
  • Three workflow types exist: Document Process (state machine), Document Value (triggered by data changes), and General (manufacturing).
  • Workflow Nodes define individual steps; NodeNext transitions define the flow between steps with optional conditions.
  • Approval workflows route documents through a hierarchy based on user authority and document amount.
  • Priority and Duration settings enable escalation when activities are not acted upon promptly.
  • All workflow execution is fully logged and auditable via AD_WF_Process and AD_WF_Activity.
  • Always test workflows with Publish Status “Test” before releasing to production.

What’s Next

In Lesson 16, you will set up your iDempiere development environment using Eclipse IDE. This marks your transition from configuration-based customization to code-based development — opening up the full power of iDempiere’s extensible architecture.

繁體中文

概述

  • 學習內容:如何配置文件工作流程、建立核准流程、了解工作流程節點和轉換,以及使用 iDempiere 的工作流程引擎自動化業務營運。
  • 先修條件:第 1-12 課(初級)
  • 預估閱讀時間:25 分鐘

簡介

每當您在銷售訂單上點擊「完成」、在發票上點擊「準備」或在付款上點擊「處理」時,您都在觸發工作流程。iDempiere 的工作流程引擎在整個系統中協調文件處理、核准路由和自動化動作。了解工作流程非常重要,因為它們控制文件如何在其生命週期中流轉,以及如何在狀態轉換期間強制執行業務規則。

本課從基礎開始涵蓋工作流程引擎:資料模型、工作流程類型、節點配置、核准鏈,以及實際建立自訂核准工作流程。

工作流程架構

工作流程引擎建立在四個核心資料表上:

  • AD_Workflow — 工作流程定義(表頭)。定義類型、起始節點和整體配置。
  • AD_WF_Node — 工作流程中的個別步驟。每個節點代表一個動作、決策或子流程。
  • AD_WF_NodeNext — 節點之間的轉換。定義從一個節點移至下一個節點的順序和條件。
  • AD_WF_Responsible — 定義誰負責核准或執行工作流程節點。

在執行時,另外兩個資料表追蹤執行狀態:

  • AD_WF_Process — 工作流程的執行中實例(每個正在處理的文件一個)。
  • AD_WF_Activity — 流程中節點的執行中實例(當前步驟)。

工作流程類型

iDempiere 支援三種工作流程類型,各有不同用途:

文件處理工作流程

這是最常見的類型。它定義文件處理的狀態機——當您點擊完成、作廢、關閉或其他 DocAction 按鈕時文件經歷的步驟序列。每個文件類型(訂單、發票、付款等)都有一個指定給其文件類型的文件處理工作流程(C_DocType.AD_Workflow_ID)。

標準文件處理流程如下:

草稿 (DR) → 處理中 (IP) → 已完成 (CO)
                                ↓
                           已關閉 (CL)

已完成 (CO) → 已沖銷 (RE)
草稿 (DR) → 已作廢 (VO)

文件值工作流程

當文件滿足特定條件時自動觸發,無論使用者動作為何。這些工作流程在特定欄位值變更時觸發,用於核准路由。例如:「當採購訂單總額超過 $10,000 時,路由至採購副總裁進行核准。」

文件值工作流程的配置包括:

  • 資料表:觸發工作流程的資料表(例如 C_Order)。
  • 欄位:觸發的欄位變更(例如 DocStatus)。
  • 值:觸發的特定值(例如「CO」表示已完成)。

一般工作流程(製造)

主要用於製造業的工藝路線作業——定義生產產品所需的工作中心步驟序列。這些工作流程超出本基礎課程的範圍。

文件處理工作流程詳解

讓我們檢視標準文件處理工作流程的結構。開啟工作流程 > 工作流程並以「Process_Order」工作流程為範例。

工作流程表頭(AD_Workflow)

名稱:          Process_Order
工作流程類型:  Document Process
資料表:        C_Order
起始節點:      (DocAuto)
持續時間:      0
Entity Type:   D(Dictionary - 核心)
發佈狀態:      Released

工作流程表頭的關鍵欄位:

  • 工作流程類型:決定行為——Document Process、Document Value 或 General。
  • 資料表:此工作流程運作的資料表。
  • 起始節點:工作流程啟動時執行的第一個節點。
  • 優先順序:當多個工作流程可能適用時,優先順序決定哪個先執行。
  • 有效開始 / 有效結束:基於日期的啟用,用於季節性或臨時工作流程。
  • 發佈狀態:必須為「Released」才能使工作流程生效。

工作流程節點(AD_WF_Node)

每個節點代表工作流程中的一個步驟。文件處理工作流程通常為每個文件動作設有節點:

節點:(DocPrepare)  動作:Document Action  文件動作:Prepare
節點:(DocComplete) 動作:Document Action  文件動作:Complete
節點:(DocVoid)     動作:Document Action  文件動作:Void
節點:(DocClose)    動作:Document Action  文件動作:Close
節點:(DocReverse)  動作:Document Action  文件動作:Reverse - Correct

節點動作類型包括:

  • Document Action:執行文件動作(Prepare、Complete、Void 等)。
  • User Choice:向使用者呈現核准選項(核准/拒絕)。
  • Set Variable:設定文件上的欄位值。
  • User Window:開啟視窗供使用者互動。
  • Process:執行 AD_Process。
  • Sub Workflow:啟動另一個工作流程。
  • Wait(Sleep):暫停執行指定的持續時間。
  • EMail:發送電子郵件通知。

節點轉換(AD_WF_NodeNext)

轉換定義執行如何從一個節點流向下一個節點。

轉換配置:

  • 順序:當同一節點存在多個轉換時,順序決定評估順序。
  • 轉換代碼:可選的 SQL 條件。如果條件評估為真,則採用此轉換。如果為空,則轉換為無條件。
  • 是否為標準轉換:標記「正常」路徑。非標準轉換代表例外路徑(如核准拒絕路由)。

核准工作流程

核准工作流程是 iDempiere 中最具實用價值的功能之一。它們根據您定義的規則將文件路由至指定的核准者。

AD_WF_Responsible(工作流程負責人)

定義誰處理工作流程活動:

  • Human:特定使用者必須執行。
  • Organization:指定組織中的任何使用者都可以執行。
  • Role:具有指定角色的任何使用者都可以執行。
  • Invoker:觸發工作流程的人負責(常用於文件處理)。

核准層級

iDempiere 支援基於組織層級的核准路由。每個使用者可以定義一個主管(AD_User.Supervisor_ID)。當文件需要核准時:

  1. 系統根據使用者的核准閾值檢查文件金額。
  2. 如果金額超過閾值,文件將路由至使用者的主管。
  3. 檢查主管的閾值。如果仍然超過,則繼續向上呈報。
  4. 此過程持續進行,直到具有足夠權限的使用者核准或到達鏈的頂端。

建立自訂核准工作流程:逐步指南

讓我們建立一個採購訂單核准工作流程,要求超過 $5,000 的訂單需要經理核准。

步驟一:建立工作流程表頭

導覽至工作流程 > 工作流程並建立新記錄。

步驟二:定義工作流程負責人

導覽至工作流程 > 工作流程負責人並建立記錄,設定負責人類型為 Human 並選擇核准經理。

步驟三:建立工作流程節點

切換至節點頁籤並建立三個節點:Check Amount(User Choice)、Approved(Set Variable,IsApproved=Y)和 Rejected(Set Variable,DocStatus=DR)。

步驟四:建立轉換

切換至節點轉換頁籤,建立從 Check Amount 至 Approved(順序 10)和從 Check Amount 至 Rejected(順序 20)的轉換。

步驟五:設定起始節點

回到工作流程表頭,將起始節點設為「Check Amount」。

步驟六:配置觸發條件

在工作流程表頭上配置文件值觸發條件:欄位 DocStatus,值 CO。

優先順序與呈報

每個工作流程和每個節點都可以設定優先順序(0-9,其中 0 最高)。優先順序影響處理順序、使用者通知和呈報。您可以在每個節點上配置持續時間持續時間單位。如果活動在指定時間內未完成,它將呈報至層級中的下一個使用者。

電子郵件通知

iDempiere 可以在工作流程的各個階段發送電子郵件通知:當活動被指派時、當活動被呈報時、以及當工作流程完成時。電子郵件範本在工作流程節點上配置,系統使用與節點關聯的郵件範本(R_MailText)。

工作流程歷史和日誌

每個工作流程執行都可以完全稽核。AD_WF_Process 記錄整體工作流程執行,AD_WF_Activity 記錄每個步驟,AD_WF_EventAudit 提供帶有時間戳記的詳細事件日誌。

測試工作流程

按照以下流程測試新工作流程:初始將發佈狀態設為「Test」,建立測試文件,處理文件並觀察,檢查工作流程流程,處理待處理活動,查看日誌,最後將發佈狀態設為「Released」。

常見工作流程模式

循序核准:文件按順序流經核准者鏈。平行核准:多個核准者必須全部核准。條件式路由:使用轉換條件根據金額或其他標準路由文件。帶閾值的自動核准:對於小金額完全跳過核准步驟。

重點摘要

  • iDempiere 的工作流程引擎驅動文件處理、核准路由和自動化動作。
  • 存在三種工作流程類型:Document Process(狀態機)、Document Value(由資料變更觸發)和 General(製造)。
  • 工作流程節點定義個別步驟;NodeNext 轉換定義步驟之間的流程,並可選擇性地附加條件。
  • 核准工作流程根據使用者權限和文件金額透過層級路由文件。
  • 優先順序和持續時間設定在活動未及時處理時啟用呈報。
  • 所有工作流程執行都透過 AD_WF_Process 和 AD_WF_Activity 完整記錄並可稽核。
  • 在發佈至生產環境之前,始終使用發佈狀態「Test」測試工作流程。

下一步

在第 16 課中,您將使用 Eclipse IDE 設定 iDempiere 開發環境。這標誌著您從基於配置的自訂轉向基於程式碼的開發——開啟 iDempiere 可擴展架構的全部威力。

日本語

概要

  • 学習内容:ドキュメントワークフローの設定方法、承認プロセスの構築、ワークフローノードとトランジションの理解、iDempiereのワークフローエンジンを使用したビジネスオペレーションの自動化。
  • 前提条件:レッスン1〜12(初級レベル)
  • 推定読了時間:25分

はじめに

販売注文で「完了」をクリックしたり、請求書で「準備」をクリックしたり、支払いで「処理」をクリックするたびに、ワークフローをトリガーしています。iDempiereのワークフローエンジンは、システム全体でドキュメント処理、承認ルーティング、自動化アクションを統制します。ワークフローの理解は不可欠です。なぜなら、ドキュメントがライフサイクルの中でどのように移動し、状態遷移時にビジネスルールがどのように適用されるかを制御するからです。

このレッスンでは、ワークフローエンジンを基礎から扱います:データモデル、ワークフロータイプ、ノード設定、承認チェーン、カスタム承認ワークフローの実践的な作成です。

ワークフローアーキテクチャ

ワークフローエンジンは4つのコアテーブルで構築されています:

  • AD_Workflow — ワークフロー定義(ヘッダー)。タイプ、開始ノード、全体的な設定を定義。
  • AD_WF_Node — ワークフロー内の個々のステップ。各ノードはアクション、決定、またはサブプロセスを表す。
  • AD_WF_NodeNext — ノード間のトランジション。あるノードから次のノードへの移動のシーケンスと条件を定義。
  • AD_WF_Responsible — ワークフローノードの承認または実行の責任者を定義。

実行時には、さらに2つのテーブルが実行を追跡します:

  • AD_WF_Process — ワークフローの実行中インスタンス(処理中のドキュメントごとに1つ)。
  • AD_WF_Activity — プロセス内のノードの実行中インスタンス(現在のステップ)。

ワークフロータイプ

iDempiereは3つのワークフロータイプをサポートしており、それぞれ異なる目的を持ちます:

ドキュメントプロセスワークフロー

最も一般的なタイプです。ドキュメント処理のステートマシンを定義します。すべてのドキュメントタイプにはドキュメントプロセスワークフローが割り当てられています(C_DocType.AD_Workflow_ID)。

下書き (DR) → 処理中 (IP) → 完了 (CO)
                                  ↓
                             クローズ (CL)

完了 (CO) → 取消 (RE)
下書き (DR) → 無効 (VO)

ドキュメント値ワークフロー

ユーザーのアクションに関係なく、ドキュメントが特定の条件を満たしたときに自動的にトリガーされます。承認ルーティングに使用されます。設定にはテーブル、カラム、トリガー値が含まれます。

一般ワークフロー(製造)

主に製造業の工程管理に使用されます。この基礎レッスンの範囲外です。

ドキュメント処理ワークフローの詳細

ワークフロー > ワークフローを開き、「Process_Order」ワークフローを例として見ましょう。

ワークフローヘッダー(AD_Workflow)

主要フィールド:ワークフロータイプ、テーブル、開始ノード、優先順位、有効期間、公開ステータス。

ワークフローノード(AD_WF_Node)

各ノードはワークフロー内のステップを表します。ノードアクションタイプ:Document Action、User Choice、Set Variable、User Window、Process、Sub Workflow、Wait、EMail。

ノードトランジション(AD_WF_NodeNext)

トランジションはあるノードから次のノードへの実行フローを定義します。設定にはシーケンス、トランジションコード(SQL条件)、標準トランジションフラグが含まれます。

承認ワークフロー

承認ワークフローはiDempiereで最も実用的な機能の1つです。

AD_WF_Responsible(ワークフロー責任者)

責任者タイプ:Human(特定ユーザー)、Organization(組織内の任意ユーザー)、Role(ロール保持者)、Invoker(トリガーした人)。

承認階層

iDempiereは組織階層に基づく承認ルーティングをサポートしています。ドキュメント金額がしきい値を超えると上司にエスカレーションされ、十分な権限を持つユーザーが承認するまで続きます。

カスタム承認ワークフローの作成:ステップバイステップ

$5,000を超える注文にマネージャーの承認を必要とする購買発注承認ワークフローを構築します。手順:ワークフローヘッダーの作成、ワークフロー責任者の定義、ノードの作成(Check Amount、Approved、Rejected)、トランジションの作成、開始ノードの設定、トリガーの設定。

優先順位とエスカレーション

各ワークフローと各ノードには優先順位設定(0〜9)があり、処理順序、ユーザー通知、エスカレーションに影響します。期間と期間単位を設定することで、未処理の活動を自動的にエスカレーションできます。

メール通知

活動の割り当て時、エスカレーション時、ワークフロー完了時にメール通知を送信できます。メールテンプレート(R_MailText)をノードに関連付けます。

ワークフロー履歴とログ

すべてのワークフロー実行は完全に監査可能です。AD_WF_Process、AD_WF_Activity、AD_WF_EventAuditで追跡されます。

ワークフローのテスト

公開ステータスを「Test」に設定して開始し、テストドキュメントを作成、処理、確認し、完了後に「Released」に変更します。

一般的なワークフローパターン

順次承認:承認者チェーンを順番に流れる。並列承認:複数の承認者が全員承認する必要がある。条件付きルーティング:金額等の基準でルーティングを分岐。しきい値付き自動承認:少額は承認ステップをスキップ。

重要ポイント

  • iDempiereのワークフローエンジンはドキュメント処理、承認ルーティング、自動化アクションを駆動します。
  • 3つのワークフロータイプ:Document Process、Document Value、General。
  • ワークフローノードが個々のステップを定義し、NodeNextトランジションがフローを定義。
  • 承認ワークフローはユーザー権限とドキュメント金額に基づいてルーティング。
  • 優先順位と期間設定でエスカレーションが可能。
  • すべての実行はAD_WF_ProcessとAD_WF_Activityで完全にログ記録、監査可能。
  • 本番リリース前に必ず公開ステータス「Test」でテスト。

次のステップ

レッスン16では、Eclipse IDEを使用してiDempiereの開発環境を設定します。これは設定ベースのカスタマイズからコードベースの開発への転換点です。

You Missed