How to Configure Workflow in iDempiere

The Workflow window in iDempiere defines the sequence of nodes, transitions, and conditions that control how a document such as an invoice moves from Prepare to Complete. A correctly configured workflow keeps document status accurate, prevents unauthorized completion, and ensures every invoice follows the same audit trail before it posts to accounting.

Process Flow

TenthPlanet iDempiere Workflow

Business Rules

  • Only Active workflows are available for assignment to a document type.
  • A workflow must be Valid before it can drive live document processing.
  • Publication Status must be Released for the workflow to apply to transactions.
  • Each Node represents one processing step; Sequence controls the order of transitions.
  • A Transition Condition restricts movement between nodes based on a column value.
  • Access tab entries control which Roles can view or execute the workflow.
  • Read Write access must be enabled for a role to action workflow-driven documents.
  • Standard Transitions without a condition always execute once the prior node completes.

Prerequisites

  • Organization configured for the workflow scope.
  • Role configured and available for Access assignment.
  • Target table identified (e.g., C_Invoice_Invoice) for document-based workflows.
  • Document Type configured and ready to be linked to the workflow.
  • Business Partner and standard document setup completed for the linked table.

Navigation

Menu → Application Dictionary → Workflow → Workflow

Configuration Steps

Enter a Search Key and Name, set Workflow Type to Document Process, select the Table the workflow applies to, and set Publication Status to Released once testing is complete.

FieldSample ValueDescription
Search KeyProcess_InvoiceUnique identifier for the workflow
NameProcess_InvoiceDisplay name shown when assigning the workflow
Workflow TypeDocument ProcessDefines the workflow as a document status workflow
TableC_Invoice_InvoiceTable the workflow controls, e.g., invoices
Data Access LevelOrganizationScope of records the workflow can act on
Publication StatusReleasedMust be Released for use in live transactions
ValidCheckedConfirms the workflow passed validation
TenthPlanet iDempiere GeneralRules Workflow 1

Step 2: Define Workflow Nodes

In the Node tab, create a node for each processing stage, set Action to Document Action, and choose the matching Document Action such as Prepare. Leave Join/Split Element as XOR for standard single-path routing.

FieldSample ValueDescription
Name(DocPrepare)Label for this processing step
ActionDocument ActionType of activity performed at this node
Document ActionPrepareSpecific document action triggered
Join ElementXORRule for merging incoming transitions
Split ElementXORRule for branching outgoing transitions
ActiveCheckedMakes the node available in the workflow
TenthPlanet iDempiere GeneralRules Workflow 2

Step 3: Define Node Transitions

In the Transition tab, select the current Node and the Next Node, assign a Sequence number, and keep Active checked so the path is available during processing.

FieldSample ValueDescription
Node(DocPrepare)Starting node of the transition
Next Node(DocComplete)Node the document moves to next
Sequence100Order in which transitions are evaluated
Description(Standard Transition)Notes describing the transition purpose
ActiveCheckedEnables this transition path
TenthPlanet iDempiere GeneralRules Workflow 3

Step 4: Define Transition Conditions

Open the Condition tab under the relevant Node Transition, choose And/Or logic, set the Operation, select the Column to evaluate, and enter the comparison Value.

FieldSample ValueDescription
Node Transition(DocPrepare)_100_(DocComplete)Transition the condition applies to
Sequence10Order conditions are evaluated
And/OrOrLogical operator combining multiple conditions
Operation=Comparison operator applied to the column
ColumnC_BPartner_ID_Business PartnerField being evaluated
Entity TypeUser maintainedIdentifies the condition as custom-defined
TenthPlanet iDempiere GeneralRules Workflow 4
TenthPlanet iDempiere GeneralRules Workflow 5

Step 5: Configure Workflow Access

In the Access tab, add the Role that should use the workflow, check Active to enable it, and check Read Write only if that role is allowed to modify workflow-driven documents.

FieldSample ValueDescription
RolePOTS AdminRole granted access to the workflow
ActiveCheckedEnables this access record
Read WriteCheckedAllows the role to action workflow documents
TenthPlanet iDempiere GeneralRules Workflow 6

Step 6: Validate and Activate the Workflow

Return to the Workflow header tab, click Validate Workflow, confirm the Valid checkbox is set, and change Publication Status to Released.

Common Issues and Resolutions

IssueCauseResolution
Workflow does not appear when assigning to a Document TypePublication Status is not Released or workflow is inactiveSet Publication Status to Released and confirm Active is checked
Invoice stuck in Prepare statusNo valid transition exists from the current nodeAdd a Transition to the next node with correct Sequence
Role cannot process the invoiceAccess tab has no entry for the role, or Read Write is uncheckedAdd the role in Access and enable Read Write
Validate Workflow failsMissing Start Node or broken transition chainCheck Node and Transition tabs for gaps in the sequence
Multiple conditions conflictAnd/Or logic combined incorrectly across conditionsReview Sequence and And/Or settings for each condition
Workflow changes not reflected on existing documentsWorkflow is cached or document already started with prior workflowRestart the client cache and test with a new document

Next Steps

  • Configure Document Type to link the workflow to invoices or other documents.
  • Review Role and User Access windows to confirm approval permissions.
  • Set up Invoice window defaults so new documents use the correct workflow.
  • Test the workflow end-to-end with a sample invoice before releasing to stores.